SUMIFS excluding criteria

Davereau

New Member
Joined
Feb 15, 2016
Messages
30
So I am trying to total a dollar value for what we should be shipping for August. Easy enough, have the formula look the promise date column (L) and sum it up using a date range. The problem is sometimes we ship orders earlier than promised and I also need to look at the ship date. So if the dollar value is in Column H, I want to total the possible amount of dollars shipped in the month of August, but as you can see, some items have already shipped in July.

So far my formula so far looks like this, =SUMIFS(Sheet1!H:H,Sheet1!L:L,">=8/1/18",Sheet1!L:L,"<=8/31/18"). What can i add to also make it look in Column M and to exclude items that shipped prior to 8-1? I have a general idea, but can't seem to make it work.

Thanks in advance.....Dave

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[/TR]
[TR]
[TD="align: center"]Promised[/TD]
[TD="align: center"]Shipped[/TD]
[/TR]
[TR]
[TD="align: center"]8/21/2018[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/21/2018[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]08/14/2018[/TD]
[TD="align: center"]8/12/2018[/TD]
[/TR]
[TR]
[TD="align: center"]08/14/2018[/TD]
[TD="align: center"]8/12/2018[/TD]
[/TR]
[TR]
[TD="align: center"]08/14/2018[/TD]
[TD="align: center"]7/27/2018[/TD]
[/TR]
[TR]
[TD="align: center"]08/17/2018[/TD]
[TD="align: center"]7/26/2018[/TD]
[/TR]
[TR]
[TD="align: center"]08/17/2018[/TD]
[TD="align: center"]8/8/2018[/TD]
[/TR]
[TR]
[TD="align: center"]08/17/2018[/TD]
[TD="align: center"]8/8/2018[/TD]
[/TR]
[TR]
[TD="align: center"]08/17/2018[/TD]
[TD="align: center"]8/8/2018[/TD]
[/TR]
[TR]
[TD="align: center"]08/17/2018[/TD]
[TD="align: center"]8/8/2018[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
One way is to take what you have, and subtract this amount from it:
Code:
=SUMIFS(Sheet1!H:H,Sheet1!L:L,">=8/1/18",Sheet1!L:L,"<=8/31/18",Sheet1!M:M,">0",Sheet1!M:M,"<8/1/2018")
so you end up with:
Code:
[COLOR=#333333]=SUMIFS(Sheet1!H:H,Sheet1!L:L,">=8/1/18",Sheet1!L:L,"<=8/31/18") - [/COLOR]SUMIFS(Sheet1!H:H,Sheet1!L:L,">=8/1/18",Sheet1!L:L,"<=8/31/18",Sheet1!M:M,">0",Sheet1!M:M,"<8/1/2018")
 
Last edited:
Upvote 0
Thank you so much, that seemed to do the trick. I tried something similar earlier, but to no avail. ">0" is what did the trick.

Thanks again.

Dave
 
Upvote 0
You are welcome.

Yes, that ">0" is necessary since you have some records with no shipping dates that you do not want excluded.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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