Pivot table: Counting/Labeling row numbers

J

John

How can I get each row number to be labeled within the pivot
table...and also show a total row count along with the "grand total"?

Example:
1, Apple, $3
2, Orange, $4
3, Banana, $1
Grand Total, 3 (rows/items), $8

Thanks...
 
D

Debra Dalgleish

You could insert a column to the left of the pivot table, and calculate
the count there. For example, in cell A5:

=IF(B5="","",IF(B5="Grand
Total",MAX(A$4:A4),IF(ISNUMBER(SEARCH("Total",B5)),"",MAX(A$4:A4)+1)))

Copy the formula down as far as required to accommodate the longest
configuration of the pivot table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top