My goal is to use power query to combine data from multiple excel workbooks. I started using this tutorial: https://www.myexcelonline.com/blog/consolidate-multiple-excel-workbooks-using-power-query/ with my own workbooks. I am using Excel 2010, and my workbooks have filtering enabled on some columns. The first workbook was created in 2009 as a .xls file and all the rest have branched off from copies of it. They have since been re-saved as .xlsx files.
After I import all columns starting with only one workbook (step 9) if I click the arrow on "Import.Data.Column5" for example, In the filter list I initially see all the expected values, with the "List may be incomplete" warning. After I click the "Load more", the filter list now shows the expected column 5 (E) data AND data values from column 6 (F).
I have looked through the original excel workbook. These values do not exist in Column E. If I use the "find" function, they only show up in F. But for some reason, Power Query is pulling them into the wrong column. Also, this isn't just an issue with column 5, it is happening with every column in the workbook that has filtering enabled. Even If I remove the filter and clear all the data, formatting, conditional formatting, frozen panes, merged cells, etc, the problem still exists for the cells that were previously filtered.
Please see this link with pictures to help explain:
Top half of the image shows the excel file, bottom shows the filter dropdown in power query. There is only this one workbook in the folder at this point. Notice how "Rev", "01" and "02" from column 6(F) got pulled into column 5(E), but the "03" above the filter did not.
I tried creating a filter in a blank workbook and using powerquery on it but I can't replicate this issue (Though I am getting a different issue where the filter heading appears twice).
Any ideas?
Edit: If I try to create a query "From File" rather than "From Folder", everything works fine. So there is something different about the way "From Folder" and the "=Excel.Workbook([Content])" are working that is causing this problem.