+ Reply to Thread
Results 1 to 14 of 14

sort comparing 2 columns based on colour index

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    sort comparing 2 columns based on colour index

    Hi

    Attached a spreadsheet where im trying to sort 2 columns based on colour index.

    Any advise would be helpful.

    rem0
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    Hi xlKings

    any help on the query?

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: sort comparing 2 columns based on colour index

    Hi Rem0,

    You're attempting to sort by ColH and ColL by color? red at top and so on?

    And it needs to be a macro? can you specify what the end result should be?

    Thanks,
    Dex

  4. #4
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    please refer rows 21-24 as sample output.

    sry trying to upload a revised file but fails.

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    PFA! the revised file.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    the revised file with the expected end result.

    Note: the number of rows is illustrative and it will change.

  7. #7
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    adding a image to brief more about the expected result.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    hi

    can someone advise on the query?

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: sort comparing 2 columns based on colour index

    Maybe:

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    Hi John

    It works like a star....

    Thanks for that!

    But, not sure how the loop works, if you could shed some light on that i can learn...

    THanks Again....

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: sort comparing 2 columns based on colour index

    You're welcome. Glad to help out and thanks for the feedback. I inserted helper columns "M/N" (later deleted them), assigned color values per you requirements. Sorted on the helper columns and then deleted the helper columns. Hope that explanation helps.

  12. #12
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    Hi John

    You have inserted row2 in the code, not sure why it required with out that the code runs fine though?

  13. #13
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: sort comparing 2 columns based on colour index

    Strange. I couldn't get the sort portion to work properly with inserting the row 2. But if you are satisfied and have a solution, please mark the thread as solved.

  14. #14
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: sort comparing 2 columns based on colour index

    Thanks! for that

+ 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. [SOLVED] Sort 4 columns by comparing 2
    By Buffco in forum Excel General
    Replies: 2
    Last Post: 08-12-2014, 09:40 AM
  2. Conditional Formatting based on comparing the dates in 2 columns
    By ghostface in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2014, 05:54 PM
  3. Filter - sort by criteria in multiple columns using Colour..
    By vba_madness in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-29-2014, 10:53 AM
  4. Replies: 3
    Last Post: 01-18-2011, 10:31 AM
  5. Change colour based on columns filled
    By lmw in forum Excel General
    Replies: 11
    Last Post: 09-08-2008, 04:57 PM

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