How do I use Counta in a pivot table

ajt8888

New Member
Joined
Aug 23, 2010
Messages
35
Office Version
  1. 2019
Platform
  1. Windows
How do I use Counta to count the number of cells in a pivot table where the number is greater than 0
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
i would normally use countif
1- Inspection Plan Log.xlsx
ABC
3Row LabelsSum of Stk
4Oil 1 04
5Oil 21
6Oil 30
7Oil 42
8Oil 514
9Oil 60
10Oil 75
11Oil 80
12Grand Total22
Sheet2
Cell Formulas
RangeFormula
C4C4=COUNTIF(B4:B11,">0")
 
Upvote 0
i would normally use countif
1- Inspection Plan Log.xlsx
ABC
3Row LabelsSum of Stk
4Oil 1 04
5Oil 21
6Oil 30
7Oil 42
8Oil 514
9Oil 60
10Oil 75
11Oil 80
12Grand Total22
Sheet2
Cell Formulas
RangeFormula
C4C4=COUNTIF(B4:B11,">0")
Thanks but that means I have to change the formula every time I change the filter
 
Upvote 0
A reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Due to the limited amount of information i am working in the blind here, your original request mentioned nothing of filters. You could make the range implicit using for example
Excel Formula:
=COUNTIF($B$4:$B$11,">0")
or just leave the $ out of the formula and put in max range to count
 
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,763
Members
449,120
Latest member
Aa2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top