Is it possible to do a conditional subtotal in Excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to do a conditional subtotal? I have used the Conditional Sum
feature many times, but I want to do a Conditional Subtotal, and I can't seem
to get it to work. Any Ideas?
 
Yes, I would like to do a conditional sum based on a filtered list, but I
would like the sum value to represent the values shown by the filter only. As
far as I know only the subtotal function can do this, but I'm sure there must
be another way. Any help is appreciated.
 
Hi
try something like the following (summs all values in column C if
column B conatins 'value'):
=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX($A$1:$A$10,1,1),ROW($A$1:$A$10)-
ROW(INDEX($A$1:$A$10,1,1)),0))=1),--($B$1:$B$10="value"),$C$1:$C$10)
 
Looks like you have something here, but i'm having trouble getting my numbers
right. Here is what I have:

1 A B C D E F G
H
2 Year $ Value Date Value
..
..
..
200

I need to sum column F value's according to a date condition in column G. I
can do this using a SUMIF Function, but I want my Sum total to change if I
filter by year(column A), or any of my other columns. My rows go down to 200.
 
Hi
=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX($A$1:$A$200,1,1),ROW($A$1:$A$200
)-
ROW(INDEX($A$1:$A$200,1,1)),0))=1),--($G$1:$G$200>=DATE(2004,1,1)),$F$1
:$F$200)

If this does not work you may post your current sUMIF formula
 
That seemed to do the Trick...thanks for all your help Frank. If you wouldn't
mind, could you briefly explain how you got the steps in the formula. my
direct e-mail is (e-mail address removed)

Thanks again
 

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

Back
Top