Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50282

Pull data with specified criteria

$
0
0
Good day Excel Forum

Looking for some help on a macro that will enable me to extract data by specifying a criteria.

I get 5 spreadsheets every hour.
These have cumulative data for each unique name which is in column J

I need a macro that has a template on sheet 1 like the one below where...

Specify Unique ID: AZVB523


Column No: Need Data:
Col 1. Yes
Col 2. No
...
Col65. Yes

I can specify the column numbers / headers per sheet from which I need column data by unique ID. The macro needs to loop through all 5 sheets and collect data for that unique ID for the columns specified from the 5 sheets and paste it in second sheet of the macro cell B2 onwards.

Similar column headers are available in all 5 sheets except that one of the sheets has more than 36 columns i.e 65

Please help me as I need to do this each passing hour which makes my life a bit too difficult, and prone to errors...I mistakenly copied different columns in the few hourly deliveries yesterday.

I can share some files by tomorrow if you think it is mandatory.

Viewing all articles
Browse latest Browse all 50282

Latest Images

Trending Articles



Latest Images