How to merge data from multiple sheets to one sheet in excel

Long ago BPQ (before Power Query), I wrote a similar post on how to combine data from multiple sheets but using VBA. Now that we have Power Query, combining data from multiple sheets into a single sheet has become so much simple (& not to mention code free).

In this step by step tutorial I’ll share with you that how can you append data from multiple sheets to a single sheet using none other than Power Query

Let’s begin

Consider this Excel Workbook with Multiple Sheets

How to merge data from multiple sheets to one sheet in excel

For now I have the same data across all the sheets, only difference being the dates are different

Step 1 – Create a New Sheet called “Consolidated Data”

  1. I am sure I don’t have to explain how to create a new sheet, just rename it to “Consolidated Data” (you can name it whatever you like)
  2. Make sure to Save the file after you insert and rename the sheet

Step 2 – Connect the Excel file to Power Query

How to merge data from multiple sheets to one sheet in excel

  1. In the Data Tab
  2. Get Data Drop Down >> From File >> From Workbook
  3. Direct the navigation to the path where the workbook is saved
  4. Power Query will give you a list of all sheets in the workbook.
  5. Since we want to combine data from all sheets, click on the Excel file name (rather than choosing any particular sheet)
  6. The sheet names get loaded in Power Query

Step 3 – Combining Data from All Sheets into a Single Sheet

How to merge data from multiple sheets to one sheet in excel

  1. Since we want to combine data from only on the sheets, apply a filter to the “Kind” column and keep only “Sheet”
  2. Next Promote the Headers by adding a Custom Column
    1. Add Column Tab >> Custom Column
    2. Write following formula =Table.PromoteHeaders ( [Data] )
    3. A new column with “Table” values will be inserted
  3. Keep only the Custom column and the Name column and “Remove other Columns”
  4. Now we want to exclude the sheet “Consolidated Data” (where the data will be combined), filter that sheet out from the Name column
  5. Now expand the Custom column
  6. Change the data type of the columns if required
  7. Done!

Step 4 – Load the Data into Excel

  1. Make sure to click on Load to
  2. This will allow you to load the data into Consolidated Data sheet

Video Lover ?

More of such tricks..

  1. Combine Data from Multiple Excel Files into a Single File
  2. Change Pivot Table Fields Calculations with VBA
  3. Change Pivot Table Calculations using Slicers (using DAX Power Pivot)
  4. Three Smartest Ways to apply filters on Data
  5. Filter Data with Multiple Criteria using Power Query(and automate the process..)



Topics that I write about...


Chandeep

Welcome to Goodly! My name is Chandeep. On this blog I actively share my learning on practical use of Excel and Power BI. There is a ton of stuff that I have written in the last few years. I am sure you'll like browsing around. Please drop me a comment, in case you are interested in my training / consulting services. Thanks for being around Chandeep


In some time, you may need to collect data from multiple sheets into one master sheet for consolidating or doing other operations as below screenshot shown, but to copy and paste the contents one by one is troublesome, is there any tricks can quickly solve it in Excel?

Collect data from multiple sheets into one with Consolidate function

Collect data from multiple sheets into one with VBA code

Collect data from multiple sheets into one with powerful Combine function

How to merge data from multiple sheets to one sheet in excel


Collect data from multiple sheets into one with Consolidate function

If you want to collect data from multiple sheets into one sheet in the same workbook, you can apply the Consolidate function in Excel.

1. In a new sheet of the workbook which you want to collect data from sheets, click Data > Consolidate.

How to merge data from multiple sheets to one sheet in excel

2. In the Consolidate dialog, do as these:

