Solved: change date format in excel

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

acegdm

Thread Starter
Joined
Aug 27, 2010
Messages
2
I'm using ms office 2003 excel. I have a column date that is in a format of 20100410 and I would like to convert it to April 10, 2010. Any ideas?
 
Joined
Oct 20, 2004
Messages
7,837
If the column is actually a date (not text) then highlight the column and go to Format, Cells. Select the Number tab and then click on the Date format. A list of formatting options will appear and you should find what you want.
If it doesn't work, do the same thing and select Number. If you actually have dates typed in, then 20100410 would show as 40278.00 - if it is text, it will show as 20100410.00.
 

acegdm

Thread Starter
Joined
Aug 27, 2010
Messages
2
Thanks for your help. my column is a number and when I tried to go to format, cells, number, date. I tried to selevt the format I wanted but it doesn't understand the nuber is a date. However, I found a formula that converts the numbe to a excel date number,ie."=DATEVALUE(MID(A2,5,2)&"/"&RIGHT(A2,2)&"/"&LEFT(A2,4))". Then you can go and format that number to whatever date format you want.
 
Joined
Oct 20, 2004
Messages
7,837
Then Excel thinks it is a real number, not a date, and that is why you had to do a workaround with a formula. (Excel calculates dates as the # of days from the start of last century - that is why April 10, 2010 converts to 40278 as a number.)
But since you have figured this out, please use the button at the top of the page to mark this thread as Solved. :)
See you around!
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top