Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count only visible results of formula Joe M. Excel Discussion (Misc queries) 3 September 4th 08 04:03 PM
Making formula results not visible in a cell mp smith Excel Worksheet Functions 2 May 7th 08 10:08 PM
count if on Visible - Filtered tonyv Excel Worksheet Functions 4 July 7th 07 07:34 PM
array formula count results of two tests windsurferLA Excel Worksheet Functions 2 July 26th 06 12:33 AM
count only visible cells bnkone Excel Worksheet Functions 2 March 31st 06 01:39 AM


All times are GMT +1. The time now is 12:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"