+ Reply to Thread
Results 1 to 10 of 10

Help Needed on a date conversion

Hybrid View

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    4

    Help Needed on a date conversion

    Hello All,

    I am in need of some help. I have a column of dates (dates of birth) that are "yyyy-mm-dd" and I need to convert them to "mm-dd-yyyy" and/or the person's actual age. I know how to convert the second date range to age, but can't figure out how to convert the "yyyy-mm-dd" format to anything useful. Any help with this matter would be greatly appreciated. I am sorry if I am posting this in the wrong area. I am new and running out of time.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Help Needed on a date conversion

    Maybe look at text to columns

    Data >> Data Tools >> Text to Columns >> Next >> Next >> Data (pick a format)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help Needed on a date conversion

    Thank you for the tip. I did try that (after you pointed it out) and for some reason it worked on some of the dates, but not all of them. Any other ideas?

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Help Needed on a date conversion

    Select the Column or Cells you want to convert to "mm-dd-yyyy", right Click and then Click on Format. Select Custom and enter the format you want.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Help Needed on a date conversion

    Probably because those date really are not dates.

    To test them...

    =ISNUMBER(A1)

    ...if it is a real date then you will get a TRUE

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Help Needed on a date conversion

    To add to jeffreybrown's solution. If it looks like a Date and you get a FALSE result, then check for leading or trailing, or any Spaces for that matter and delete it if you find any.

  7. #7
    Registered User
    Join Date
    11-14-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help Needed on a date conversion

    I just figured it out.. Thank you for all of your help. I used the text to columns feature, since each space was in same spot I used "fixed width" and inserted a break at the end of the date and it worked!

  8. #8
    Registered User
    Join Date
    11-14-2012
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help Needed on a date conversion

    YAY! Well, now I know what it was... There is a space after the yyyy/mm/dd date, you can't see it, but I insert the cursor, hit delete, then enter and the date changes itself to mm/dd/yyyy.. Okay, so now to further the question, how can I delete the space in the entire column without deleting them one at a time?
    Thank you all for your help and suggestions, they were very much appreciated!!!!!!

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Help Needed on a date conversion

    You can also use the Trim function which in some cases may work better.

    =========================================================

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Help Needed on a date conversion

    You are welcome.

    Glad we could help.

    Thank you for the Rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1