+ Reply to Thread
Results 1 to 9 of 9

Compare, Match, and sort multi columns

  1. #1
    Registered User
    Join Date
    12-10-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Compare, Match, and sort multi columns

    This forum is very informative. Thanks for hosting such a useful site.

    Now my problem could be simple, but I don't know how to start. Can someone please help me out?

    What I have are about 5 columns with populated data as such:

    2222 4444 1111 3333 2222
    7777 8888 5555 7777 9999
    1111 1111
    3333
    8888

    I'd like to match and sort them out, so the result look like this:

    1111 1111 1111
    2222..............................2222
    3333....................3333
    .........4444
    ...................5555
    7777....................7777
    8888 8888
    .....................................9999

    Is there a way to sort this (without the dots)?

    Thanks so much for your time.

  2. #2
    Registered User
    Join Date
    08-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Compare, Match, and sort multi columns

    Hi BeyondInvisible,

    I don't know of any sort function in Excel that would be able to do what you're after. You could do it through a combination of formulas - I've attached a sample sheet which does what you requested. Not sure what you need this for though, so it might not meet your requirements..
    Attached Files Attached Files
    Last edited by fullysic; 12-10-2012 at 06:15 PM.

  3. #3
    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,933

    Re: Compare, Match, and sort multi columns

    fullysic offers a good solution

    to tidy it up a bit, you could have a 2nd (3rd?) table that sorts them so that there are no empty spaces on the left, by using this, copied down and across..

    =IFERROR(LARGE($H3:$L3,COLUMN(A$1)),"")
    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

  4. #4
    Registered User
    Join Date
    12-10-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Compare, Match, and sort multi columns

    Quote Originally Posted by fullysic View Post
    Hi BeyondInvisible,

    I don't know of any sort function in Excel that would be able to do what you're after. You could do it through a combination of formulas - I've attached a sample sheet which does what you requested. Not sure what you need this for though, so it might not meet your requirements..
    Oh wow! This forum REALLY rocks!

    Wow! Speechless. Quick respond and right on money.

    Thanks so much Fullysic. You've save tons of hours for me!!!! Every week we have hundreds of data that we pulled from the server, and need to compare to see if those data are consistence or not.

    You are AWESOME!

    Thanks again. I'll try to use it tomorrow at work

  5. #5
    Registered User
    Join Date
    12-10-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Compare, Match, and sort multi columns

    Quote Originally Posted by FDibbins View Post
    fullysic offers a good solution

    to tidy it up a bit, you could have a 2nd (3rd?) table that sorts them so that there are no empty spaces on the left, by using this, copied down and across..

    =IFERROR(LARGE($H3:$L3,COLUMN(A$1)),"")
    Thanks so much for your function, too FDibbins. This is wonderful! Thanks thanks thanks!

  6. #6
    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,933

    Re: Compare, Match, and sort multi columns

    Happy to help. If this answered your question (when you test it at work tomorrow), please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

  7. #7
    Registered User
    Join Date
    08-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Compare, Match, and sort multi columns

    Glad to help mate, just give me a yell if you have any questions regarding how it was done. Also thanks FDibbins for your input, that condenses it nicely

  8. #8
    Registered User
    Join Date
    12-10-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Compare, Match, and sort multi columns

    Just a followup.

    Again, thanks for your help Fullysic and FDibbins. I've sorted a whole month worth of data using your functions and it took me......5 seconds. Unbelivable. Had I known better. The functions are pretty self-explanatory, so I was able to catch up on that. I've worked with different programs, so I rarely have a chance to work on Excel until recently.

    Thanks so much again!!! Why are you so smart?

  9. #9
    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,933

    Re: Compare, Match, and sort multi columns

    naaa the smart people are those that have the sense to ask, rather than battle on by themselves

+ 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