How to Use the Consolidate Function in Excel Step by Step
In this article
The Consolidate function in Excel combines data from multiple ranges or worksheets into a single summary table, using operations like sum, average, or count. It's most useful when you have similar data structures across different sheets or workbooks and need a quick overview without manually copying or linking cells. You’ll need Excel installed (desktop version—this feature isn’t available in Excel for the web or mobile apps) and your source data must be consistently structured (same column headers and layout across ranges).
What You’ll Need
- Microsoft Excel (desktop version: Windows or Mac)
- Two or more data ranges or worksheets with identical column/row labels and consistent formatting
- Source data must be in a tabular format (e.g., Range A1:D50 on Sheet1, A1:D45 on Sheet2)
- Ensure no merged cells exist in source ranges (they can cause errors)
Step-by-Step
- Open your Excel workbook and ensure all source data ranges are ready and labeled consistently. For example, if you have monthly sales reports on separate sheets (Jan, Feb, Mar), each should have the same column order: Product, Region, Sales, Units Sold.
- Select the top-left cell where you want the consolidated report to appear—typically a new sheet (e.g., right-click the sheet tab > Insert > Worksheet, then click cell A1).
- Go to the Data tab on the Excel ribbon.
- Click Consolidate in the Data Tools group (if you don’t see it, click Data Tools to expand the group, or press Alt + A + E + S on Windows or Fn + Control + Option + D on Mac to open the dialog directly).
- In the Consolidate dialog box, choose your function from the Function dropdown. For sales totals, select Sum; for averages, choose Average; for counts, select Count.
- Click the range selector icon (a small red arrow) next to the Reference box. Now, highlight the first data range (e.g., select A1:D50 on the Jan sheet). Click the icon again to confirm and close the selection dialog.
- Repeat step 6 for each additional range (e.g., add Feb and Mar ranges). After selecting each range, click Add to include it in the list. You can add up to 30 references.
- Check the boxes under Use labels in:
- Top row if your data has column headers in the first row (e.g., "Product", "Region")
- Left column if your data has row headers in the first column (e.g., "Product A", "Product B")—this is optional but recommended for cross-tab summaries
- Leave both unchecked only if your data has no headers and you’re consolidating raw values.
- Click OK. Excel will generate the consolidated summary, placing totals (or other function results) at the intersection of matching row and column labels.
Common Mistakes
- Mismatched labels: If "Product A" appears as "Prod A" in one sheet and "Product A" in another, Excel won’t group them together—consolidation will create duplicate rows/columns instead of summing.
- Inconsistent layouts: Moving columns (e.g., Sales before Region in one sheet, after in another) breaks consolidation. All source ranges must have identical column order and headers.
- Using merged cells: Excel ignores ranges with merged cells in the source data. Unmerge cells before consolidating.
- Forgetting to add references: Selecting a range and clicking OK without clicking Add means only the last selected range is used.
- Using the wrong function: Choosing Count when you need Sum will give you the number of entries, not totals.
- Overlooking hidden rows/columns: Hidden data is included in consolidation. Unhide rows/columns first if you want to exclude them.
Tips
- Test with a small range first: Consolidate just two rows from two sheets to verify alignment before running a full dataset.
- Label everything clearly: Use exact text matches for headers (e.g., "Sales" not "Sales $" or "Sales (USD)").
- Use named ranges: Define names like "Jan_Sales" for each sheet’s data range, then add those names in the Reference box—this avoids reselecting ranges manually.
- Refresh manually: Consolidation doesn’t auto-update. When source data changes, re-run the Consolidate dialog or use a pivot table instead for dynamic summaries.
- Keep a backup: Consolidation overwrites the target cell. Save a copy of your workbook before starting.
- Combine with formatting: After consolidating, apply conditional formatting or borders to make the summary easier to read.
Troubleshooting
If your consolidated table shows zeros, #REF! errors, or missing data:
- Restart Excel—sometimes the dialog box fails due to temporary glitches.
- Check for hidden characters: Copy a header from one sheet and paste it into Notepad, then copy it back to Excel to remove hidden spaces or non-printing characters.
- Verify range references: In the Consolidate dialog, ensure all references are listed correctly and point to valid ranges (no #REF! in the list).
- Unmerge cells: Select all source ranges, go to Home > Alignment group > Merge & Center > Unmerge Cells.
- Check for text vs. number mismatches: If a column contains "100" (text) in one sheet and 100 (number) in another, Excel won’t sum them. Use Text to Columns (Data > Data Tools group) to convert text to numbers.
- Rebuild the reference list: Click Cancel, delete the consolidated table, and restart the steps—sometimes adding references in a different order resolves alignment issues.
- Confirm you’re using Excel desktop: The Consolidate function is missing in Excel Online, Excel for Mac (older versions), and mobile apps. Use Excel 2016 or later on Windows/Mac for guaranteed support.
Frequently Asked Questions
Can I consolidate data from different workbooks?
Yes—open both workbooks first, then in the Consolidate dialog, click the range selector and choose the workbook and sheet, or type the full path (e.g., [Sales_2024.xlsx]Jan!$A$1:$D$50).
Does Consolidate work with filtered data?
No—it includes hidden rows by default. Unfilter your data before consolidating, or use a pivot table with filters for dynamic filtering.
Can I consolidate by row only (no column labels)?
Yes—check only Left column in the Use labels section. This works if each row has a unique identifier (e.g., employee ID) and you want totals per row across sheets.
Why are some values showing #REF!?
This usually means a source sheet was deleted or renamed after consolidation. Re-add the missing reference in the Consolidate dialog or restore the sheet.
Is there an automatic way to update the summary when source data changes?
No—Consolidate is static. For dynamic summaries, use a pivot table (Insert > PivotTable) or Power Query (Data > Get & Transform Data).
Can I consolidate across more than 30 ranges?
No—the dialog limits you to 30 references. If you have more, group ranges into sub-summaries first or use Power Query to combine them.