LEAP YEAR

HighlandPiper

New Member
Joined
Apr 28, 2016
Messages
19
Good afternoon all

Should my excel spreadsheet automatically identify 2024 as a leap year? It doesn't!

Let me expand on that. I have a lookup table that will calculate 36 months based on the start date.

Example
Manual input - Start Date: 02/02/2024
Formula - End Date: 02/02/2027

I am also using an online platform and when I enter the start date of 02/02/2024 the result is 03/02/2027
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
To prove that Excel recognizes the Leap Year, enter 2/2/24 in cell A1, then enter this formula in cell B1:
Excel Formula:
=A1+27
You can see that it returns 2/29/24

If you are trying to do date math where you are adding months or years to a date, it will ignore the day part and always return the same day, i.e.
regardless of whether or not there is a leap year, adding exactly 3 years to the date 2/2/24 is 2/2/27.

If you want it to be 2/1/27, you would need to add days, not months or years, i.e.
Excel Formula:
=A1+(365*3)
This is my problem Joe, I am using a formula to calculate 3 years exactly. I need the formula to calculate 3 years whether that includes a leap year or not.

For this example I would be looking for 02/02/24 which should be 03/02/2027
 
Upvote 0
For this example I would be looking for 02/02/24 which should be 03/02/2027
Thanks does not make any sense. Three years from 2/2/24 is 2/2/27, regardless of whether there is a leap year or not.
If anything, if you are treating 365 days as a full year, then the date would be 1/2/27, not 3/2/27.
So even if you are trying to account for that, you are going the wrong way.

If you think otherwise, please explain your logic in plain English. Walk us through (justify) how you expect to get to the date 3/2/27.
No matter how you define a year, 3/2/27 is either:
- 3 years and 1 day from 2/2/24
or
- 3 years and 2 days from 2/2/24

Exactly three years from 2/2/24 would be either 1/2/27 or 2/2/27, depending on whether you are assuming 365 days in a year, or just by adding exactly 3 years to the year portion of the date, leaving month and day alone.
 
Upvote 0
Hi all

Unfortunately, I haven't got access to the file with the dates I supplied earlier but I do have the same scenario with different dates. I have attached an image showing an extract from the spreadsheet along with the formula. I have also included a jpg with additional information. Basically the formula I am using on my spreadsheet is 1 day out from the online platform date and I don't understand why. I thought it may be an issue with 2024 being a leap year, but I now know that is not the case. I am by no means a competent excel user nor am I a maths guru. This is beyond me! Any help you can offer would be good.
 

Attachments

  • Formulae.jpg
    Formulae.jpg
    111.6 KB · Views: 14
  • Explanation.jpg
    Explanation.jpg
    162.6 KB · Views: 14
Upvote 0
So is there still a question here for us, or are you all set now (at least from an Excel standpoint)?
 
Upvote 0
Thank you all for your input. I do apologise for not being clear in the beginning. I think I need to take my query elsewhere outside of Excel.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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