1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: change date format in excel

Discussion in 'Business Applications' started by acegdm, Aug 27, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. acegdm

    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?
     
  2. slurpee55

    slurpee55

    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.
     
  3. acegdm

    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.
     
  4. slurpee55

    slurpee55

    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!
     
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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/946101