Hi,
I need help with converting a cell with Number series entered to the format of YMMDD and I need it to convert to MM/DD/YYYY
Example: In the cell I have 81101 this needs to be converted to 11/01/2008
Your help will be appreciated.
Hi,
I need help with converting a cell with Number series entered to the format of YMMDD and I need it to convert to MM/DD/YYYY
Example: In the cell I have 81101 this needs to be converted to 11/01/2008
Your help will be appreciated.
Last edited by jobie804; 08-05-2014 at 02:37 PM.
Are there any dates with a year in 2010+ ?
Or are they all in the 2000-2009 range?
They're all for 2008 for this worksheet I'm working on. But there are separate sheets with YYMMDD formats on them as well for 2010-2014.
Please try the following formula in B1, considering that you have the dates in column A
=DATE(2000+LEFT(A1,1),MID(A1,LEN(A1)-4,2),RIGHT(A1,2))
81101 is coming up as 9/1/2014 with that formula.
Try this to accomodate for 1 or 2 digit year.
It still assumes the year is 2000+
=(TEXT(RIGHT(A1,4)&2000+LEFT(A1,LEN(A1)-4),"00-00-0000"))+0
=date((2000+left(a1,len(a1)-4)),(mid(a1,len(a1)-3,2)),(right(a1,2)))
=date(2000+left(text(a2,"00000000"),4),--mid(text(a2,"00000000"),5,2),--right(a2,2))
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
That's cause LEN(A1)-4 starts you at the first position (is passing in 81 for month).
=DATE(2000+LEFT(A1,1),MID(A1,2,2),RIGHT(A1,2))
That will work if a date like 1/1/2008 was entered as 80101.
Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.
Please,mark your thread [SOLVED] if you received your answer.
Maybe this
=DATEVALUE(TEXT(A1,"0000\/00\/00"))
A B 1 20141012 10/12/2014
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks