The below technique would work when your Excel Tables has been structured the same way (same column names). Each Workbook has the data with Different Table names or Sheet NamesĮach workbook has the data in an Excel Table with the same structure.
Let’s see how to combine data from these workbooks in each case. This method can also be helpful when you want to combine table/sheets that don’t have a consistent name. Each workbook has many sheets and tables, and you want to combine specific tables/sheets.This can be the case when there is sheet named ‘summary’ or ‘data’ in all the workbooks, and you want to combine all these. Each workbook has the data with the same worksheet name.Each workbook has the data in an Excel Table, and all the table names are same.Now, in this tutorial, I am covering three scenarios where you can combine the data from different workbooks using Power Query: So to begin with, I have four workbooks in a folder (as shown below). If you have these workbooks in different locations/folders, it’s a good idea to move all these into a single folder (or create a copy and put that workbook copy in the same folder). You can combine this data from different workbooks into a single worksheet using Power Query.
You can always ask an expert in the Excel Tech Community or get support in the Answers community.Power Query can be of great help when you want to combine multiple workbooks into one single workbook.įor example, suppose you have the sales data for different regions (East, West, North, and South). For example, to consolidate data in cells A2 from Sales through Marketing inclusive, in cell E5 of the master worksheet you would enter the following: If the data to consolidate is in the same cells on different worksheets:Įnter a formula with a 3-D reference that uses a reference to a range of worksheet names. It can also be difficult to spot a mistake after entering a complex formula. NOTE: formulas in such cases can be error-prone, since it’s very easy to accidentally select the wrong cell. Excel will complete the sheet name and cell address for you. Tip: To enter a cell reference-such as Sales!B4-in a formula without typing, type the formula up to the point where you need the reference, then click the worksheet tab, and then click the cell.
If this box remains unchecked, you can update the consolidation manually.
Manual updates: If you want Excel to update your consolidation table automatically when the source data changes, simply check the Create links to source data box.
Repeat this to add all of the ranges that you consolidate.Īutomatic vs. In the Consolidate popup window, click Add. Here is an example in which three worksheet ranges have been chosen selected: You can then continue to select other data. After locating and clicking OK, Excel will enter the file path in the Reference box and append an exclamation point to that path. If a worksheet containing data that you need to consolidate is in another workbook, click Browse to locate that workbook. Next, in the Reference box, click the Collapse button to shrink the panel and select the data in the worksheet.Ĭlick the worksheet that contains the data you want to consolidate, select the data, and then click the Expand Dialog button on the right to return to the Consolidate dialog. Here is an example in which three worksheet ranges have been chosen: In the Function box, click the summary function that you want Excel to use to consolidate the data. Note: To avoid overwriting existing data in the master worksheet, ensure that you leave enough cells to the right and below this cell for the consolidated data.Ĭlick Data > Consolidate (in the Data Tools group).