This article was previously published under Q141577
This article has been archived. It is offered "as is" and will no longer be updated.
You can summarize data from one or more source areas by consolidating itand creating a consolidation table. These source areas can be on the sameworksheet as the consolidation table, on different sheets in the sameworkbook, or in different workbooks. When you consolidate the source data,you apply a summary function, such as the SUM() function, to create thesummary data.
There are two ways to consolidate data: by category or by position.
Consolidation by position: When the data in the source areas is arranged in the same order and uses the same labels. Use this method to consolidate data from a series of worksheets, such as departmental budget worksheets that have been created from the same template.
Consolidating by category: When the data in the source areas is not arranged in the same order but uses the same labels. Use this method to consolidate data from a series of worksheets that have different layouts but have the same data labels.
NOTE: Consolidating data by category is similar to creating a PivotTable. With a PivotTable, however, you can easily reorganize the categories. If you want a more flexible consolidation by category, you should consider creating a PivotTable.
Click the upper-left cell of the destination area for the consolidated data, which would be cell A1 on Sheet2.
On the Data menu, click Consolidate.
In the Function box, select the summary function you want Microsoft Excel to use to consolidate the data. In this example, use Sum.
In the Reference box, enter the source areas you want to consolidate. The first area is Sheet1!$A$2:$C$6 and the second area is Sheet1!$A$12:$C$16.
Repeat steps 6 and 7 for all source areas you want to consolidate.
Under Use labels in, click Left column (in this example, there are labels in the left column).
NOTE: If you want Microsoft Excel to update your consolidation tableautomatically when the source data changes, select the Create Links ToSource Data check box. You cannot create links when source and destinationareas are on the same sheet.
Selecting Source Areas for a Consolidation Table
You specify the source areas of the data you want to summarize in theReference box of the Consolidate dialog box. Use these guidelines todefine source areas:
When the sources and destination are on the same worksheet, use cell references.
When the sources and destination are on different worksheets, use sheet and cell references.
When the sources and destination are in different workbooks, use book, sheet, and cell references.
When the sources and destination are in different workbooks in different locations on a disk, use the full path, book, sheet, and cell references. You can also type the complete path, workbook name, and sheet name for the source area. Type an exclamation point following the sheet name, and then type the cell reference or name of the source area.
When the source area is a named range, use its name.
TIP: To enter a source definition without typing, click in the Referencebox, and then select the source area.
For more information about Consolidating Data in Microsoft Excel 7.0,click Answer Wizard on the Help menu, and type:
"Microsoft Excel User's Guide," version 5.0, page 527