Formula for forward looking leap year date

rlc

New Member
Joined
Feb 11, 2010
Messages
41
I have several dates that require me to be forward looking and I need to ensure it accounts for leap year. The example is
A B C
Year: 12/19/2012 Years after: 20 Existing Formula: =A(B*365) , Result is 12/14/2032 I am not sure this addresses leap year. Any assistance is appreciated
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
My Example did not post correctly.

A. Year: 12/19/2012
B. Forward number of years: 20
C. Existing Formula: =12/19/2012(20*365)
D. Current result: 12/14/2032
 
Upvote 0
You're right, that won't account for leap years.

Try
=EDATE(A1,B1*12)

This requires the analysis toolpack
In XL2007+ it's installed by default
In XL2003 you have to add it from Tools - Addins.
 
Upvote 0
Thanks, it works, can you briefly elaborate on the "*12" Portion of the formula? It is representing months? and why 12 vs 365. Just trying to understand a little better
Thanks again
 
Upvote 0
Glad to help.

The edate function creates a date that is the specified number of Months from the original date.
So it requires an input of MONTHS, not DAYS.
So 12 months in a Year, 20 years = 20*12 Months
 
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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