Count only visible formula results
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. |
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. |
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. |
All times are GMT +1. The time now is 08:14 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com