SUMIFS - Greater than first of month, Less than end of month

pvans267

New Member
Joined
Feb 25, 2010
Messages
35
Good morning,

I have a sheet (Payments) with the following layout:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Account[/TD]
[TD]Amount[/TD]
[TD]Rec[/TD]
[/TR]
[TR]
[TD]26/10/19[/TD]
[TD]Barclays[/TD]
[TD]100[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]02/11/19[/TD]
[TD]Barclays[/TD]
[TD]100[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]

On a different tab (October 19), I am trying to use a SUMIFS formula to gather all payments that occurred to Barclays in October 2019.

The formula I currently have is:
=SUMIFS(Payments!$C$2:$C$11,Payments!$B$2:$B$11,$A$4,Payments!$A$2:$A$11,">=" & 1/10/2019,Payments!$A$2:$A$11,"<=" & 31/10/2019)

However, this does not return the correct value. It instead returns the value of 0.

However, if I instead use:
=SUMIFS(Payments!$C$2:$C$11,Payments!$B$2:$B$11,$A$4,Payments!$A$2:$A$11,">=" & 1/10/2019,Payments!$A$2:$A$11,"<=" & TODAY())

I can't work out why the end date is causing the issue. Please can someone suggest how I can get this to work?

Thank you very much
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi, try like this:

=SUMIFS(Payments!$C$2:$C$11,Payments!$B$2:$B$11,$A$4,Payments!$A$2:$A$11,">=1/10/2019",Payments!$A$2:$A$11,"<=31/10/2019")

Or probably better to use:

=SUMIFS(Payments!$C$2:$C$11,Payments!$B$2:$B$11,$A$4,Payments!$A$2:$A$11,">="&DATE(2019,10,1),Payments!$A$2:$A$11,"<=" & DATE(2019,10,31))

At the moment you are comparing your date to 1 divided by 10 divided by 2019 etc
 
Upvote 0
Thank you very much. Your second suggestion works perfectly.

Also, thanks for the explanation, I didn't realise that's what I was effectively doing.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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