Analistable

How to consolidate data in Excel

By the Analistable team · Updated · 3 min read

To consolidate data in Excel, use Data → Consolidate: choose a function such as Sum, add the range from each sheet, tick Top row and Left column, and click OK. Excel totals matching labels across all sheets. For live formulas, use a 3D reference like =SUM(Jan:Dec!B2). To total duplicate rows within one list, use a pivot table or Power Query Group By.

What consolidation means

Consolidating summarises data from several places into one result: total sales per product across twelve monthly sheets, or one row per customer from a list where customers repeat. It's different from stacking, which keeps every row. If you need every row in one table, see combining sheets into one.

Methods compared

Ways to consolidate data in Excel
MethodConsolidatesUpdatesNotes
Data → ConsolidateSame labels across sheetsOptional linksBuilt in to every version
3D SUMSame cell across sheetsLiveSheets must share a layout
SUMIFS per sheetCriteria across sheetsLiveFlexible, longer formulas
Pivot tableDuplicate rows in one tableOn RefreshBest for exploring
Power Query Group ByRows from any number of sourcesOn RefreshBest for repeat jobs

Method 1: the Consolidate tool

  1. Select an empty cell on a summary sheet.
  2. Choose Data → Consolidate.
  3. Pick a function: Sum, Count, Average, Max, Min and others.
  4. Click into Reference, select the range on the first sheet including labels, and click Add. Repeat for each sheet.
  5. Tick Top row and Left column so rows and columns are matched by label, not position.
  6. Optionally tick Create links to source data to keep the summary connected to the sources, then click OK.

Example: three sheets list sales by product in different orders and with different products. Consolidate by label returns one row per product with the total.

Consolidated with Sum, matched by label
ProductJanFebMarConsolidated
Desk120090011003200
Chair640710—1350
Lamp—300260560

More detail and limitations: the Consolidate function in Excel.

Method 2: formulas across sheets

If every sheet has the same layout, =SUM(Jan:Dec!B2) adds cell B2 on every sheet between Jan and Dec. For criteria, SUMIFS doesn't accept 3D references, but in Microsoft 365 you can combine FILTER and VSTACK: =SUM(FILTER(VSTACK(Jan:Dec!C2:C500), VSTACK(Jan:Dec!A2:A500)="Desk")). See SUMIFS across multiple sheets.

Method 3: consolidate duplicate rows

When one list repeats the same customer or product, a pivot table gives one row per value with totals: select the data, Insert → PivotTable, drag the label to Rows and the number to Values. To merge the text in duplicate rows instead of adding numbers, use TEXTJOIN. See combining rows in Excel.

Method 4: Power Query Group By

Load the data (or several appended tables) into Power Query, select the label column and choose Home → Group By. Add an aggregation for each number column. The result refreshes when sources change, which suits monthly reporting.

Which method should you choose?

  • Sheets with identical layouts (a budget template per department) → 3D SUM formulas or Consolidate by position.
  • Sheets with the same labels in different orders → Consolidate with Top row and Left column ticked.
  • One long list with repeated customers or products → pivot table, or Power Query Group By if it must refresh.
  • Files that arrive every month → stack them with Power Query From Folder, then Group By or pivot.

Check the consolidated totals

A consolidation that silently drops a sheet or a row looks exactly like a correct one. Add a control total next to the result:

Total of sources:      =SUM(Jan:Dec!C2:C500)
Total of consolidation: =SUM(Summary!C2:C200)
Difference:            =ROUND(C1-C2, 2)

Any difference other than 0 means a label didn't match (often a trailing space), a range missed new rows, or a sheet sits outside the 3D range. For a reusable layout with checks built in, see building a consolidation template.

Every guide in this topic

Frequently asked questions

How do I consolidate data from multiple sheets in Excel?
Use Data → Consolidate, add each sheet's range, and tick Top row and Left column to match by labels. For a live result, use 3D formulas such as =SUM(Jan:Dec!B2).
Why does Consolidate put numbers in the wrong rows?
If Top row and Left column aren't ticked, Excel consolidates by position. Tick both so it matches by label.
Can Consolidate combine text?
No. Consolidate only aggregates numbers. Use TEXTJOIN, or Power Query Group By with a text aggregation, to merge text.
Does Consolidate update automatically?
Only if you tick Create links to source data, and then only for sources on other sheets or workbooks. Otherwise, run it again after the data changes.