How can I consolidate data in Excel?

You can use Excel's Consolidate feature to consolidate your worksheets (located in one workbook or multiple workbooks) into one worksheet. Below you can find the workbooks of three districts.

Before you start: if your worksheets are identical, it's probably easier to create 3D-references (if you have one workbook) or External References (if you have multiple workbooks) to consolidate your data.

How can I consolidate data in Excel?

How can I consolidate data in Excel?

How can I consolidate data in Excel?

As you can see, the worksheets are not identical. However, the beauty of the Consolidate feature is that it can easily sum, count, average, etc this data by looking at the labels. This is a lot easier than creating formulas.

1. Open all three workbooks.

2. Open a blank workbook. On the Data tab, in the Data Tools group, click Consolidate.

How can I consolidate data in Excel?

3. Choose the Sum function to sum the data.

4. Click in the Reference box, select the range A1:E4 in the district1 workbook, and click Add.

5. Repeat step 4 for the district2 and district3 workbook.

How can I consolidate data in Excel?

6. Check Top row, Left column and Create links to source data.

Note: if you don't check Top row and Left column, Excel sums all cells that have the same position. For example, cell B2 (in district1.xlsx) + cell B2 (in district2.xlsx) + cell B2 (in district3.xlsx). Because our worksheets are not identical, we want Excel to sum cells that have the same labels. If you check Create links to source data, Excel creates a link to your source data (your consolidated data will be updated if your source data changes) and creates an outline.

7. Click OK.

Result.

How can I consolidate data in Excel?

How can I consolidate data in Excel?

In: BlogDate: Dec 05, 2017By: Ed Lepre

Do you need to view and compare lots of data in a single spreadsheet? There is a quick and easy way to do this – using the Data Consolidation tool. In this blog, Edmund, one of our Excel experts, shares his top tips.

Hi, we are Happy

We are leading a movement to create happy, empowered and productive workplaces.

How can we help you and your people to find joy in at least 80% of your work?

More about Happy

Data Consolidation allows you to gather together your data from separate worksheets into a master worksheet. In other words, the Data Consolidation function takes data from a series of worksheets or workbooks and summaries it into a single worksheet that you can update easily.

The trouble is, working with Data Consolidation can be tricky! Don’t be put off. Data Consolidation is an incredibly useful tool that help you understand and present your data quickly and easily. The screen may look daunting but like all great things, good planning is the key.

This example contains some tips from Edmund, one of our Excel experts, and will help you decide how to organise your data before you start summarising it to get easily understandable results.

Here we look at:

  1. Consolidating data from multiple worksheets to one summary within the same workbook.
  2. Consolidating data from multiple workbooks to one summary in a new workbook.

NOTE: The following processes will work in Excel versions: 2007, 2010, 2013 and 2016. If you are using an older version (Excel 2003 or older), this tip may not work for you.

Consolidate data in multiple worksheets within the same workbook

In our example, we have data for 3 years expenditure on tea, coffee and milk. The data is broken down into quarters and stored in one year per worksheet in one workbook. We can create a ‘Consolidated Summary’ sheet which will show expenditure by year and quarter. It does not matter if the data has the same arrangement of columns and rows or not. Excel will sort that out for you. Amazing!

Year 1 worksheet

Year 2 worksheet

Year 3 worksheet


As you can see, Years 1, 2 and 3 each have different arrangements of columns and rows. There is no tea in Year 2; in Year 3 the first quarter appears at the end of the table, there is no Quarter 2 and the Quarters are not in order. The ranges you consolidate do not have to be of the same size in each worksheet, the number of rows or columns might be different from sheet to sheet. And yet, you can still consolidate the data into a summary sheet. How incredible is that!

Consolidation steps:

To start using the Data Consolidation tool, you need to select an empty sheet in the workbook as your master worksheet or add a new one if necessary. The worksheet is renamed ‘Consolidated Summary’.

Select the upper-left cell of the area where you want the consolidated data to appear.

On the Ribbon, Choose Data > Consolidate to view the Consolidate dialog:


In the Function box, click the summary function that you want Excel to use to consolidate the data. As you will see from the drop-down, there are 11 functions to choose from. For our data we want to add up the values so we’ll set the Function to Sum. 

