Excel Data Consolidate Example: Combine Sheets by Labels

How-to basics · Updated November 21, 2026

To consolidate matching tables in Excel for Microsoft 365 on Windows, choose a blank destination cell, select Data > Data Tools > Consolidate, set the function to Sum, add each source range, and select Top row and Left column if the tables have headings. For example, consolidating January, February, and March product sales produces one table with each product’s combined quarterly totals.

What Excel’s Consolidate command does

Consolidate combines values from separate ranges into a summary range. Its useful feature is that it can match records by their row and column labels, rather than requiring every value to sit in exactly the same cell in every source. That makes it suitable for combining recurring reports, such as monthly sales by product and quarter, when each report uses the same labels but rows may be in a different order.

The command is different from merging cells or joining text. It applies a chosen calculation to corresponding values. The available calculations include Sum, Count, Average, Max, Min, Product, Count Numbers, StdDev, StdDevp, Var, and Varp. For most sales or expense summaries, Sum is the natural choice. Count counts nonempty entries, while Count Numbers counts numeric entries; neither is the same as adding the values.

Consolidate can use ranges in the current workbook or source ranges in other workbooks. The results are placed in a destination range you choose. It does not turn the source tables into one permanently connected database: you choose the source ranges and the calculation, and should review the result and its update behavior before relying on it.

Worked example: combine three monthly reports

Suppose the January, February, and March worksheets each contain a report in A1:C3. The first row contains the quarter labels, column A contains product names, and the other cells contain sales. The sample figures are:

  • January: Pens 120 in Q1 and 140 in Q2; Paper 80 in Q1 and 100 in Q2.
  • February: Pens 90 in Q1 and 160 in Q2; Paper 70 in Q1 and 120 in Q2.
  • March: Pens 110 in Q1 and 130 in Q2; Paper 90 in Q1 and 110 in Q2.

Each sheet is arranged like this: A1 is blank, B1 is Q1, C1 is Q2; A2 and A3 are Pens and Paper. The values occupy B2:C3. The blank top-left cell is acceptable because the row and column labels are what Excel uses to identify the categories.

After consolidating with Sum and both label options selected, the summary is:

  • Pens: Q1 = 120 + 90 + 110 = 320; Q2 = 140 + 160 + 130 = 430.
  • Paper: Q1 = 80 + 70 + 90 = 240; Q2 = 100 + 120 + 110 = 330.

For instance, the Q1 total for Pens is 320, and the Q2 total for Paper is 330. Those figures are the sums across all three reports, not averages. The source ranges include the headings so Excel can match the labels as well as the numbers.

Steps to use Consolidate in Excel for Windows

  1. Create or open the worksheets containing the source tables. Check that each range has clear row or column labels and that the labels mean the same thing in each report.
  2. Click a blank cell where the upper-left corner of the summary should go. Keep the destination clear of source data so the output does not overwrite a report.
  3. On the ribbon, select Data > Data Tools > Consolidate. In the dialog, choose Sum from the Function list.
  4. In the Reference box, select the first source range, including its headings, and click Add. Repeat for the other worksheets. Check that every intended source appears in the All references list.
  5. For tables that should be matched by headings, select Top row and Left column under Use labels in. Select only the options that correspond to labels actually present in the ranges.
  6. Optionally select Create links to source data if you want linked detail and an outline structure. For a standalone summary, leave it cleared. Click OK, then check the summary against the original reports.

If the source is in a different workbook, use the Reference box to select the required range in that workbook and add it. Keep the source workbook available while selecting ranges, and verify the reference before accepting the dialog. On Excel for Mac, look for Data > Consolidate; ribbon grouping and dialog presentation can differ from Windows. Excel for the web may not offer the desktop Consolidate command, so open the workbook in the desktop app if it is unavailable.

Match by labels or by position?

The two matching approaches solve different problems. With Top row selected, Excel can match column headings such as Q1 and Q2. With Left column selected, it can match row headings such as Pens and Paper. Selecting both is appropriate for the worked example: the summary aligns both products and quarters by name, even if their positions differ between source ranges.

If neither label option is selected, Excel consolidates by position: the value in the first row and column of each selected range is combined with the value in the first row and column of the other ranges, and so on. This is appropriate only when the ranges have the same layout and the same meaning in each position. A reordered product list can produce a misleading result if you consolidate by position.

Label matching depends on consistent wording. “Paper” and “Paper ” with an extra trailing space, for example, may not behave as the same label. Before consolidating, standardize spelling, spacing, and category names. Also avoid using identical labels for genuinely different categories; matching labels tell Excel that the values belong together.

Should you create links to source data?

The Create links to source data option changes how the result is presented. When selected, Excel creates links from the consolidated result to the source data and provides outline controls for viewing detail. This is useful when a reader needs to trace a summary value back to its contributing entries, and when source changes should be reflected through those links.

Leaving the option cleared creates a summary without that linked detail structure. This can be simpler to share, but it is not a live connection that automatically discovers new rows or new worksheets. In either case, do not assume that adding a new month to the workbook automatically adds it to an existing consolidation. Reopen the Consolidate dialog, add the new range, and check the refreshed result when the source set changes.

For a compact report where source ranges are stable, a formula may be easier to inspect. With January, February, and March sheets adjacent in that exact tab order, and the same product-quarter value in cell B2 on each sheet, enter =SUM(Jan:Mar!B2) in the summary cell. If B2 contains 120, 90, and 110 on those sheets, the formula returns 320. A three-dimensional reference includes the named sheets and any sheets positioned between them, so check tab order and use this method only when the cell layout is consistent.

Common problems and how to fix them

  • A category is missing or split into two labels: Compare the labels in every source for spelling, punctuation, and extra spaces. Correct the source labels, then run the consolidation again.
  • The total looks too large: Check the All references list for a range that was added twice, and confirm that the source ranges do not include old totals or grand-total rows. Adding those rows can count values that were already included.
  • Numbers are not included as expected: Confirm that the source cells contain numbers rather than numeric-looking text. Also confirm that the intended function is Sum and that the correct ranges were selected.
  • The output is misaligned: If the source layouts differ, select the appropriate label options. If you intended to match by position, make sure every range has the same arrangement and includes the same kinds of rows and columns.
  • New rows do not appear: Review the references in the dialog. A range that ends at row 20 will not include a newly added row 21 unless you expand the range and consolidate again.

Use a clean destination range and inspect several individual totals, not just the grand total. A total can look plausible even when one source was omitted or a category was matched incorrectly. Keeping a copy of the original reports unchanged makes it easier to investigate discrepancies.

Consolidate compared with formulas, PivotTables, and Power Query

Consolidate is a straightforward choice for a small number of similarly structured reports when you want an aggregated summary and do not need a large, reusable data model. Its interface makes the calculation and source ranges visible, but the user must manage the range list and repeat the setup when the source set changes.

Formulas are useful when the layout is stable and you want to see exactly how a result is calculated. A three-dimensional SUM can combine the same cell across adjacent worksheets, while individual SUM formulas can reference specific cells. Formulas are less convenient when source tables have different row orders or when the number of reports changes frequently.

A PivotTable is often a better fit when records are stored in one consistent table with fields such as Date, Product, Region, and Sales. It lets you rearrange fields and summarize categories interactively. Power Query is generally more suitable when monthly files or tables must be imported, cleaned, appended, and refreshed as a repeatable process. These tools have different setup requirements; Consolidate is not a substitute for cleaning inconsistent source data.

Frequently Asked Questions

Can Excel consolidate data from multiple worksheets?
Yes. Add each worksheet’s source range in the Consolidate dialog. Use Top row and Left column when you want Excel to match corresponding categories by headings; use position-based consolidation only when the layouts correspond exactly.

Does Excel Consolidate update automatically?
Not simply because you add a new sheet or extend a source range. Create links to source data can link the summary to selected source cells, but you still need to manage the source references. Add new ranges and rerun or update the consolidation as appropriate.

Can I consolidate data with different row orders?
Yes, if the ranges share consistent labels and you select Left column for row labels. Select Top row as well if column headings should also be matched. Without the relevant label option, Excel matches by position instead.

Where is Consolidate in Excel?
In Excel for Microsoft 365 on Windows, select Data > Data Tools > Consolidate. On Mac, look under Data > Consolidate; the ribbon may look different. If the command is unavailable in Excel for the web, use the desktop app.

Should I choose Sum or Count?
Choose Sum to add numeric amounts, such as sales or units. Count counts nonempty entries, while Count Numbers counts numeric values. Choose the calculation that answers the question your summary is meant to answer.

Before sharing the consolidated report

Confirm the function, destination, and source list; check that the headings are consistent; and verify sample totals against the source sheets. Record which periods or workbooks were included so readers understand the scope. If the reports are likely to gain new rows, categories, or files regularly, consider whether a PivotTable or Power Query process will be easier to maintain than repeating a manual consolidation.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.