date format help needed please

M

Mominator

sorry to post twice- but not sure where this question belongs...I have a
column of mixed format.... some numbers and some are brought in as
numbers stored as text. I need to apply a date format of mmddyyy
however, when I apply to column, the values that were numbers stored as text
display the error code: ########### and the pop up tip reads "dates and
times that are negative or too large display as #######".
I have tried formatting the numbers stored as text into number values before
I apply the date value, but excel drops the leading zero's and that is
unacceptable for the reports I need to submit.
Any help would be greatly appreciated....
Thank you very much.
Candice
 
D

David Biddulph

=IF(ISNUMBER(A1),A1,DATE(RIGHT(A1,4),LEFT(A1,2),MID(A1,3,2)))
Adjust to suit the format of your text input.
 
M

Mominator

THANK YOU!!!
You saved my sanity.

David Biddulph said:
=IF(ISNUMBER(A1),A1,DATE(RIGHT(A1,4),LEFT(A1,2),MID(A1,3,2)))
Adjust to suit the format of your text input.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top