View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Joe M. Joe M. is offline
external usenet poster
 
Posts: 97
Default Count only visible formula results

Mike,

Thanks, it works but I wish I understood this formula. Where can I see it
broken down to better understand how it works?

Thanks,

Joe M.

"Mike H" wrote:

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.