Hi team,
I have around 1000 files in a folder. Each file has multiple worksheets. Some files have sheets with names A, B, C, D1 & E. Some other files have sheets with names A, B, C, D2 & E. Please note each file will have either D1 or D2 (not both).
Data in sheet D1 starts from Row 10. Data in sheet D2 starts from Row 5. Tab D2 has all columns same with D1 except that it has one additional column.
I want to merge all the files together taking only D1 or D2 based on which sheet that file contains.
Can you please help?