Problem: I have four worksheets for Q1 through Q4. Each worksheet has months across the top and customers down the side. The months and customers are not the same. I want to combine them into a single report.
- Combine these four lists into a yearly report.
Strategy: The Consolidate command needs the row headings to be of the similar type, but not the exact same values. Consolidate will work here because column A in each worksheet contains customers (although not the same customers). Row 1 contains months (although not the same months).
- Add a new worksheet named Year.
- Select cell A1 on the Year worksheet.
- Choose Data, Consolidate.
- Click the Collapse button at the right end of the Reference box.
- Browse to Q1. Select A1:D7. Click the icon at the right edge of the Reference box to return to the Consolidate dialog.
- Click the Add button in the Consolidate dialog.
- Repeat steps 4-6 for Q2, Q3, and Q4.
- Ensure Top Row and Left column are checked in the lower left corner of the Consolidate dialog. The dialog should look like this:
- Choose a reference from each worksheet.
- Click OK. You will have a report showing a superset of all customers and all months.
- Excel consolidates the four quarters to one report.
- Type Customer and press Enter to fill in the blank heading in A1.
- Many empty cells appear in the consolidated data. This means that the customer did not have a record in that quarter. To replace the blanks with zeroes, use Home, Find & Select, Go To Special. Choose Blanks in the Go To Special dialog. Click OK. Type a zero and press Ctrl+Enter to fill the blanks with zero.
- Choose Go To Special Blanks.
- Type a zero and press Ctrl+Enter.
- Sort the data by customer.
Additional Details: Make sure to add Q1 before Q2 and so on. The order of the months in row follows the order that the references were added.
Gotcha: There is a Browse button in the Consolidate dialog. This means that you can combine worksheets from different workbooks. However, the Browse button requires you to type the worksheet name and used range from memory without seeing the workbook. It would be much easier to open all four workbooks before using Consolidate. You can use View, Switch Windows to move to another workbook while entering a reference.