Click in the Reference area and select the first data range to consolidate – to do this you will need to click the Sheet tab i.e. “Year 1” and then drag over the data (including row and column headings) and then click the Add button to add this first set of data to the consolidation dialog.

Continue in the same way by clicking on the next sheet, highlighting the data, and clicking on the Add button until all your data and worksheets appear in the References section of the dialog e.g. “Year 2” and “Year 3”.


Top Tip:
You can name your ranges before you start the Consolidation process. If you name each range then, when you create the consolidation, place your cursor in the Reference field, press F3 and then choose the range from the list in the Paste Name dialog.


To indicate where the labels are located in the source ranges, select the check boxes under Use labels in: either the Top row, the Left column, or both. In this example, Top row is the name of the quarters, i.e. Quarter 1, Quarter 2, etc. and the Left Column are the list of items, i.e. Coffee, Tea and Milk.

Automatic vs. Manual updates: If you want Excel to update your consolidation table automatically when the source data changes, select the Create links to source data check box. If unchecked, you can still update the consolidation manually.

When you click OK, Excel summarises all the data into your new sheet as your master worksheet (Consolidated Summary).

You’ll immediately notice a change to the Excel worksheet that you may never have seen before. You will see grouping tools down the left of the screen which you can use to display and hide the data. Next to rows 7, 10 and 14, there are plus signs. This signifies that cells are part of a group that is currently collapsed. Clicking on the plus sign will expand the group and there is a line connecting these rows to the left:


You’ll find that the second column (Column C) of data shows the name of the workbook (Core Excel Level 2) that contains the data. You can hide this column if you want to, by right clicking it and choosing Hide. This simply hides the column so the data is there should you need to refer to it later on.

Copying your worksheets to a new workbook

Here’s another time when pre-planning will be your friend.

When you look at your Consolidated Summary, you will see that there are some entries which are not helpful. For instance, range C4:C6 shows only the name of the workbook, so we cannot immediately see where the figures in the range D4:G6 come from.

If you wish to show the location of the source data on the summary sheet, I strongly advise you to separate all worksheets to individual workbooks before you apply the data consolidation. Let’s look at how to do this.

We’re going to copy the selected worksheet into a new workbook, so select (new book) from the To book drop-down list. Select the Create a copy check box. Because we’re creating a new workbook, there are no worksheets in the Before sheet list before which we can insert the copied worksheet. It will be the only worksheet in the new workbook.


Click OK. A new workbook is created and the worksheet is copied into it. If you chose to move the worksheet, it will no longer be in the original workbook. Save the current workbook by the name of the worksheet that you copied to i.e. “Year 1.xls”.

Continue creating new workbooks for each year e.g. “Year 2” and “Year 3” to “Year 2.xls” and “Year 3.xls” respectively. Yes, this is tedious, especially if you have a lot of worksheets, but you’ll thank me in the end!

Consolidate data from multiple workbooks to one new workbook

Make sure all the individual workbooks you wish to consolidate are currently open.

Open a new, blank workbook as your master worksheet or add a new one if necessary. The worksheet is renamed as “Consolidate Summary” and save this workbook with a name e.g. Summary.xls.

Select the upper-left cell of the area where you want the consolidated data to appear.

On the Ribbon, Choose Data > Consolidate to view the Consolidate dialog

We now simply proceed as we did in the first example, the only difference being we are selecting data ranges from different workbooks instead of different worksheets.

When you click OK, Excel summarises all the data into your new master worksheet (Consolidated Summary).


Here you will see the same data as in the first example, except displayed in a much more helpful way – Column C now shows the name of the workbook that contains the data.

  • Save Time in Excel with Autofill - Learn how to use the useful tool Autofill. Nicky explains how in the two minute video.
  • How Microsoft Excel Can Increase Your Productivity - Billy talks about some of the reasons why Microsoft Excel is so indispensable to productive workplaces in this blog.
  • How to Create a Pivot Table in Excel - Pivot tables are the perfect way to sort and analyse data in Excel. This two minute video takes you through the process of how to do so. 
  • Calculations on a Filtered List in Excel - Darren talks through the process of how to create a dropdown filter in your Excel spreadsheets.

Why not sign up to our newsletter?

