ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   count pivot table items (https://www.excelbanter.com/excel-worksheet-functions/176601-count-pivot-table-items.html)

geebee

count pivot table items
 
hi,

i have a pivot table which includes a column based on the [cat] column.
well i ant it to show a count for this column. well the only problem is that
in this column there apears either the word "cat" or " ". so its not actually
a null value. how can i add a calculated field to the pivot table to get
this to work without first trimming all the values in this column?

thanks in advance,
geebee



Roger Govier[_3_]

count pivot table items
 
Hi
Add another column to your source data called cat2.
Assuming cat is in column C, use the formula
=IF(C2="cat",1,"")
Copy down as far as required.
Use cat2 in the PT in place of cat.

--
Regards
Roger Govier

"geebee" (noSPAMs) wrote in message
...
hi,

i have a pivot table which includes a column based on the [cat] column.
well i ant it to show a count for this column. well the only problem is
that
in this column there apears either the word "cat" or " ". so its not
actually
a null value. how can i add a calculated field to the pivot table to get
this to work without first trimming all the values in this column?

thanks in advance,
geebee




All times are GMT +1. The time now is 07:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com