Leap Year formula that won't automatically change to March 1

Breizze1313

New Member
Joined
Sep 26, 2023
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
I am trying to finalize some edits I did to a purchased Excel day planner file with holidays and such and the original creator did not list Leap Year in the "Holidays" section. I'm going to add some screenshots of what the formulas look like. All of this information is then moved via array formulas to the body of the planner. Using the standard DATE formula leap day auto changes to 3/1/XXXX of the year that is not a leap year. I would like non leap years to show nothing and every other formula i have tried to make that blank and not trigger into the main body of the planner keeps giving me an error. I swear this book is going to kill all my brain cells trying to chase formulas...

Leap Year NOT a Leap Year
1695753222725.png
1695753447605.png
1695753303999.png
1695753397005.png
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Give this a go
Excel Formula:
=IF(OR(B84="",C84=""),"",IF(AND(MONTH(DATE(year,B84,C84))=B84,DAY(DATE(year,B84,C84))=C84),DATE(year,B84,C84),""))
 
Upvote 0
The formula offered in Post #2 can be shortened to:
Excel Formula:
=IF(OR(B84="",C84=""),"",IF(MONTH(DATE(year,B84,C84))=B84,DATE(year,B84,C84),""))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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