logo
search
Power Query Problems

How to Combine Multiple Files from a Folder in Excel for Mac (Power Query)

Tauseeq MagsiTauseeq Magsi Oct 10, 2026 869 views

Question details

Users need a workflow to import and combine multiple files from a specific folder into a single dataset, as the native connector is absent on macOS.

How to Combine Multiple Files from a Folder in Excel for Mac
Product
Excel
Device & OS
Mac
Scenario
Attempting to consolidate data by importing multiple source files stored in a single folder into an Excel workbook.
Observed behavior
The standard Power Query 'Get Data From Folder' connector available on Windows is missing in the Mac version of Excel, blocking users from combining files natively.
Before you start

Verify that you have the latest version of Excel for Mac installed, as Microsoft frequently updates Power Query functionality for Microsoft 365 subscribers.

Solution 1Recommended

Use VBA Macros to Automate Importing and Combining Files

Since the native Power Query folder connector is missing, you can use a VBA macro to loop through a directory and merge your files.

VBA (Visual Basic for Applications) provides a powerful workaround to automate repetitive tasks. By writing a script that targets a specific folder on your Mac, you can instruct Excel to open each file, copy the data, and paste it sequentially into a master worksheet.

Note that macOS file path structures differ from Windows, so any existing Windows VBA scripts will need their file paths updated to the Mac format (e.g., using Macintosh HD or POSIX paths).

1
Open the VBA Editor

Launch Excel on your Mac, open your destination workbook, and press Option + F11 to open the Visual Basic Editor.

2
Insert a New Module

In the Project Explorer pane on the left, right-click your workbook name, select 'Insert', and click 'Module'.

3
Add and Run the Macro

Paste a VBA script designed for Mac that loops through a folder to copy and append data. Close the editor, go to the 'Developer' tab, click 'Macros', select your new macro, and click 'Run'.

Use VBA Macros to Automate Importing and Combining Files
Developer Tab Required: If you don't see the Developer tab in your ribbon, go to Excel > Preferences > Ribbon & Toolbar, and check the box for 'Developer' in the main tabs list.
Free Microsoft Office alternative

Discover a Lightweight and Highly Compatible Spreadsheet Alternative

If feature discrepancies between Mac and Windows versions of Office disrupt your productivity, consider trying WPS Office. It delivers a fast, seamless, and familiar spreadsheet experience with robust compatibility across platforms, saving you from heavy subscription fees.

  1. 1. Download and Install: Visit the official WPS Office website to download the macOS version and follow the simple installation prompts.
  2. 2. Open WPS Spreadsheets: Launch the application and select 'Spreadsheets' from the main workspace.
  3. 3. Edit Your Excel Files: Drag and drop your existing .xlsx files directly into the program to continue your work without formatting loss.
Completely free to use with a lightweight installation that saves Mac storageExceptional compatibility with Microsoft Excel (.xlsx, .csv, and .xls) formatsFamiliar ribbon interface ensures a smooth transition with zero learning curveCross-platform support ensures your files work flawlessly on Mac, Windows, and Linux
microsoft office alternative - wps office

Frequently Asked Questions

Is Power Query fully supported in Excel for Mac?

Power Query is partially supported in Excel for Mac. While you can refresh many queries and use the Power Query Editor to transform data, several data connectors—including the 'From Folder' connector—are currently unavailable compared to the Windows version.

Can I use Power Automate instead to combine files on Mac?

Yes, as a cloud-based workaround, you can use Power Automate or Office Scripts online to merge data from multiple Excel files hosted on OneDrive or SharePoint, completely bypassing the limitations of the Mac desktop app.

Will Microsoft ever add the 'From Folder' connector to Mac?

Microsoft continuously rolls out updates to improve feature parity between Mac and Windows. Submitting feedback through the Excel Help menu is the best way to let the development team know this feature is highly requested.

Does WPS Office on Mac support combining multiple files?

WPS Office offers robust spreadsheet capabilities and data manipulation tools. While advanced data modeling is handled differently, its lightweight interface and VBA support provide excellent alternatives for users looking to manage multiple datasets effortlessly.