Multiple Sum If

stevekho

New Member
Joined
May 5, 2011
Messages
29
Hello Guys,

So here is my probem

I have a table with

A | B | C | D

Start Date | End Date | A Number A | location

.
.
.


I have a month range -> July 2011 and August 2011

I want to sum all the values between this range (Column C) for a specific location.


Thanks for your help!

Steve
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hello Guys,

So here is my probem

I have a table with

A | B | C | D

Start Date | End Date | A Number A | location

.
.
.


I have a month range -> July 2011 and August 2011

I want to sum all the values between this range (Column C) for a specific location.


Thanks for your help!

Steve
What version of Excel are you using?
 
Upvote 0
Hi stevekho,

If I understand, try with the following array formula:
Excel Workbook
ABCDE
1Start DateEnd DateA Number AlocationResult
205/05/201106/05/20114Loc_A8
310/07/201115/08/20115Loc_B
411/07/201116/08/20111Loc_C
512/07/201117/08/20111Loc_B
613/07/201118/08/20112Loc_B
714/07/201119/08/20116Loc_D
812/08/201120/08/20112Loc_B
(
#VALUE!
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself

Hope this helps,

Regards.
 
Upvote 0
Try

=SUMPRODUCT((MONTH($A$2:$A$8)=7)*(MONTH($B$2:$B$8=8)*($D$2:$D$8="Loc_B")*($C$2:$C$8)))

Biz
 
Upvote 0
Whoaaa thanks guys :) it helps a lot!

Now if I just want to now the sum betwenn 2 date range?

Like betweek July 1st 09 and July 15th 09, is there a way??

Thanks 10000 Times
 
Upvote 0
Hello :)

Excel 07

Thanks again
Try this...

Use cells to hold the criteria:
  • F1 = lower date boundary = 7/1/2009
  • G1 = upper date boundary = 7/15/2009
  • H1 = Loc_B
Then:

=SUMIFS(C2:C8,A2:A8,">="&F1,A2:A8,"<="&G1,D2:D8,H1)
 
Upvote 0
Thanks a lot!! It worked :) However, there is a small problem, but I will try to figure out a way to fix it :/

If we have

  • F1 = lower date boundary = 7/1/2009
  • G1 = upper date boundary = 7/15/2009
And for instance

Values for

7/1/2009.....7/15/2009....8....A
7/1/2009.....7/20/2009....10....A

And I enter


  • F1 = lower date boundary = 7/1/2009
  • G1 = upper date boundary = 7/20/2009
It is going to return 18. I will try to ask the user to be careful because of that limitations.

Thanks a lot for your precious help
 
Upvote 0
Thanks a lot!! It worked :) However, there is a small problem, but I will try to figure out a way to fix it :/

If we have

  • F1 = lower date boundary = 7/1/2009
  • G1 = upper date boundary = 7/15/2009
And for instance

Values for

7/1/2009.....7/15/2009....8....A
7/1/2009.....7/20/2009....10....A

And I enter


  • F1 = lower date boundary = 7/1/2009
  • G1 = upper date boundary = 7/20/2009
It is going to return 18. I will try to ask the user to be careful because of that limitations.

Thanks a lot for your precious help
Ok, I see that you have 2 date columns. I thought there was just a single date column.

Just refer to the 2nd date column:

=SUMIFS(C2:C8,A2:A8,">="&F1,B2:B8,"<="&G1,D2:D8,H1)
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,898
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top