SUMIF Multiple criteria - issue with Between dates

Joined
Jan 24, 2018
Messages
5
Hi all,

I'm using a SUMIF function where the first criteria is an item (fuel), the second, greater than 08/01/2018 and the third is less than 15/01/2018. If that returns zero, I have it referring to a another cell to produce an estimate of the cost I am trying to find.

This issue is excel is including the upper date, so instead of being between 08/01 and 15/01 its including 15/01 figures.

=IF(SUMIFS(Journal!$B$4:$B$1000,Journal!$A$4:$A$1000,Cashflow!$B16,Journal!$C$4:$C$1000,">="&Cashflow!D$6,Journal!$C$4:$C$1000,"<="&Cashflow!E$6)=0,Estimates!$C16,SUMIFS(Journal!$B$4:$B$1000,Journal!$A$4:$A$1000,Cashflow!$B16,Journal!$C$4:$C$1000,">="&Cashflow!D$6,Journal!$C$4:$C$1000,"<="&Cashflow!E$6))

Where:
- Journal!$B$4:$B$1000 is the actual cost of items
- Journal!$A$4:$A$1000 is the name of items
- Cashflow!$B16 is the criteria for the name to meet
- Journal!$C$4:$C$1000 is the date at which the item was paid
-">="&Cashflow!D$6 above first date
<="&Cashflow!E$6 belove second date

Thanks in advance!

SPTE
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If 15/01 is your upper date this is just a simple case of changing all <= to < (and probably >= to > too )
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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