Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default subtotal function

This is sort of a continuation of my question from this morning. Is there a
way to use the subtotal function with anything other than the 11 that I have
found listed? From what I can tell the function is laid out like
=SUBTOTAL(2,D6:D1000) and that will get me a total count when I use the
filter. Now I am trying to see if I can somehow replace the number 2 with
something that will do countif so I can count how many "Yes" fields there are
left in the filtered list. any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default subtotal function

Greg,

Subtotal needs a little help to do that.

=SUMPRODUCT(SUBTOTAL(3,OFFSET(D6:D1000,ROW(D6:D100 0)-MIN(ROW(D6:D1000)),,1))*(D6:D1000="Yes"))

Mike

"Greg" wrote:

This is sort of a continuation of my question from this morning. Is there a
way to use the subtotal function with anything other than the 11 that I have
found listed? From what I can tell the function is laid out like
=SUBTOTAL(2,D6:D1000) and that will get me a total count when I use the
filter. Now I am trying to see if I can somehow replace the number 2 with
something that will do countif so I can count how many "Yes" fields there are
left in the filtered list. any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default subtotal function

That got it. I will have to cut up that code and figure out how that worked.
thank you.

"Mike H" wrote:

Greg,

Subtotal needs a little help to do that.

=SUMPRODUCT(SUBTOTAL(3,OFFSET(D6:D1000,ROW(D6:D100 0)-MIN(ROW(D6:D1000)),,1))*(D6:D1000="Yes"))

Mike

"Greg" wrote:

This is sort of a continuation of my question from this morning. Is there a
way to use the subtotal function with anything other than the 11 that I have
found listed? From what I can tell the function is laid out like
=SUBTOTAL(2,D6:D1000) and that will get me a total count when I use the
filter. Now I am trying to see if I can somehow replace the number 2 with
something that will do countif so I can count how many "Yes" fields there are
left in the filtered list. any ideas?

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
Subtotal Function Anthony Excel Discussion (Misc queries) 5 March 3rd 09 07:32 PM
Subtotal function Debby Bunce Excel Worksheet Functions 2 March 20th 06 11:16 PM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
Subtotal function George Gee New Users to Excel 3 January 20th 05 08:37 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM


All times are GMT +1. The time now is 03:00 AM.

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

About Us

"It's about Microsoft Excel"