Bernie
Member
- Joined
- Feb 9, 2018
- Messages
- 34
- Reaction score
- 0
- Points
- 6
- Location
- Suburban NY
- Excel Version(s)
- Excel 2016 (Win)
Following the instructions in Chapter 5 of the "Monkey" book, I created a query to pull data from single sheet workbooks that don't have tables - the header row is row 10, so I removed the top 9 rows from the sheet and used the new row 1 as headers.
All the files are in a folder, so I used the From File / From Folder. I was able to correctly get the data from the single file I was working on, but when I added more files to the folder and refreshed, the other files did not have the top 9 rows removed, and the headers were still there.
What do I need to do to my query to remove 9 rows from the first file, create headers, and remove the first 10 rows from all subsequent files? I thought about checking for incorrect data types or blanks in certain columns, but the first 9 rows are pretty free form and I could not think of a column-based logic that would always find all the correct rows to delete.
Thanks,
Bernie
All the files are in a folder, so I used the From File / From Folder. I was able to correctly get the data from the single file I was working on, but when I added more files to the folder and refreshed, the other files did not have the top 9 rows removed, and the headers were still there.
What do I need to do to my query to remove 9 rows from the first file, create headers, and remove the first 10 rows from all subsequent files? I thought about checking for incorrect data types or blanks in certain columns, but the first 9 rows are pretty free form and I could not think of a column-based logic that would always find all the correct rows to delete.
Thanks,
Bernie
Last edited: