I am using formula =DATEVALUE(LEFT(A1,2)&"/"&MID(A1,3,2)&"/"&RIGHT(A1,2)).
When value in A1 = 121505 (six digit number) - formula returns 12/15/05.
When value in A1= 051505 or 51505 - formula returns #VALUE error.
What am I doing wrong, please?
I am using formula =DATEVALUE(LEFT(A1,2)&"/"&MID(A1,3,2)&"/"&RIGHT(A1,2)).
When value in A1 = 121505 (six digit number) - formula returns 12/15/05.
When value in A1= 051505 or 51505 - formula returns #VALUE error.
What am I doing wrong, please?
I presume that 051505 is entered as a Number? So it becomes 51505 --> LEFT(A1,2)=51 ... see the problem?
But if you enter '051505 it will work, or it you Format the cell as Text, then enters 051505 it will stay 051505 and the formula will work
Ola
Excellent. Thanks.
Happy it was what you needed
Thanks for the feedback.
Ola Sandström
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks