+ Reply to Thread
Results 1 to 5 of 5

Problem with Sorting rows on a column

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Problem with Sorting rows on a column

    Hi All,

    I have a peculiar problem and have scoured the forums and all over Google to find the answer. The problem is that I'm trying to sort rows based on a column value simple as it sounds - I have tried the obvious thing by sorting A-Z and expanding the selection to include the whole table, and also using a filter on the whole table and sorting it A-Z, however its seemed to do 95% of the sort correctly as the last values in the last column seems to have failed to sort properly. I have 14 columns in the spreadsheet and there are over 300 lines. There are no formulas and all values are literally numbers. Can someone please advise how to fix this. Many thanks in advance.

    This is what I mean:

    To sort:

    B 1 5 4 3

    A 5 2 3 5

    C 2 1 5 4

    Result:

    A 5 2 3 [3]

    B 1 5 4 [4]

    C 2 1 5 [5]

  2. #2
    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: Problem with Sorting rows on a column

    Hi jsoohoo and welcome to the forum

    Im not sure if I understand you properly, because when I sorted your dummy data, based only on the 1st column (with the letters), i got...

    A 5 2 3 5
    B 1 5 4 3
    C 2 1 5 4

    This seems to be right?
    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

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Problem with Sorting rows on a column

    Hi FDibbins,

    Thanks for such a prompt reply. That was more of a simplified explanation of real problem. I really should have stated that. The problem occurs in this .xsl file (attached), currently its unsorted.
    Attached Files Attached Files

  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: Problem with Sorting rows on a column

    and you want to sort the entire table based on column A?

    If so, whe you have done that, what have been the errors?

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Re: Problem with Sorting rows on a column

    That is correct. What happened was the very last column would not follow the sort. I wonder how it worked for you? Cheers

    Quote Originally Posted by FDibbins View Post
    and you want to sort the entire table based on column A?

    If so, whe you have done that, what have been the errors?

+ 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.6.0 RC 1