An illustration shows spreadsheets syncing between Windows and Mac laptops, then being processed into charts and reports.
If you have ever spent a Friday afternoon manually stacking monthly CSV exports, coaxing VLOOKUP into behaving, and praying that nobody renamed a column header upstream, you already know the quiet tragedy of spreadsheet busywork. Every month, the ritual repeats: download the files, copy, paste, drag the formulas down, fix the #N/A errors, and promise yourself that next month you will finally automate it.

A recent workflow breakdown by Shivansh Raj Srivastava at XDA Developers highlights just how dramatic the jump from manual spreadsheet wrangling to Power Query can be—even for someone discovering a tool that has been sitting quietly on Excel's Data tab for a decade. By replacing a brittle web of copy-pasted exports and VLOOKUP formulas with three Power Query transformations, Srivastava turned a multi-hour monthly chore of matching content performance exports to Asana project cards into a repeatable, one-click refresh.

For Windows 11 and Microsoft 365 power users—and IT admins supporting teams stuck in manual reporting loops—the story is also a masterclass in the subtle traps that make Power Query look intimidating at first: case-sensitive headers, hidden helper queries that silently drop new columns, and platform gaps between Excel for Windows and Excel for Mac.


An illustration shows spreadsheets syncing between Windows and Mac laptops, then being processed into charts and reports. Why Power Query Beats a Sheet Full of VLOOKUPs​

Think of a traditional formula-driven report like burning a new mix CD every single month: the music might stay organized, but you still have to manually assemble the tracks each time. Power Query—officially branded Get & Transform Data on the Excel ribbon—works more like a smart playlist. Every cleanup step you perform in the Power Query Editor is recorded in the background as a script written in Microsoft's M formula language.

When next month's CSV lands in your folder, clicking Data > Refresh All replays those exact cleaning, merging, and summarizing steps against whatever data currently sits in your source directory.

In Srivastava's case, the old routine meant downloading monthly performance exports, stacking them by hand, and rebuilding lookup formulas against an Asana task export—a workflow he noted took around four hours each month (and up to 24 hours when wrangling six months of historical exports manually). After investing roughly three hours building his Power Query pipeline—including an hour lost to a single uppercase letter—the monthly rebuild dropped to an almost instant refresh, with six months of CSVs consolidating in under a second in his workbook.

The caveat every IT pro should add: "Rebuilds itself" means on refresh, not automatically in the background without user action, and it still assumes your upstream exports stay reasonably consistent. Move a folder, overhaul a column's meaning, or radically change a schema, and your query will still ask for attention.

Section Summary​

  • Formulas vs. Queries: Worksheet formulas react to cells you manually paste; Power Query automates the extraction, cleanup, and loading pipeline before the data ever hits your sheet.
  • Payback Math: Setup takes upfront effort (three hours in the reported case), but recurring monthly runs drop to clicking Refresh All.

Combining a Folder of CSVs: Windows 11 vs. Excel for Mac​

One of the clearest takeaways from comparing Microsoft Support documentation with real-world reporting is how differently Excel handles local folders depending on your operating system.

The Native Windows 11 Route​

On Windows 10 and Windows 11—across Microsoft 365 as well as standalone Excel 2016, 2019, 2021, and 2024—Microsoft includes the full From Folder connector right out of the box:

  1. Put all target CSVs into a dedicated folder with no extraneous files.
  2. Open Excel and navigate to Data > Get Data > From File > From Folder.
  3. Browse to the directory and click Open.
  4. In the file preview dialog, choose Combine > Combine & Transform Data to stack the files and open the Power Query Editor before loading.

Microsoft's folder-import documentation notes that Power Query matches columns by header name rather than column order, and warns that any unrelated files sitting in that folder or its subfolders will also be swept into the pipeline unless you filter them out first.

The Mac Workaround (and Why It Matters)​

While Microsoft first introduced Power Query as a free add-in for Excel 2010 on Windows and integrated it into Excel 2016 for Windows, the full Power Query Editor only reached Microsoft 365 subscribers on Mac in Excel version 16.69 (build 23010700) or later. Excel 2016 and 2019 for Mac have no Power Query support at all.

