Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 24
Default Formula for filtered worksheet

I'm using excel 2000

I need a formula that will count the number of times Y appears in the range F4:F1000, but will change to reflect the number visible when the list is filtered

I tried =COUNTIF(F4:F1000,"Y"), which returns the correct value, however when I filter the list the value from the above formula does not change

I have tried =SUBTOTAL(3,F4:F1000) but this counts all entries in the range, not just the Y's

Any help greatly appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Formula for filtered worksheet

Laurent Longre created a formula that lets you work with visible rows
after a filter. For information see, Power Formula Technique in this
article at John Walkenbach's web site:
http://j-walk.com/ss/excel/eee/eee001.txt

For example, to count "Y" cells in column F, after a filter on another
column, you could use the following, where there are no blank cells in
column A:

=SUMPRODUCT((F2:F200="Y")*(SUBTOTAL(3,OFFSET(A2:A2 00,ROW(A2:A200)-MIN(ROW(A2:A200)),,1))))


Paul S wrote:
I'm using excel 2000

I need a formula that will count the number of times Y appears in the
range F4:F1000, but will change to reflect the number visible when the
list is filtered

I tried =COUNTIF(F4:F1000,"Y"), which returns the correct value,
however when I filter the list the value from the above formula does
not change

I have tried =SUBTOTAL(3,F4:F1000) but this counts all entries in the
range, not just the Y's

Any help greatly appreciated






--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Copy name of filtered cell to another worksheet erick-flores Excel Discussion (Misc queries) 1 September 11th 07 02:18 AM
How do I combine filtered data from one worksheet to another? DenverBuddafly Excel Discussion (Misc queries) 1 August 9th 07 08:02 PM
Totals in my filtered worksheet dml29 Excel Discussion (Misc queries) 1 April 19th 07 08:40 PM
Formulas, for filtered worksheet Paul S Excel Discussion (Misc queries) 0 March 1st 07 05:50 PM
Deleting filtered out data from a worksheet Sierras Excel Worksheet Functions 2 January 20th 06 09:27 PM


All times are GMT +1. The time now is 04:07 PM.

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"