How can I import a folder of inventory files without mixing up their column headings?
Quick answer
Before combining files, list the expected fields and compare each file’s headings against that list. Mark missing, extra, renamed, or ambiguous headings as exceptions; resolve or set aside those files instead of assuming they match. In Excel Power Query, you can inspect folder contents, filter to the intended files, and combine them, but review the transformed query and results: Power Query’s sample-file analysis does not promise to detect every heading mismatch. [S1]
The question, the details, the next step.
A practical checklist
Write down the approved field names and meanings before reviewing the folder.
List intended files and filter out unrelated files before combining.
Compare each file’s headings for missing, extra, renamed, or ambiguous fields.
Record each discrepancy and its approved resolution; hold unresolved files out.
Review transformed headings and sample values against the original files before loading.
A few more useful answers
Can I rely on Power Query to flag every heading mismatch?
No. The cited Microsoft guidance says Power Query analyzes an example file to identify matching columns, but does not promise automatic detection or flagging of every heading mismatch. Review the transformed query and results yourself. [S1]
What if one file has extra columns that the others do not?
Record the extra headings in the exception log and decide whether they are expected fields, irrelevant fields, or a sign that the file uses a different schema. Don’t silently discard or map them without documenting the decision.
Should I combine files when their headings are similar but not identical?
Only after you confirm that the headings mean the same thing and record the mapping. If the meaning is uncertain, hold that file out until it can be checked.
Sources
References used for this guide.
- [S1] Import data from a folder with multiple files (Power Query) — Microsoft Support support.microsoft.com · Checked
