Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003.

For instance, if the data tables on each worksheet have the exact same columns, then you would consolidate by position. Select ' select all cells in this sheets ' select all lines except title Selection.

By category means that you want to combine data from tables in which the data may not use a consistent structure. Specify in the box the first range you want to consolidate.

You use this type of consolidation if the columns in the data tables are in different orders. If you are consolidating by position, then the reference should not contain any column labels; if by category, then you should.

In the workbook whose worksheets you want to consolidate, choose Data | Consolidate. (See Figure 1.) There are many controls in the dialog box, but the primary thing you need to worry about is specifying the ranges to consolidate. When you specify the range reference, you click Add, and the reference appears in the All References list. Range("A1") ' work through sheets For J = 2 To Sheets.

The concept behind doing the condensation is rather easy: You simply need to copy the data from the second and subsequent worksheets to the first empty row on the first worksheet. End(xl Up)(2) Next End Sub Excel Tips is your source for cost-effective Microsoft Excel training.

Fortunately, Excel includes a feature that allows you to do this very process—the Consolidate tool. Select ' copy cells selected in the new sheet on last line Selection. This tip (3005) applies to Microsoft Excel 97, 2000, 2002, and 2003. Sub Combine() Dim J As Integer On Error Resume Next Sheets(1).

The Consolidate tool allows you to combine worksheets where data is defined by position or by category. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Condensing Multiple Worksheets Into One. Discover how to extend the capabilities of Office 2013 (Word, Excel, Power Point, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications.

By position means that the data is in the same position on every worksheet.

You continue to define reference ranges until they are all complete.

If you want the consolidated data to contain links to the original data, then make sure the Create Links to Source Data check box is selected, otherwise clear it. Note that there are other controls in the Consolidate dialog box; the controls mentioned above are the ones you should pay attention to at a minimum.

The best way to find out what the others do is to play around with them, doing a few consolidations.