Pivot table: Counting/Labeling row numbers

  • Thread starter Thread starter John
  • Start date Start date
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...
 
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.
 
Back
Top