+ Reply to Thread
Results 1 to 4 of 4

Sorting multiple rows

  1. #1
    Registered User
    Join Date
    09-06-2009
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sorting multiple rows

    Hello all. Thanks in advance for any help you can give me. I have been trying to find a way to sort hundreds of rows and can't figure it out. Here is an example of what I have:

    23 56 34 16 25 6
    56 45 48 23 12 5
    12 45 34 67 47 32
    .
    .
    .
    What I want to do is sort each row lowest to highest like so:

    6 16 23 25 34 56
    5 12 23 45 48 56
    12 32 34 45 47 67

    The sort by rows thing doesn't work.

    Thanks again!

    -Mark

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sorting multiple rows

    Sorting basically works on columns, not rows. I would approach your situation with a macro. Are you able to use / interested in a VBA solution?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-06-2009
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Sorting multiple rows

    Thanks for the reply. Actually, I'm using openoffice, so not sure what else would work for that.

    Thanks!

    -Mark

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sorting multiple rows

    I don't use OpenOffice. However, a simple Excel macro to utilize an empty column AA to do sorting for you would look like this:
    Please Login or Register  to view this content.
    This web site appears to offer an OpenOffice Basic converter for Excel VBA:
    http://www.business-spreadsheets.com/vba2oo.asp

    You can run the code through there to get a possible OpenOffice "version" of my macro.

+ 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