Thread: Countif visible
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Domenic Domenic is offline
external usenet poster
 
Posts: 256
Default Countif visible

To count within a filtered list the number of times a cell in B2:B100
equals a certain criteria, try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(B2:B1
00=Criteria))

....where the criteria is a numerical value. Adjust the range
accordingly.

Hope this helps!

In article ,
Sean wrote:

I have a group of data with autofilters on headers I would like to count
occurances of numbers by using countif. When I select filtered criteria I
would like the values to change. I can't make this work with a pivot table
because of the structure of the data. Is there a countif visible formula
similar to a subtotal(9,AB1:AB23456)?

Thanks