+ Reply to Thread
Results 1 to 9 of 9

Column of dates not recognized as dates...

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    46

    Column of dates not recognized as dates...

    Hi,
    I have a column of dates that are not being recognized as dates unless if I manually select each cell and press enter. For example the cell value is "Jul/13' and isn't recognized as "01/06/2013" until I select it and hit enter. How can I get around this?
    Last edited by nanomess; 04-12-2013 at 02:42 PM.

  2. #2
    Registered User
    Join Date
    04-12-2013
    Location
    Cincinnati
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Column of dates not recognized as dates...

    Select cells that have dates (or click the column header letter to select the entire column), go to Format Cells>Number Tab>Date and select the format you want.

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Column of dates not recognized as dates...

    just a bit confused.....why would "Jul/13" convert to "01/06/2013"....July vs January?.....also just formatting does actually change the data only how it's shown. If you intend on doing date math you will have to actually convert it to a real date and there is a couple of formulas to do that....one of the them is:

    =TEXT(A1,"MM/DD/YYYY") assumes you data is in A1.......HTH
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Column of dates not recognized as dates...

    Thats probably because they are NOT dates, but text that just looks like dates.

    test with =isnumber(cell_ref)......false is TEXT, but if your dates are in fact like your sample, they almost certainly are not dates. in an adjacent column, enter =A1*1 and copy down (assuming your data is in A1)

    @Ryan, changing the format of a cell doesnt not change/affect the contents of that cell, only its appearance or "cosmetics", so if the cell contains text, formatting wont fix that

    Edit: @ judge...english data format...day/month/year
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Column of dates not recognized as dates...

    @FDibbins - tie goes to the runner?

  6. #6
    Registered User
    Join Date
    04-12-2013
    Location
    Cincinnati
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Column of dates not recognized as dates...

    Quote Originally Posted by FDibbins View Post
    @Ryan, changing the format of a cell doesnt not change/affect the contents of that cell, only its appearance or "cosmetics", so if the cell contains text, formatting wont fix that
    OP didn't say anything about doing math, I assumed they were only concerned about how it displayed. Oh well. I learned something too!

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Column of dates not recognized as dates...

    @FDibbins -- thanks on the English Format.....I looked at that and completely forgot

  8. #8
    Registered User
    Join Date
    05-24-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Column of dates not recognized as dates...

    @FDibbins

    Thanks,
    That was exactly the case... isnumber returned false... and doing cell*1 converted it into a formattable date.

  9. #9
    Registered User
    Join Date
    05-24-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Column of dates not recognized as dates...

    Yup! English format. Likewise I get confused by the US format sometimes. :P

+ 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