(1 Select one operation you want to do after combine the data in Function drop down list;

(2 Click 

How to merge data from multiple sheets to one sheet in excel
to select the range of each sheet you want to collect;

(3 Click Add button to add the data range into the All references list box;

(4 Check the labels you use after combine data, and check Create links to source data option if you want to link the data in combine sheet with source data.

How to merge data from multiple sheets to one sheet in excel

3. Click OK. Now the data have been collect and sum in one sheet.

How to merge data from multiple sheets to one sheet in excel



Collect data from multiple sheets into one with VBA code

Here is a VBA code can collect data from all sheets in a new sheet in the current workbook.

1. Press Alt + F11 key to enable the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and copy and paste below code to the Module script.

VBA: Collect all data from sheets into one.

Sub Combine()
'UpdatebyExtendoffice20180205
    Dim I As Long
    Dim xRg As Range
    On Error Resume Next
    Worksheets.Add Sheets(1)
    ActiveSheet.Name = "Combined"
   For I = 2 To Sheets.Count
        Set xRg = Sheets(1).UsedRange
        If I > 2 Then
            Set xRg = Sheets(1).Cells(xRg.Rows.Count + 1, 1)
        End If
        Sheets(I).Activate
        ActiveSheet.UsedRange.Copy xRg
    Next
End Sub

How to merge data from multiple sheets to one sheet in excel

3. Press F5 key to run the code, all data of the whole workbook has been collected in the new sheet Combined.

How to merge data from multiple sheets to one sheet in excel


Collect data from multiple sheets into one with powerful Combine function

If you usually need to combine sheets into one, I introduce one powerful combine function for you, it’s Kutools for Excel’s Combine utility which have below four main functions:

Combine multiple worksheets from workbook into one worksheet

Combine all same name worksheets into one worksheet

Combine multiple worksheets from workbooks into one workbook

Consolidate and calculate values across multiple workbooks into one worksheet

How to merge data from multiple sheets to one sheet in excel

After free installing Kutools for Excel, please do as below:

If you just want to combine sheets into one sheet without any other operations, you can do as these:

1. Enable Excel, click Kutools Plus > Combine, there is one or two dialogs pop out to remind you some notices, just click OK and Yes to continue. See screenshot:

How to merge data from multiple sheets to one sheet in excel

2. Click OK to go to the Combine window, check Combine multiple worksheets from workbook into worksheet option.

How to merge data from multiple sheets to one sheet in excel

3. Click Next, then click Add > File / Folder to add workbooks you will use to combine into the Workbook list. Then go to Worksheet list to check the sheets you want to combine form each workbooks.

How to merge data from multiple sheets to one sheet in excel

4. Click Next to go to the last step, you can specify some setting about the combine result as you need. If you do not need this step.

How to merge data from multiple sheets to one sheet in excel

5. Click Finish and select one folder to place the new workbook which combine data from sheets.

How to merge data from multiple sheets to one sheet in excel

6. Click Save. Now all data has been collected from sheets across workbook into one master sheet.

How to merge data from multiple sheets to one sheet in excel

If you want to consolidate worksheets across workbooks into one, do as these:

1. In the Combine window, check Consolidate and calculate values across multiple worksheets into one worksheet option.

How to merge data from multiple sheets to one sheet in excel

2. Click Next, and add files into Workbook list, then check the sheets you use to combine and calculate.

How to merge data from multiple sheets to one sheet in excel

3. Click Next, then select one calculation from Function drop down list, and check other options as you need.

How to merge data from multiple sheets to one sheet in excel

4. Click Finish to save the new workbook into a folder.

Now the sheets across workbooks have been consolidated and calculated into one sheet.

How to merge data from multiple sheets to one sheet in excel



The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

How to merge data from multiple sheets to one sheet in excel


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

How to merge data from multiple sheets to one sheet in excel

How do I combine multiple Excel spreadsheets into one?

Open the original Shared Workbook into which you want to merge changes. Click the Tools menu and then select Merge Workbooks…. If prompted, save the workbook. In the file navigation dialog box, click the copy of the workbook that contains the changes you want to merge, then click OK.

How do you auto populate data from multiple sheets to a master?

How to collect data from multiple sheets to a master sheet in....
In a new sheet of the workbook which you want to collect data from sheets, click Data > Consolidate..
In the Consolidate dialog, do as these: (1 Select one operation you want to do after combine the data in Function drop down list; ... .
Click OK..