Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Sumif with multiple conditions

We need to sum data in a spreadsheet where multiple conditions apply.

C2:C400 is quantity data
J2:J400 is received date
K2:K400 is due date.

We want to sum the data in column c if the received date for a given record
is in a given month (which will change every report cycle), and the due date
for a given record is in any month following the received date month.

I can write a separate formula for each condition but that doesn't
necessarily help. When I try to structure a sumif using multiple conditions,
I just end up with errors.

Any help in understanding how to do it will be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Sumif with multiple conditions

Try

Wher F1 is the month of the number your looking for ( 1 - 12)

=SUMPRODUCT((MONTH(D2:D400)=F1)*(MONTH(E2:E400)MO NTH(D2:D400))*(C2:C400))

Mike

"SteveC" wrote:

We need to sum data in a spreadsheet where multiple conditions apply.

C2:C400 is quantity data
J2:J400 is received date
K2:K400 is due date.

We want to sum the data in column c if the received date for a given record
is in a given month (which will change every report cycle), and the due date
for a given record is in any month following the received date month.

I can write a separate formula for each condition but that doesn't
necessarily help. When I try to structure a sumif using multiple conditions,
I just end up with errors.

Any help in understanding how to do it will be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Sumif with multiple conditions

With report month in A1
=SUMPRODUCT(--(MONTH(J2:J400)=A1),--(K2:K400DATE(YEAR(TODAY()),A1+1,0)),C2:C400
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"SteveC" wrote in message
...
We need to sum data in a spreadsheet where multiple conditions apply.

C2:C400 is quantity data
J2:J400 is received date
K2:K400 is due date.

We want to sum the data in column c if the received date for a given
record
is in a given month (which will change every report cycle), and the due
date
for a given record is in any month following the received date month.

I can write a separate formula for each condition but that doesn't
necessarily help. When I try to structure a sumif using multiple
conditions,
I just end up with errors.

Any help in understanding how to do it will be appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Sumif with multiple conditions

Sumproduct is the way to go for these types of things:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Regards,
Ryan---

--
RyGuy


"Bernard Liengme" wrote:

With report month in A1
=SUMPRODUCT(--(MONTH(J2:J400)=A1),--(K2:K400DATE(YEAR(TODAY()),A1+1,0)),C2:C400
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"SteveC" wrote in message
...
We need to sum data in a spreadsheet where multiple conditions apply.

C2:C400 is quantity data
J2:J400 is received date
K2:K400 is due date.

We want to sum the data in column c if the received date for a given
record
is in a given month (which will change every report cycle), and the due
date
for a given record is in any month following the received date month.

I can write a separate formula for each condition but that doesn't
necessarily help. When I try to structure a sumif using multiple
conditions,
I just end up with errors.

Any help in understanding how to do it will be appreciated.




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
Multiple Sumif conditions Paul Excel Discussion (Misc queries) 2 December 18th 09 04:38 AM
Multiple Sumif conditions Alcala Excel Worksheet Functions 2 August 18th 08 05:30 PM
sumif with multiple conditions myl Excel Worksheet Functions 1 July 8th 08 09:35 PM
SumIF-multiple conditions/OR GaryW New Users to Excel 7 May 15th 08 04:16 PM
sumif - multiple conditions J_Barn Excel Worksheet Functions 4 June 28th 05 11:55 PM


All times are GMT +1. The time now is 11:56 AM.

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"