Hi, We have around 21 -25 workbooks. Data from these workbooks needs to be consolidated to a new workbook. All the workbooks are placed in same folder. All the files have the same format & headers, it has data from column “A” to “S”, however data as per Rows count may vary from one file to another. Data needs to be copied from each workbook starting from cell A2 to Ctrl +Shift +Down arrow+ Right arrow only and paste it in a new workbook starting from cell “A2” one below the other.
However we have couple of rules for this –
1. There is a naming order in which the workbook has to be opened first, that is first open workbook that has name as 609950 - copy and paste the data to a new workbook, then second file with name as 609921. I have provided the list of files names in order it has to be opened.
Consolidate the files in the below order one after the other in a new workbook
609950
609921
601748
609391
600138
601903
601937
601851
604094
103275
103644
609380
103009
103066
100363
100958
304986
601847
602288
602289
602311
Also if there are additions to this list in future it should be amendable in the codes. If a file mentioned above is missing in the folder skip to next file. If in case in any workbook cell “A2” is blank then close the file and go to next file.
2. After consolidation of all the above files, in the new workbook column “F” apply auto filter and filter for contains “FT” and delete rows.
3. Remove filter from column “F” and in column “S” apply filter for Does not contain “NULL” and delete rows. Unfilter. Save.
Unable to share the files, but let me know if you need further instructions.
However we have couple of rules for this –
1. There is a naming order in which the workbook has to be opened first, that is first open workbook that has name as 609950 - copy and paste the data to a new workbook, then second file with name as 609921. I have provided the list of files names in order it has to be opened.
Consolidate the files in the below order one after the other in a new workbook
609950
609921
601748
609391
600138
601903
601937
601851
604094
103275
103644
609380
103009
103066
100363
100958
304986
601847
602288
602289
602311
Also if there are additions to this list in future it should be amendable in the codes. If a file mentioned above is missing in the folder skip to next file. If in case in any workbook cell “A2” is blank then close the file and go to next file.
2. After consolidation of all the above files, in the new workbook column “F” apply auto filter and filter for contains “FT” and delete rows.
3. Remove filter from column “F” and in column “S” apply filter for Does not contain “NULL” and delete rows. Unfilter. Save.
Unable to share the files, but let me know if you need further instructions.