Excel number to date conversion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In excel how do you convert a number ie. 960730 to the date 30-07-96, excel
help is no use and when I try to format it as a date it comes up with may
4025 or something.
 
Try this formula...

=RIGHT(A1,2) & "-" & MID(A1,3,2) &"-"&LEFT(A1,2)

if A1 contains your date
 
=DATE(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))
custom format cell to mm-dd-yy
 
Neville

Data>Text to Columns>Next>Next "Column Data Format">Date YMD and Finish

Gord Dibben Excel MVP
 
Thanks for your help, however now a I have found someone has entered dates as
1000104 for 04/01/00, no idea why the 1 is in from, is there any way i can
convert this.
 
If you study the formula that you were given, you should be able to figure out
how to modify it to handle (i.e. eliminate) the leading 1.

I expect the person added it so that the 2000 data would sort after the 1999
data.
 

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

Back
Top