Sorting more than 3 columns
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 6 of 6

Thread: Sorting more than 3 columns

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I would like to create a macro to sort columns A:F in a range of A3:F400 in ascending order.( "A" in ascending order then "B"in ascending order then "C" etc.) When I try the Excel sort it only does 3 columns. ( when record the sort as a Macro and try to add more columns it doesn't work). At this point I either need to by hand reselect the range to exclude the already sorted cells or figure out a macro to run. I would appreciate any help as I am sure you have seen this problem before. Also, I have found some great stuff in your site, but searching through the maze of questions for this answer has proved very frustrating. Thanks again.



    [ This Message was edited by: Earbrows on 2002-04-19 10:39 ]

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Guderup, Denmark
    Posts
    288
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi
    you should let your macro sort on D, E and F in first run.
    In second run sort on A, B and C.
    This way the whole range is sorted correct.

    regards Tommy

  3. #3
    New Member
    Join Date
    Apr 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Not exactly what I was looking for, but a very nice and simple solution anyway.

    Thank you very much.

  4. #4
    Board Regular
    Join Date
    Mar 2002
    Location
    Ontario
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    do you mean by A3:F400, that you wnat to sort so A1>a400, and A400>b1 and B1>b400 etc, or do you just want each column sorted within itself?

  5. #5
    Board Regular
    Join Date
    Mar 2002
    Location
    Ontario
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    sorry for repeat posting ..
    suffering from Friday Fingers

    [ This Message was edited by: Big Blue on 2002-04-19 11:38 ]

  6. #6
    New Member
    Join Date
    Apr 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    The information in each Column from A to F needs to be sorted aplhabetically and bring all the data on that row with it. The columns beyond the sorted cells has the data I need. Thank you.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com