Even in current Microsoft 365 builds for Mac, Microsoft's own data-source matrix lists Local Folder under refresh support while omitting it from the standard Get Data (Power Query) import menu (which offers Excel workbooks, Text/CSV, XML, JSON, OData, SharePoint lists, and Blank Query).

To bypass that missing button on macOS, Srivastava opened a Blank Query and typed a single M expression:

= Folder.Files("/Users/yourname/path-to-exports")

After approving Excel's Grant File Access prompt for that directory, clicking the Combine Files icon on the resulting Content binary column stacked five monthly exports into a 47-row table—complete with a Source.Name column tracking which file each row came from. Dropping a sixth export into the folder and clicking Refresh All expanded the table to 54 rows with zero copy-pasting.

Practical tip from Microsoft Learn: Because Folder.Files(path) requires a valid absolute path and recursively grabs files from all subfolders too, anyone using this M workaround should add a quick filter on the Extension or Folder Path columns before hitting Combine Files.

CapabilityExcel for Windows (Microsoft 365 / 2016+)Excel for Microsoft 365 for Mac (v16.69+)Excel for the Web
Power Query EditorFull editor includedIncluded for M365 subscribersSupported with source/Data Model limits
Local Folder Import UINative (From File > From Folder)Omitted from import menu; requires Folder.Files in Blank QueryNot supported for local folders
Local Folder RefreshSupportedSupported (Refresh All)Cloud/authenticated sources only
Fuzzy Merge OptionIncluded in Microsoft 365Not listed on Microsoft's fuzzy match page; absent in reported Mac dialogN/A in desktop-parity dialog

Section Summary​

  • Windows gets the fast lane: Windows 11 users get the native From Folder wizard, while Mac users on v16.69+ can bridge the UI gap with a one-line Folder.Files Blank Query.
  • Keep folders clean: Because Folder.Files scans subfolders recursively, always isolate your monthly exports or filter by file extension early.

Troubleshooting the Two Traps That Break Folder Queries​

If you have ever tried Power Query once, watched half your data turn into null, and stormed back to VLOOKUP, you likely ran straight into one of the exact two quirks Srivastava spent an hour untangling.

Trap 1: The Case-Sensitive Capital "S"​

When Srivastava scrolled through his freshly stacked 47-row table, June through September showed null under US sessions, while only October had numbers. Why?

Because Power Query's Combine Files wizard builds its template logic from a single Sample File—by default, the first file returned by the folder listing. On his disk, Folder.Files returned October's CSV first, and October's export spelled the header US Sessions with a capital S, whereas earlier months used lowercase US sessions. Since M is strictly case-sensitive, Power Query looked for US Sessions in the older files, didn't find an exact match, and left those cells blank.

Attempting to rename US Sessions to US sessions inside the sample transformation immediately triggered a new error:

Expression.Error: The column 'US Sessions' of the table wasn't found.

Here is why that happens—and the clean two-step fix:

  1. Make the rename resilient: By default, Table.RenameColumns throws an error if the target column isn't present in a given file. Adding the optional MissingField.Ignore parameter tells Power Query to skip files that already use lowercase US sessions instead of crashing.
  2. Fix the downstream Changed Type step: Power Query automatically inspects the first 200 rows of your sample file and appends a Changed Type step (Table.TransformColumnTypes) referencing every column by its exact name. After renaming the header, you must update Changed Type in the formula bar or Advanced Editor to reference US sessions instead of US Sessions.

