Pivot Table non-contiguous ranges

  • Thread starter Thread starter Amelia
  • Start date Start date
A

Amelia

I have data on 2 worksheets of an Excel workbook with the
same column headings.

I have 1 pivot table for each sheet, and would like to
have a third pivot table for the combined data.

I tried entering the ranges of the 2 sheets separated by a
comma, but got an error message.
'Sheet1'!$A$1:$Z$999,'Sheet2'!$A$1:$Z$999
I also tried omitting the header row on sheet2, but that
did not help.

Is there a way to define a non-contiguous range of cells
for a pivot table?
 
You could create a Pivot Table from multiple consolidation ranges:

1. Choose Data>PivotTable and PivotChart Report
2. Select Multiple consolidation ranges, click Next
3. Select one of the page options, click Next
4. Select each range, and click Add, click Next
5. Select a location for the PivotTable, click Finish

However, you won't get the same pivot table layout that you'd get from a
single range.

For example, if customer is the first column in your data source, the
row heading should show the customer names. If remaining columns are
Units Sold, Product#, Unit Price and Total, the column area will show
each of those headings. You can change the function that's being used by
the data value, but it will use the same function on all these columns.

The Pivot Table would contain some meaningless data, such as sum of
Product# or columns full of zeros if the database columns contain text.
To avoid this, you can rearrange your database columns, and then use
data ranges that only include the columns that you want to total.

If possible, move your data to a single worksheet, and you'll have much
more flexibility in creating the pivot table. As long as the table
includes a date column, you'll be able to filter the data to view each
week's data separately, when required.
 
Back
Top