r/ExcelPowerQuery • u/Less-Doughnut1071 • 3h ago
Error in Power Query editor
Newbie here! I'm trying to combine multiple Excel files in a folder. Just the first file transforms and loads into the pivot table. I dont see the other months' files, and when I try to add new files to the folder, I get an error message " The key didn't match any rows in the table."
Please help 🙏
2
Upvotes
1
u/Weaver707 3h ago
Does each file contain the same table or sheet name? Usually this pops up if you have variation in the naming of the content in each individual file.
For example: File name#1-"monthly data" -worksheet name is Jan 26
File name #2- "monthly data" - worksheet name is Feb 26
PQ is looking at the worksheet name and isn't able to find a match between them.
There are some methods that will work around this but it does depend heavily on the structure of the source files. If that is the root cause, it doesn't require going in and changing the source, but does require a slightly different approach to selecting the target worksheet.