ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Format dates & add ten years to date (https://www.excelbanter.com/excel-discussion-misc-queries/234865-format-dates-add-ten-years-date.html)

Jason K[_2_]

Format dates & add ten years to date
 
I imported a report into excel, in the report the effective dates are
yearmonthday (20090815). I would like to change these to a normal date
format. I also need to in a seperate column show the date with ten years
added, also if as of this month the effective date is within ten years or
outside ten years.

Any help would be greatly appreciated

Jim Thomlinson

Format dates & add ten years to date
 
Assuming your date is in A1 here is one way. This converts that number into a
normal XL date...

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

to add 10 years

=DATE(LEFT(A1,4) + 10,MID(A1,5,2),RIGHT(A1,2))

I don't understand the last part of the question?
--
HTH...

Jim Thomlinson


"Jason K" wrote:

I imported a report into excel, in the report the effective dates are
yearmonthday (20090815). I would like to change these to a normal date
format. I also need to in a seperate column show the date with ten years
added, also if as of this month the effective date is within ten years or
outside ten years.

Any help would be greatly appreciated



All times are GMT +1. The time now is 03:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com