Consolidate in Excel_ Merge multiple sheets into one
Consolidate in Excel_ Merge multiple sheets into one
The tutorial demonstrates different ways to combine sheets in Excel depending on what result you are after
- consolidate data from multiple worksheets, combine several sheets by copying their data, or merge two
Excel spreadsheets into one by the key column.
Today we will tackle a problem that many Excel users are struggling with daily - how to merge multiple
Excel sheets into one without copying and pasting. The tutorial covers two most common scenarios:
consolidating numeric data (sum, count, etc.) and merging sheets (i.e. copying data from multiple
worksheets into one).
Let's consider the following example. Supposing you have a number of reports from your company
regional o�ces and you want to consolidate those �gures into a master worksheet so that you have
one summary report with sales totals of all the products.
As you see in the screenshot below, the three worksheets to be consolidated have a similar data
structure, but di�erent numbers of rows and columns:
1 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
1. Arrange the source data properly. For the Excel Consolidate feature to work correctly, make sure
that:
Each range (data set) you want to consolidate resides on a separate worksheet. Don't put any
data on the sheet where you plan to output the consolidated data.
Each sheet has the same layout, and each column has a header and contains similar data.
2. Run Excel Consolidate. In the master worksheet, click the upper-left cell where you want the
consolidated data to appear, go to the Data tab and click Consolidate.
Tip. It's is advisable to consolidate data into an empty sheet. If your master worksheet already
has some data, make sure there is enough space (blank rows and columns) to contain the
merged data.
3. Con�gure the consolidation settings. The Consolidate dialog windows appears and you do the
following:
In the Function box, select one of the summary functions you want to use to consolidate your
data (Count, Average, Max, Min, etc.). In this example, we select Sum.
In the Reference box, clicking the Collapse Dialog icon and select the range on the �rst
2 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
worksheet. Then click the Add button to have that range added to the All references Repeat this
step for all the ranges you want to consolidate.
If one or some of the sheets reside in another workbook, click the Browse bottom to locate the
workbook.
4. Con�gure the update settings. In the same Consolidate dialog window, select any of the following
options:
Check the Top row and/or Left column boxes under Use labels if you want the row and/or column
labels of the source ranges to be copied to the consolidation.
Select the Create links to source data box if you want the consolidated data to update
automatically whenever the source data changes. In this case, Excel will create links to your
source worksheets as well as an outline like in the following screenshot.
If you expand some group (by clicking the plus outline symbol), and then click on the cell with a
certain value, a link to the source data will display in the formula bar.
3 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
As you see, the Excel Consolidate feature is very helpful to pull together data from several worksheets.
However, it does have a few limitations. In particular, it works for numeric values only and it always
summarizes those numbers in one way or another (sum, count, average, etc.)
If you want to merge sheets in Excel by copying their data, the consolidation option is not the way to
go. To combine just a couple of sheets, you may not need anything else but the good old copy/paste.
But if you are to merge tens of sheets, errors with manual copying/pasting are inevitable. In this case,
you may want to employ one of the following techniques to automate the merge.
VB scripts
4 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
With the Copy Sheets added to your ribbon, the 3 simple steps is all it takes to merge the selected
sheets into one.
On the Excel ribbon, go to the Ablebits tab, Merge group, click Copy Sheets, and choose one of the
following options:
Copy sheets in each workbook to one sheet and put the resulting sheets to one workbook.
Since we are looking to combine several sheets by copying their data, we pick the last option:
5 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
The Copy Sheets wizard displays a list of all the sheets in all open workbooks. Select the worksheets
you want to combine and click Next.
If you don't want to copy the entire content of a certain worksheet, make use of the Collapse Dialog
icon to select the desired range as shown in the screenshot below.
6 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
Tip. If the worksheets you want to merge reside in another workbook that is currently closed,
click the Add files... button to browse for that workbook.
In this step, you are to con�gure additional settings so that your worksheets will be combined
exactly the way you want.
Paste all - copy all the data (values and formulas). In most cases, it is the option to choose.
Paste values only - if you don't want formulas from the original sheets to be pasted into the
summary worksheet, select this option.
Create links to source data - this will inset formulas linking the merged data to the source data.
Select this option if you want the merged data to update automatically whenever any of the
source data changes. It works similarly to the Create links to source data option of Excel
Consolidate.
Place copied ranges one under another- arrange the copied ranges vertically.
Place copied ranges side by side - arrange the copied ranges horizontally.
Separate the copied ranges by a blank row - select this option if you want to add an empty row
between data copied from di�erent worksheets.
Copy tables with their headers. Check this option if you want the table headers to be included in
the resulting sheet.
The screenshot below shows the default settings that work just �ne for us:
7 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
Click the Copy button, and you will have the information from three di�erent sheets merged into
one summary worksheet like shown in the beginning of this example.
8 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
As the result, only the data from the columns that you selected get into the summary sheet:
9 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
These examples have demonstrated only a couple of our merge tools, but there is much more to it!
After experimenting a bit, you will see how useful all the features are. The fully functional evaluation
version of the Ultimate Suite is available for download at the end of this post.
Please keep in mind that for the VBA code to work correctly, all of the source worksheets must have
the same structure, the same column headings and same column order.
How to merge two Excel sheets into one by the key column(s)
10 of 11 2/15/2025, 2:23 PM
Firefox https://www.ablebits.com/office-addins-blog/consolidate-excel-merge-s...
If you are looking for a quick way to match and merge data from two worksheets, then you can either
employ the Excel VLOOKUP function or embrace the Merge Tables Wizard. The latter is a visual user-
friendly tool that lets you compare two Excel spreadsheets by a common column(s) and pull matching
data from the lookup table. The following screenshot demonstrates one of possible results.
The Merge Tables wizard is also included with the Ultimate Suite for Excel.
This is how you consolidate data and merge sheets in Excel. I hope you will �nd the information in this
short tutorial helpful. Anyway, I thank you for reading and look forward to seeing you on this blog
next week!
11 of 11 2/15/2025, 2:23 PM