+ Reply to Thread
Results 1 to 5 of 5

Sorting problem

  1. #1
    Registered User
    Join Date
    04-15-2015
    Location
    Phoenix
    MS-Off Ver
    2002
    Posts
    3

    Sorting problem

    I have scoured the internet and Google searched this for days and can't find how to do this.

    I have 3 columns and dozens of rows of randomly entered data, something like below.

    d f b
    h i g
    c e a

    I wish to sort it left to right across the row for 3 columns and then continue on the next row like this.

    a b c
    d e f
    g h i

    Please help. I can't find how to sort in this fashion on any tutorial or forum.
    Thanks
    Scott

  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
    52,946

    Re: Sorting problem

    Hi, welcome to the forum

    This is obviously dummy data, but can you provide some realist samples that more closely fit your actual data?
    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
    04-15-2015
    Location
    Phoenix
    MS-Off Ver
    2002
    Posts
    3

    Re: Sorting problem

    I wish to have the cells sorted alphabetically. No cells, rows or columns are associated with each other. The data is currently like this.

    Dave Fred Bob
    Henry Issac George
    Charles Eric Adam

    I wish to sort it like this.

    Adam Bob Charles
    Dave Eric Fred
    George Henry Issac

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Sorting problem

    Hi sermojo and welcome to the forum,

    I find lots of answers using VBA but I thought you would have found those.

    My solution is using helper arrays. The first in columns EFG tell the alpha order of the names. In IJK I have a fixed numbers from 1 to the last to make the other formulas easier.
    In the next two arrays I've found the Column and then Row where the name lives. Then in the last array I can then use the Row and Column numbers and sort the names.

    See if all this makes sense. Let me know if you have questions.

    If this is a homework problem, I want an A on this one, as I didn't find much help on the net either.

    Now, one of the smart Guru's will come up and roll the whole thing into a single formula.. We'll see.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    04-15-2015
    Location
    Phoenix
    MS-Off Ver
    2002
    Posts
    3

    Re: Sorting problem

    Thanks for your reply Marvin.

    My biggest problem is that I only try to use Excel once or twice a year, and almost always have to search the the net to find out how to do what I want to do.

    I am completely unfamiliar with VBA and how to use it. I haven't been able to justify the time to learn it for the rare times that I might use it. I was mostly hoping that I was overlooking an advanced sort setting somewhere.

    I will play with your file a little to see if I can figure out what you've done.

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sorting problem
    By Portuga in forum Excel General
    Replies: 3
    Last Post: 02-21-2008, 05:07 PM
  2. sorting problem
    By corsair in forum Excel General
    Replies: 1
    Last Post: 06-19-2007, 01:47 PM
  3. Not Sorting Problem?
    By lawdoggy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 05:05 AM
  4. Not Sorting Problem?
    By lawdoggy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. Sorting Problem Need
    By James in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2005, 03:07 AM

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