+ Reply to Thread
Results 1 to 6 of 6

Thread: Trouble sorting dates (with new attachment)

  1. #1
    Forum Contributor
    Join Date
    08-04-2005
    Posts
    131

    Trouble sorting dates (with new attachment)

    Of course, it was silly of me not have attached the Excel sheet. Sorry.
    Thanks for trying to help.
    ACA

    I have Excel 2007, on Windows 7, and, thogh not a new user, I have trouble handling dates: sorting them, but before that, getting a good date format. See example in attached file, please:

    I cannot sort column A by date (A-Z); I keep getting the result you see there: the last three are out of place. Notice that
    - The formula =DATENUMBER() works for some of the cells correctly sorted, but gives an error for others of these, and for all of the wrongly sorted ones (see column B ; the language is Spanish).
    - The cells in column A, when selected, appear on the formula bar as shown in column C: some with “/”, which cannot be changed to “-”.
    - Something may be wrong with the way the dates read by the program (the document was originally in an earlier version of Excel, but otherwise it runs well on 2007).
    - I’ve tried everything I know in the Regional Configuration for my formats (Spain).
    - I’ve tried everything in the Cell Format options of Excel, trying several date formats, number format, text format, general format.

    Thanks for any help.
    A. Calle
    Attached Files Attached Files
    Last edited by aca; 12-18-2010 at 04:25 AM.

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,165

    Re: Trouble sorting dates

    Have you tried running =DateValue() against the questionable dates. I suspect that they may be texts. It would be easier for us to evaluate if you posted the spreadsheet in an excel format versus the word document. Unable to really see what the issue is.

    Alan

  3. #3
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,786

    Re: Trouble sorting dates

    it would be better if you posted an excel example. but you can probably fix the dates using text to columns
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    08-04-2005
    Posts
    131

    Re: Trouble sorting dates (with new attachment)

    Thanks, Alansidman and Martindwilson, for trying to help.
    Look at it again, please: I've posted the right attachment.
    ACA

  5. #5
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,786

    Re: Trouble sorting dates (with new attachment)

    the problem is there is a code 160 space before some of them
    use find replace
    in find hold down the alt key and type 0160 using the NUMBERPAD not the top row
    leave replace blank
    replace all
    after that use text to columns to fix the text ones
    select column
    data/text to columns
    delimited
    next
    next
    choose date from column data format
    choose DMY (well thats how it appears to me in my settings you may be MDY)
    click finish
    Last edited by martindwilson; 12-18-2010 at 07:05 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Contributor
    Join Date
    08-04-2005
    Posts
    131

    Re: Trouble sorting dates (with new attachment)

    Thanks a word, Martindwilson. Your instructions work very well.
    How silly of me, not to notice that unwelcome space!
    aca
    (I added to your reputation)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0