Sum with multiple conditions - sumproduct, dsum or dproduct?
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. |
Sum with multiple conditions - sumproduct, dsum or dproduct?
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. "hjneedshelp" wrote: 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. |
Sum with multiple conditions - sumproduct, dsum or dproduct?
=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 -- __________________________________ HTH Bob "hjneedshelp" wrote in message ... 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. |
Sum with multiple conditions - sumproduct, dsum or dproduct?
Thanks! I'll try that.
I have Excel 2003. I'm hoping to skip MS Office '07 for the next one. Thanks! :) "Bob Phillips" wrote: =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 -- __________________________________ HTH Bob "hjneedshelp" wrote in message ... 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. |
All times are GMT +1. The time now is 05:42 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com