Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Year Date plus one 1

Status
Not open for further replies.

diamondjim

Mechanical
Jul 30, 2000
992
I want to copy all of the dates in a column in excell
but add 1 year to the dates and have it appear in the next column. I tried =H1 + 1 and several other ideas but
the day changes by one.
Thanks
 
Replies continue below

Recommended for you

You could try the following formula
New date is J1

=DATE(YEAR(H1)+1, MONTH(H1), DAY(H1))

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Unless it is a yeap lear :)

Wheels within wheels / In a spiral array
A pattern so grand / And complex
Time after time / We lose sight of the way
Our causes can't see / Their effects.

 
Oh, you'll have to watch out for leap years as they'd be a day off in that case.

 
Four replies inside two minutes... I'm glad they've added the time to the posting date.

CC's answer is best.
 
Make a custom function using VBA and use the VB "Dateadd" function.
 
Excel's internal date serial number format is based on the number of days since 1/1/1900 or somesuch thing. The fraction is the elapsed portion of the day since midnight.

That's why adding 365 will mostly work. A more complicated scheme would involve decomposing the actual year, month, day, adding 1 to the year and reconstructing the date serial number. That's assuming your goal is to get the same date, only 1 yr later.

TTFN
 
=DATE(YEAR(H1)+1, MONTH(H1), DAY(H1))
That worked perfectly. Thanks!

Thanks for your other ideas as well
+ 365 and + 366 for the leap year
would work but caution would be required
or an if statement included.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor