subtotal function

G

Greg

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?
 
M

Mike H

Greg,

Subtotal needs a little help to do that.

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

Mike
 
G

Greg

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Subtotal function 2
Subtotal function 7
Subtotal Formatting 2
Divide two numbers in data subtotal function 2
Subtotal by VBA 5
Subtotal GroupBy text string 2
Subtotal 10
Subtotal for same range of multiple worksheets 5

Top