Sign up to our monthly newsletter, full of tips, tricks and news to help you to be happier and more productive at work.

Sign up here

Feefo service rating

Improve your productivity in Excel with happy

Happy has high-quality, learner-focused Excel training courses for all skill levels, designed to improve your confidence and productivity. And our new online learning programme is just as interactive as our classroom sessions.

Here are our most popular options:

  • If you are new to Excel, take a look at our Beginner Excel Core Level 1 course. Join us online on the 8th February or in the classroom at Happy on 15th February.
  • If you are comfortable with using Excel and creating formulas, take a look at our Intermediate Excel Core Level 2 course. The next available online course is 23rd February, or join us in the classroom on 22nd February.
  • Wanting to analyse Excel data more effectively? We have an intensive full-day Advanced Excel Level 3 course. Our next available online course is on 1st February and our next classroom course is 10th January.

Our learners tell us that they save an average of 32 minutes a day with our Excel training courses. How much time could you save with us?

Why learn online with Happy?

  • Interactive and engaging - just like our classroom sessions
  • Bitesize or full-day sessions - fit around your schedule
  • Learn from home - all you need is a quiet place to call from and an internet connection
  • IT Helpline - 2 years of free support after your course
  • No quibble money-back guarantee

Ed Lepre

Ed is a Microsoft Certified Trainer (MCT) and has worked at Happy for over 12 years. Although he trains the full suite of MS Office and non-Office packages at all levels, his favourite package is Excel. A previous winner of the prestigious Learning and Performance Institute's 'Learning Professional of the Year' award, as well as other training accolades, he is also the IT Helpline Manager.

More by Ed

  • IT Tips & Tricks

Testimonials from happy Customers

Independent Service Rating
based on 232 verified reviews.

  • 5 out of 5 stars

    Really great training

    Alexandra Eleftherio11 days ago
  • 5 out of 5 stars

    The process for booking a session was super simple. There was enough detail in the course description for me to choose the right one for me. I like the fact that there is...

    Trusted Customer12 days ago
  • 1 out of 5 stars

    I wasn't able to complete/finish the course, as I was left behind during the session and unable to catch up. I will need to book onto another session

    Trusted Customer14 days ago
  • 5 out of 5 stars

    The whole experience being there was very good.

    Trusted Customer17 days ago
  • 5 out of 5 stars

    The John who met and greeted you was a pleasant chap, the facilitator was patient and understanding, all together a happy experience.

    Trusted Customer18 days ago
  • 5 out of 5 stars

    The training was excellent and catered for all learning styles, with a PowerPoint which showed everything step by step, the trainer talked us through each task then we go...

    Sam Nevill19 days ago
  • 5 out of 5 stars

    Excellent paced course with plenty hands on exercises to do.

    Sally Chaplin19 days ago
  • 5 out of 5 stars

    Pace of training excellent , great handout book to take away to refer to and not too many in class. The no question is a silly question attitude and if anyone fell a lit...

    Trusted Customer20 days ago
  • 5 out of 5 stars

    Good and engaging trainer with thoughtful content. The pace of the course was spot on, and lots to think about. The venue and facilities were perfect, lunch was very good...

    Jane Black25 days ago
  • 5 out of 5 stars

    Expertise of the trainer. Very positive learning environment. Good pace of learning with adequate rest breaks.

    Dermot O'Haire25 days ago
  • 4 out of 5 stars

    I learnt a lot from the course, It would be great if there is another course would focus on using logical functions and practicing on the exercises.

    Trusted Customer26 days ago
  • 4 out of 5 stars

    Very professional, well informed, engaging content

    Trusted Customer26 days ago

What are the steps for consolidating data in Excel?

Consolidate Data.
Select the sheet where the consolidated data will be placed..
Click the cell in the worksheet where you want to place the consolidated data..
Click the Data tab on the ribbon..
Click the Consolidate Data button in the Data Tools group. ... .
Select a function from the list. ... .
Click the Collpase Dialog Box button..

What is the Consolidate tool in Excel?

Data Consolidation allows you to gather together your data from separate worksheets into a master worksheet. In other words, the Data Consolidation function takes data from a series of worksheets or workbooks and summaries it into a single worksheet that you can update easily.