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:
DateAccountAmountRec
26/10/19Barclays100Yes
02/11/19Barclays100Yes

<tbody>
</tbody>

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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,215,227
Messages
6,123,745
Members
449,116
Latest member
alexlomt

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