Personal Budget - SUMIFS and Leap Year

Ziro54

New Member
Joined
Aug 3, 2014
Messages
24
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi,

I am in the process of creating a personalized budget (Office 365). I am using the following formula that works perfectly. I am planning on using this budget for the foreseeable future. How will I make provision for 2024 leap year?

[=SUMIFS('Details 2022'!$D$2:$D$2001,'Details 2022'!$A$2:$A$2001,">="&DATE(YEAR(C$2),MONTH(C$2),1),'Details 2022'!$A$2:$A$2001,"<="&DATE(YEAR(C$2),MONTH(C$2),29), 'Details 2022'!$B$2:$B$2001,$A$13)]

D:D - sum range;
A:A - date range;
B2-M2: Jan through Dec using EDATE;

When I put the date range 2022,2,1 and 2022,2,29, this does not work. If I leave it at 2022,2,28 it works fine. Thank you in advance :)

Z
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about
Excel Formula:
=SUMIFS('Details 2022'!$D$2:$D$2001,'Details 2022'!$A$2:$A$2001,">"&EOMONTH(C$2,-1),'Details 2022'!$A$2:$A$2001,"<="&EOMONTH(C$2,0), 'Details 2022'!$B$2:$B$2001,$A$13)
 
Upvote 0
Solution
How about
Excel Formula:
=SUMIFS('Details 2022'!$D$2:$D$2001,'Details 2022'!$A$2:$A$2001,">"&EOMONTH(C$2,-1),'Details 2022'!$A$2:$A$2001,"<="&EOMONTH(C$2,0), 'Details 2022'!$B$2:$B$2001,$A$13)
Thank you so much. Works perfectly!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,186
Members
452,615
Latest member
bogeys2birdies

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