+ Reply to Thread
Results 1 to 11 of 11

Cant Change date on some rows

  1. #1
    Registered User
    Join Date
    03-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    74

    Cant Change date on some rows

    I cant for the life of me figure out why I cant change the date format for some of these rows?

    Im trying to modify a excel file sent to me by a client but some of the fields seem to be messed up.

    Could somebody explain what i must do to get all the rows in a format

    yyyy-mm-dd

    i have already tried to format the cells, but only some rows update!!
    Attached Files Attached Files
    Last edited by ebbo; 11-13-2009 at 05:51 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cant Change date on some rows

    Some of your values are stored as text. No amount of number formatting will change them. To convert them easily to numbers, select column A and Go "Text to Column" and "Finish". Does that help?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Cant Change date on some rows

    Hi,

    Some of your rows aren't stored as an excel date. To convert them to an excel date, you could use something like this:

    =DATE(RIGHT(A1,4),LEFT(A1,FIND("/",A1)-1),MID(A1,FIND("/",A1)+1,2))

    and then format that cell according to your needs
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    03-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Cant Change date on some rows

    nope:/

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Cant Change date on some rows

    Both work for me. What output are you getting to each suggestion?

  6. #6
    Registered User
    Join Date
    03-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Cant Change date on some rows

    take a look at my new excel file. - there is a lot of values - i need a effective drag down method if possible!

    Text to columns just doesnt seem to do anything. I tried text to columns then formatting but nothing happens.

    Method 2 works better but I get #value on the rows that were updating before!
    Attached Files Attached Files

  7. #7
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Cant Change date on some rows

    OK,

    try this -

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Cant Change date on some rows

    cool works very well

    2 more things if you dont mind pretty please.

    1. If a row has an empty value (blank) how can avoid the #value

    2. Instead of dragging all the way down with this (or any) formula is it possible to do some kind of shift click to populate. in very long lists like this is could take a while to drag down especially as I have quite a few of these lists to do!!

    your help appreciated!!

    cheers

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cant Change date on some rows

    Here's what the results were when I did "text to column" on your original file. It took all of 3 seconds. I wonder why it is not working for you.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Cant Change date on some rows

    not really sure why it doesnt work for me! im using version 2003.

    Can anyone help me with points 1 and 2 in my last post? pretty please!

    thanks

  11. #11
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Cant Change date on some rows

    To get rid of the error in a blank line:

    =IF(A2="","",IF(ISNUMBER(A2),A2,DATE(RIGHT(A2,4),LEFT(A2,FIND("/",A2)-1),MID(A2,FIND("/",A2)+1,2))))

    To copy down, double click the black dot in the lower right corner of the active cell.

+ 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