To summarize and report results from separate worksheets, you can consolidate data from each separate worksheet into a master worksheet. The worksheets can be in the same workbook as the master worksheet or in other workbooks. When you consolidate data, you are assembling data so that you can more easily update and aggregate it on a regular or ad hoc basis. For example, if you have a worksheet of expense figures for each of your regional offices, you might use a consolidation to roll up these figures into a corporate expense worksheet. This master worksheet might contain sales totals and averages, current inventory levels, and highest selling products for the entire enterprise. To consolidate data, use the Consolidate command in the Data Tools group on the Data tab.
What do you want to do?Consolidate by position- Set up the data to be consolidated on each separate worksheet.
- Click the upper-left cell of the area where you want the consolidated data to appear in the master worksheet.
Note Make sure that you leave enough cells to the right and below this cell for the consolidated data. The Consolidate command populates the area as needed. - On the Data tab, in the Data Tools group, click Consolidate.
- In the Function box, click the summary function (summary function: A type of calculation that combines source data in a PivotTable report or a consolidation table, or when you are inserting automatic subtotals in a list or database. Examples of summary functions include Sum, Count, and Average.) that you want Microsoft Office Excel to use to consolidate the data.
- If the worksheet is in another workbook, click Browse to locate the file, and then click OK to close the Browse dialog box.
The file path is entered in the Reference box followed by an exclamation point. - Type the name that you gave the range, and then click Add. Repeat this step for each range.
- Decide how you want to update the consolidation. Do one of the following:
To set up the consolidation so that it updates automatically when the source data changes, select the Create links to source data check box. Important You can only select this check box if the worksheet is in another workbook. Once you select this check box, you won't be able to change which cells and ranges are included in the consolidation. - To set up the consolidation so that you can update the consolidation manually by changing the included cells and ranges, clear the Create links to source data check box.
- Leave the boxes under Use labels in blank. Excel does not copy the row or column labels in the source ranges to the consolidation. If you want labels for the consolidated data, copy them from one of the source ranges or enter them manually.
Consolidate by category- Set up the data to be consolidated on each separate worksheet.
- Click the upper-left cell of the area where you want the consolidated data to appear in the master worksheet.
Note Make sure that you leave enough cells to the right and below this cell for the consolidated data. The Consolidate command populates the area as needed. - On the Data tab, in the Data Tools group, click Consolidate.
- In the Function box, click the summary function (summary function: A type of calculation that combines source data in a PivotTable report or a consolidation table, or when you are inserting automatic subtotals in a list or database. Examples of summary functions include Sum, Count, and Average.) that you want Excel to use to consolidate the data.
- If the worksheet is in another workbook, click Browse to locate the file, and then click OK to close the Browse dialog box.
The file path is entered in the Reference box followed by an exclamation point. - Type the name you gave the range, and then click Add. Repeat this step for each range.
- Decide how you want to update the consolidation. Do one of the following:
To set up the consolidation so that it updates automatically when the source data changes, select the Create links to source data check box. Important You can only select this check box if the worksheet is in another workbook. Once you select this check box, you won't be able to change which cells and ranges are included in the consolidation. - To set up the consolidation so that you can update the consolidation manually by changing the included cells and ranges, clear the Create links to source data check box.
- Select the check boxes under Use labels in that indicate where the labels are located in the source ranges: either the Top row, the Left column, or both.
Notes - Any labels that don't match up with labels in the other source areas result in separate rows or columns in the consolidation.
- Make sure that any categories that you don't want to consolidate have unique labels that appear in only one source range.
Consolidate by formula- On the master worksheet, copy or enter the column or row labels that you want for the consolidated data.
- Click a cell that you want to contain consolidated data.
- Type a formula that includes a cell reference to the source cells on each worksheet or a 3-D reference that contains data that you want to consolidate. Regarding cell references, do one of the following:
If the data to consolidate is in different cells on different worksheets - Enter a formula with cell references to the other worksheets, one for each separate worksheet. For example, to consolidate data from worksheets named Sales (in cell B4), HR (in cell F5), and Marketing (in cell B9), in cell A2 of the master worksheet, you would enter the following:
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, click the worksheet tab, and then click the cell.
If the data to consolidate is in the same cells on different worksheets - Enter a formula with a 3-D reference that uses a reference to a range of worksheet names. For example, to consolidate data in cells A2 from Sales through Marketing inclusive, in cell A2 of the master worksheet you would enter the following:
Note If the workbook is set to automatically calculate formulas, a consolidation by formula always updates automatically when the data in the separate worksheets change. Use a PivotTable report to consolidate dataYou can create a PivotTable report (PivotTable report: An interactive, crosstabulated Excel report that summarizes and analyzes data, such as database records, from various sources including ones external to Excel.) from multiple consolidation ranges. This method is similar to consolidating by category, but it offers more flexibility to reorganize the categories. |