Excel Power Query Merge Greyed Out: Fix It Fast
In this article
The Merge button in Power Query is greyed out because you have not selected exactly two queries in the Queries pane, or the queries you selected are not compatible for merging. Power Query only enables Merge when two or more queries are highlighted, and it requires that each selected query has at least one column that can act as a join key. The fix is to select two queries in the left-hand pane (hold Ctrl or Shift to multi-select) and then click Merge. If Merge stays greyed out after selecting two queries, check that neither query is a folder, a parameter, or a query that has been disabled or is still loading.
What You'll Need
- Excel with Power Query (Excel 2016 or later, or Microsoft 365). The steps below use the Power Query Editor on Windows; Mac Excel has limited Power Query support and the Merge option may not be available.
- At least two queries loaded into the Power Query Editor. These can be tables from the workbook, external data connections, or queries you created from other queries.
- Both queries must have a column you can use as a join key (a column with matching values, such as an ID, name, or date).
Step-by-Step
- Open the Power Query Editor. In Excel, go to the Data tab and click Queries & Connections to open the pane, then double-click a query to launch the editor. Alternatively, use Get Data > Launch Power Query Editor.
- In the Power Query Editor, look at the Queries pane on the left side. You will see a list of all queries in the workbook.
- Select the first query you want to merge by clicking its name once.
- Hold down Ctrl (Windows) or Command (Mac) and click the second query. Both queries should now be highlighted. If you need to merge more than two, keep holding Ctrl and click additional queries.
- With two queries selected, look at the Home tab on the ribbon. The Merge button (sometimes labeled Merge Queries) should now be enabled. Click it.
- In the Merge dialog box, choose the column from each query that contains the matching values. Power Query will highlight rows where the keys match. If you need to match on more than one column, hold Ctrl and select additional columns in each table.
- Select the join kind from the dropdown: Left Outer (default), Right Outer, Full Outer, Inner, Left Anti, Right Anti, or a fuzzy match option if available. For most lookups, Left Outer is correct.
- Click OK. Power Query creates a new query with a structured column containing the merged data. You can then expand that column to bring in the fields you need.
Note: Menu labels and button names can differ slightly between Excel versions, regions, and whether you are using Power Query in Excel or Power BI. The overall logic is the same.
Common Mistakes
- Selecting only one query. Merge requires at least two queries highlighted. Clicking a single query leaves Merge greyed out.
- Selecting a folder or parameter. Queries that are folders, parameters, or functions cannot be merged. Make sure you are selecting regular data queries.
- Using queries with no matching column. If the two queries share no column with compatible data types, Merge may remain disabled or the dialog will not let you pick a key. Ensure both queries have a column with the same data type (for example, both Text or both Whole Number).
- Merging a query with itself. Power Query does not allow you to merge a query with itself directly. Create a duplicate reference of the query first if you need a self-join.
- Working in the wrong pane. The Merge button is on the Home tab of the Power Query Editor ribbon, not the Data tab in the main Excel window. Make sure you are inside the editor.
Tips
- Use the Queries pane's search box to quickly find the queries you need if you have many.
- Rename your queries to something meaningful before merging; it makes the Merge dialog easier to read.
- If you plan to merge the same two queries repeatedly, consider creating a reference query so your source queries remain unchanged.
- After merging, use the Expand button on the new column to choose only the columns you need; this keeps the query fast.
- Check data types before merging: mismatched types (Text vs. Number) are a common reason keys do not match.
Troubleshooting
If Merge is still greyed out after selecting two queries, try these steps in order:
- Click somewhere in the Queries pane to ensure it has focus, then re-select the two queries with Ctrl.
- Make sure neither query is currently loading or has an error. Queries with errors may be disabled for merging. Resolve any errors first.
- Check that the queries are not grouped inside a folder that is selected instead. Expand folders and select the individual queries.
- Close and reopen the Power Query Editor. Sometimes the ribbon does not refresh the enabled state.
- If you are on Excel for Mac, confirm that your version supports Power Query merging. Older Mac versions have limited functionality; consider using Excel on Windows or Power BI Desktop for full features.
- As a last resort, save your workbook, close Excel, and reopen it. This clears temporary glitches.
If the Merge dialog opens but you cannot select a key column, verify that both queries have at least one column with the same name and data type. You can rename columns to match or add a custom column with a common key.
Frequently Asked Questions
Why is Merge greyed out even when I select two queries?
Check that you are selecting two regular data queries, not a folder or parameter. Also ensure both queries have finished loading and contain no errors. If the issue persists, restart the Power Query Editor.
Can I merge more than two queries at once?
Yes, you can select multiple queries (hold Ctrl) and click Merge. Power Query will merge them in the order you selected them, but the dialog only lets you set the join conditions between the first two. For complex merges, do them in steps.
Does Merge work in Excel for Mac?
Power Query in Excel for Mac has limited features. Merging may not be available or may work differently. For full Power Query functionality, use Excel on Windows or Power BI Desktop.
What is the difference between Merge and Append?
Merge combines columns from two queries based on matching keys (like a SQL join). Append stacks rows from two queries with the same columns (like a union). Merge is greyed out if you have not selected two queries; Append has similar requirements.
Why can't I select a column as a key in the Merge dialog?
The columns you select must have the same data type. For example, if one column is Text and the other is Number, they won't match. Change the data type of one column to match the other before merging.