How to Consolidate Data from Multiple Workbooks in a Single Worksheet (3 Examples)

Method 1 – Consolidate Data of Similar Tables from Multiple Workbooks

Steps:

  • Consolidate 4 Excel files.

  • We have a table named Profit in our dataset.

Consolidate Data for Similar Tables from Multiple Workbooks to single worksheet

Each of the 4 Excel files has tables of the same name and format.

  • Apply the Power Query.
  • Click on the Data tab.
  • Choose From File of the Get Data option.
  • Choose the From Folder option.

Consolidate Data for Similar Tables from Multiple Workbooks to single worksheet

  • Select the Data folder from the File Explorer.
  • Press the Open button.

Consolidate Data for Similar Tables from Multiple Workbooks to single worksheet

  • A window appears showing the file details.

Click on the image for better quality

  • Press the Combine & Load button.
Consolidate Data for Similar Tables from Multiple Workbooks to single worksheet

Click on the image for better quality

  • Select the Profit table and press OK.

Consolidate Data for Similar Tables from Multiple Workbooks to single worksheet

All data is combined from multiple workbooks into a single sheet.

Click on the image for better quality

If we want to add more files to the dataset, add a file in the same folder in the same format.

  • We added a new file named Central.

  • Go to any cell of the combined file. Right-click
  • Choose the Refresh button option from the Context Menu.

Consolidate Data for Similar Tables from Multiple Workbooks to single worksheet

Have a look at the dataset.

Click on the image for better quality


Method 2 – Merge Data from Multiple Workbooks with the Same Worksheet Names

Steps:

  • See the Sheet Name at the bottom section.

All the workbooks consist of worksheets of the same name.

  • Click on the Data tab.
  • Follow Get Data >> From File >> From Folder.

  • Select the desired folder from the File Explorer.
  • Press Open.

  • A window appears with the file name and details.
  • Click on the Combine & Load option.

Click on the image for better quality

  • Choose the Sheet name from the Combine file window.

Data from Multiple Workbooks with Same Worksheet Names to a single worksheet

If we have other sheets in the workbooks, those will also show here.

  • Press OK.

Click on the image for better quality

Data from multiple workbooks with the same-named worksheets are combined here.


Method 3 – Consolidate Multiple Workbooks with Different Table and Sheet Names

Steps:

Below is the table and sheet name of the East file.

Here is the West file.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

Table and Sheet Names are different for both cases.

  • Click on the Data tab.
  • Go Get Data >> From File >> From Folder.

  • Choose the desired file from the File Explorer.
  • Press the Open button.

  • The file with details is shown here.
  • Click on the Transform Data button in the window.
Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

Click on the image for better quality

  • Enter the Power query mode.

Click on the image for better quality

We do not need to appear in all the columns here.

  • Choose the Content and Name column and right-click.
  • Choose the Remove Other Columns option.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • Two columns are shown here.

  • Press the Add Column tab.
  • Select the Custom Column option.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • The Custom Column window will appear.
  • Insert the name Import Data from the new column.
  • We need to use a formula here. The exact formula is here. Click on the Content option.
=Excel.Workbook
  • After entering the formula, a green check mark will show that no errors are available to her.
  • Press OK.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • We can see a new column added here.

  • Click on any cell of the Import Data details shown here.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • Expand the Import data column.
  • Click on the right-upper side of the Import Data column.
  • A menu shows to check options. We uncheck the Use original column name as the prefix.
  • Press the OK button.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • Data has expanded.

Click on the image for better quality

  • Both Sheets and Tables are shown. But we want only sheets and tables will be included in the Sheets.
  • Click the arrow in the Kind column.
  • Check only the Sheet option.
  • Press OK.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • We do not need all the rows here.

Click on the image for better quality

  • Choose the Name and Data columns and press the right button on the mouse.
  • Click on the Remove Other Columns option.
Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

Click on the image for better quality

  • We can see the two columns.

  • Click on the right-upper corner of the Data column.
  • Uncheck the use of the original column name as the prefix.
  • Press OK.

  • We get all the data.

  • Click on the Transform tab.
  • Choose the Use First Row as Headers option.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • The header has changed now.

  • We want to remove the errors. Press the right button of the mouse. Click on the Remove Errors from the Context Menu.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • Go to the Home tab.
  • Click on the Close & Load option.

Consolidate Multiple Workbooks with Different Table and Sheet Names in an single Excel worksheet

  • We get our data.


Download the Practice Workbooks

Download this workbook to practice.


Get FREE Advanced Excel Exercises with Solutions!
Alok Paul
Alok Paul

Alok Paul has completed his B.Sc. in Electronics and Telecommunication Engineering from East West University. He has been working on the ExcelDemy project for more than 2 years. He has written 220+ articles and replied to numerous comments. He is experienced in Microsoft Office, especially in Excel. He also led some teams on Excel and VBA content development. He has a keen interest in Advanced Excel, Data analysis, Excel Pivot Table, Charts, and Dashboard. He loves to research... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo