Sum with multiple conditions - sumproduct, dsum or dproduct?

H

hjneedshelp

Hello,
I'm trying to get a total sum from one column, based on criteria in two
other columns, where one of the criteria is a date range.

For example, Column A is a date; Column B is a category, and Column C is a $
spent figure.

I'd like to know if something is within a specific date range (e.g., Col A
date >=1/1/08 and <=3/31/08; and tied to a specific category (e.g., Col B =
Supplies); then what is the total sum that was spent (Col C) for this
category in this date range?

I've tried sumif; sumproduct, dsum, dproduct based on examples in discussion
groups, but none seem to help. Please HELP! :)

Thank you in advance.
 
T

Ted M H

What version of Excel are you using? You can do this using SUMIFS if you
have Excel 2007. It's a multi-criteria version of SUMIF and it's new with
2007.
 
B

Bob Phillips

=SUMPRODUCT(--(A2:A200>=--"2008-01-01"),--(A2:A200<--"2008-04-01"),--(B2:B200="Supplies"),C2:C200)

Unless you have Excel 2007, you cannot use whole columns with SUMPRODUCT
 
H

hjneedshelp

Thanks! I'll try that.
I have Excel 2003. I'm hoping to skip MS Office '07 for the next one.

Thanks! :)
 

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

Top