(Bonus M update for advanced users: Historically, Table.TransformColumnTypes threw a fatal error on any missing column, forcing awkward workarounds. According to Microsoft Learn's updated M documentation, Table.TransformColumnTypes now accepts an optional third-parameter options record containing MissingField = MissingField.Ignore or MissingField.UseNull alongside Culture. Even with that safeguard available in newer builds, updating the normalized column name directly ensures your data types actually get applied.)

Trap 2: The Hidden Helper Query That Hard-Codes Column Counts​

Clicking Combine Files quietly generates supporting helper queries behind the scenes—including a Sample File query and a Transform File function—that process every individual CSV before stacking them. (Srivastava noted a Mac quirk where his first Close & Load dumped those helper queries onto separate worksheets, requiring manual deletion.)

Inside the helper query's Csv.Document step, Power Query automatically hard-coded Columns = 8 because October's sample export happened to have eight columns. According to Microsoft Learn's Csv.Document reference, if you specify a fixed numeric column count and a future export adds a ninth column, Power Query silently ignores the extra column with zero warning.

Deleting Columns = 8 from the helper query's Csv.Document options forces Power Query to read every column dynamically from each file's actual input.

Section Summary​

  • Case matters in M: One capitalized header in your first file can null out every other file in the folder. Pair Table.RenameColumns(..., MissingField.Ignore) with an updated Changed Type step.
  • Watch Columns = N: Removing the hard-coded column count inside your helper query's Csv.Document step prevents silent data loss when an export gains new fields later.

Replacing VLOOKUP with Merge Queries and Group By​

With six months of performance exports stacked into one clean table, the second half of the manual grind—matching every Asana card to its published article—took a single Merge Queries operation.

In the Power Query Editor:

  1. Select Home > Combine > Merge Queries.
  2. Choose the Asana export as the primary table (Task name column) and the stacked performance table as the secondary table (Title column).
  3. Select Left Outer as the Join Kind.
  4. Expand the matched columns you want to bring over, then use Group By on the Month column to build an auto-refreshing monthly summary table.

A Left Outer join is the safest VLOOKUP replacement for reporting because it preserves every row from your primary table and leaves unmatched rows visible as null rather than silently dropping them like an Inner join would. In Srivastava's workbook, 54 of 60 Asana tasks matched cleanly; the six unmatched rows belonged to cards still in Drafted, In progress, or Submitted status. Treating those unmatched nulls as an exception review queue is smart practice—especially when titles drift.

The Exact-Match Catch (and Windows' Fuzzy Advantage)​

By default, Merge Queries demands an exact match. If an editor tweaks an article headline by one word between drafting the Asana card and hitting Publish, an exact merge misses it.

On Windows (Excel for Microsoft 365), Power Query solves this right inside the Merge dialog via Use fuzzy matching to perform the merge. Powered by the Jaccard similarity algorithm, it compares text pairs using a default 0.80 similarity threshold (adjustable from 0.00 to 1.00) and includes options to ignore case or supply a custom synonym mapping table.

The catch? Microsoft's fuzzy match support page lists Excel for Microsoft 365 without mentioning Excel for Mac, and Srivastava confirmed the fuzzy checkbox was missing from his Mac Merge dialog. If you work on a Mac—or want tighter control than probabilistic matching offers, since fuzzy merges can create false positives—you can either normalize strings beforehand (trimming whitespace, stripping punctuation, and lowercasing in M) or match on a shared unique ID like a URL slug instead of a mutable headline.

Section Summary​

  • Left Outer = Safe VLOOKUP: It retains unmatched records as null so you can spot drafts, typos, or missing entries immediately.
  • Windows holds the fuzzy edge: Windows Microsoft 365 users get built-in Jaccard fuzzy merging at a 0.80 default threshold, whereas Mac users should standardize IDs or normalize text columns.

Should You Trade Your Formula Sheets for Power Query?​

If a report is a one-off, throwaway calculation, typing a quick XLOOKUP or VLOOKUP and moving on with your day still makes total sense. But the moment you catch yourself downloading the same CSVs, fixing the same headers, and rebuilding the same summary table every Monday or every month, Power Query pays for its learning curve almost immediately.

Better yet, if you work in a mixed-OS office, Windows 11 gives you the complete Power Query toolkit—native folder connectors, fuzzy merging, and the full Modern Get Data experience—while Mac users on Microsoft 365 can still refresh those workbooks (or build their own with a quick Folder.Files tweak). Next time you open a fresh CSV export, skip the copy-paste reflex and check the Data tab first. Your future Friday afternoons will thank you.

 

References

  1. I replaced a sheet full of VLOOKUPs with one built-in Excel feature, and now my reports rebuild themselves XDA 2026-11-28T19:30:20+00:00
  2. Import data from a folder with multiple files (Power Query) | Microsoft Support support.microsoft.com
  3. About Power Query in Excel | Microsoft Support support.microsoft.com