+ Reply to Thread
Results 1 to 6 of 6

Sorting Across cells

  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2002
    Posts
    9

    Sorting Across cells

    Is it possible to sort across cells? For example if i have data that is 10 rows by 10 columns can i sort it so highest value is in A1 next highest in A2 all the way to lowest value in J10?

    Thanks

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Sorting Across cells

    I don't know of a way to do it using the sort method, but here is a way to do it using formulas:

    In some other range enter this formula into the first column (assuming the range starts in the first row, adjust to suit)
    =SMALL($A$1:$J$10,ROW())

    Copy down 10 cells.

    In the next column, use

    =SMALL($A$1:$J$10,ROW()+10)

    Copy down.

    Repeat for each column, adding ten.

    Then just copy and paste as values in your original range and clear the temporary range.

    If you use a temporary sheet for your formulas, you could enter this is A1

    =SMALL('Sheet1'!$A$1:$J$10,ROW()+((Column()-1)*10))

    Then copy down and accross
    Last edited by Whizbang; 10-25-2011 at 02:00 PM.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sorting Across cells

    Select the row to sort
    Data > Sort > Options...
    Orientation:= Left to right
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Sorting Across cells

    Oops. I reread your post and realized you wanted the largest number in A1 and the smallest in J10. Replace the word "SMALL" in my formulas above with "LARGE".

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Sorting Across cells

    Here is a mod to Whizbang's approach which allows you to type in one formula and then just copy it. It assumes that the data you want to sort starts in A1. Otherwise it needs a tweak to be more general.

    See attached example.

    (Marcol: Your solution is for sorting individual rows but the OP is looking to sort then entire range as a block.)

    This solution is essentially what Whizbang provided in the later edit of that post.
    Attached Files Attached Files
    Last edited by 6StringJazzer; 10-25-2011 at 02:47 PM. Reason: added text in blue
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sorting Across cells

    @ 6 String J
    Aye, I noticed that later, thought I'd leave the post just in case.

+ 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