Power Query Problems

How to Combine Two Excel Workbooks on Mac for Pivot Tables

Phi Hung VoPhi Hung Vo Nov 3, 2026 868 views

Question details

The user needs a method to merge data from two separate Excel workbooks on a Mac so that the combined data can serve as a dynamic source for a PivotTable.

How to Combine Two Excel Workbooks on Mac for Pivot Tables
Product
Excel for Mac
Device & OS
Mac
Scenario
Creating a unified PivotTable from multiple external data sources when standard Power Query features might be limited.
Observed behavior
Excel for Mac frequently lacks the full suite of Power Query features found in the Windows version, preventing standard workbook combination techniques.
Before you start

Ensure both of your source Excel workbooks are saved in the standard .xlsx format and check if your version of Microsoft 365 for Mac supports dynamic array functions like VSTACK.

Solution 1Recommended

Use Get Data and VSTACK to Combine Workbooks

Import the data from both workbooks using available Get Data features and stack them dynamically using the VSTACK formula to create a single PivotTable source.

While full Power Query is limited on Mac, you can leverage the Get Data feature alongside dynamic array functions to consolidate your tables. The VSTACK function takes multiple arrays and stacks them vertically into a single spilled range.

1
Import the First Workbook

Open a new master workbook. Go to the Data tab, click on Get Data (or Get Data (Power Query) if available), select Excel Workbook, and load the first query into your workbook.

2
Import the Second Workbook

Repeat the previous step to import the second workbook's data. Load this second query into a separate sheet or designated area.

3
Stack the Queries with VSTACK

In a clean worksheet, select a starting cell (e.g., I2) and enter the formula =VSTACK(Query1, Query2), replacing 'Query1' and 'Query2' with the actual table names or ranges you imported. Press Return to spill the combined data.

4
Create the PivotTable

Go to Insert > PivotTable. In the Table/Range field, reference your spilled array by typing the starting cell followed by a hashtag (e.g., Sheet1!$I$2#). Click OK to build your dynamic PivotTable.

Use Get Data and VSTACK to Combine Workbooks
Missing Power Query on Mac?: If you cannot find the Get Data (Power Query) option, consider joining the Office Insider Program for Mac (Beta Channel) to access the latest features currently in development.
Free Microsoft Office alternative

Seamlessly Analyze Data with WPS Spreadsheet

If Mac Excel's feature limitations and missing Power Query tools are slowing down your workflow, WPS Office offers a powerful, free alternative. It provides high compatibility with Microsoft formats, a familiar user interface, and robust data consolidation and PivotTable features.

  1. 1. Download and Install WPS Office: Visit the official WPS website to download the Mac version. Follow the prompts to install and launch the application.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheet and easily open your existing .xlsx files to begin working on your data.
  3. 3. Generate a PivotTable: Highlight your consolidated data, navigate to the Insert tab, and select PivotTable to quickly build dynamic data reports.
Fully compatible with Microsoft Excel (.xlsx, .xls) and CSV formats without data loss.Lightweight installation that runs smoothly and quickly on macOS.Familiar spreadsheet interface makes transitioning easy with zero learning curve.Powerful built-in PivotTable and data analysis tools for comprehensive reporting.
QA img-9

Frequently Asked Questions

Why is Power Query missing from my Excel for Mac?

Microsoft has historically limited full Power Query functionality on the Mac version of Excel. While recent updates have introduced more 'Get Data' capabilities, full feature parity with Windows usually requires updating to the latest Microsoft 365 version or joining the Office Insider program.

What does the hashtag (#) mean in a cell reference like Sheet1!$I$2#?

The hashtag denotes a spilled range in modern Excel. It tells the program to dynamically reference the entire array of data generated by formulas like VSTACK. If the underlying data expands or shrinks, the PivotTable source updates automatically.

Can I combine more than two workbooks using the VSTACK function?

Yes. The VSTACK function supports multiple arrays. You can append as many tables or ranges as needed by separating them with commas, for example: =VSTACK(Table1, Table2, Table3).