View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Count only visible formula results

Try

=SUMPRODUCT(SUBTOTAL(3,OFFSET(H2:H2000,ROW(H2:H200 0)-MIN(ROW(H2:H2000)),,1))*(H2:H2000="X"))

Mike

"Joe M." wrote:

I have a column which has a formula resulting in "X" or blank. I would like
to count the occurences of "X" but only what is visible by the autofilter.
SUBTOTAL counts visible cells regardless of "X or blank and
COUNTIF(H2:H2000,"X") counts all "X" visible and hidden. I only want to count
the results = "X" that are visible. Can someone help?

Thanks,
Joe M.