Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 83
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default 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.




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
SUMPRODUCT multiple conditions jwfullerton Excel Discussion (Misc queries) 1 February 26th 08 12:21 AM
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
Sumproduct Multiple < Conditions undrline via OfficeKB.com Excel Worksheet Functions 4 March 15th 07 06:04 PM
Multiple SumProduct conditions wal50 Excel Worksheet Functions 3 November 23rd 04 10:48 PM
Sumproduct Multiple Conditions Tysone Excel Worksheet Functions 3 November 10th 04 03:03 PM


All times are GMT +1. The time now is 01:02 PM.

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

About Us

"It's about Microsoft Excel"