+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting comparing two lists of different sizes

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    38

    Conditional formatting comparing two lists of different sizes

    I'd like to have some conditional formatting that marks List A when the value is found in list B.
    See attacthment.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Conditional formatting comparing two lists of different sizes

    For each conditional format, you make a rule that looks at the value you want to match, then select the range in which those values are present.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-16-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Conditional formatting comparing two lists of different sizes

    Thx. But if one list is 100 cells and the other is 30, that's gonna be a lot of rules hmm...
    They don't need to be given different colors if that helps anything.

  4. #4
    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: Conditional formatting comparing two lists of different sizes

    Try this...

    1. highlight the range you want to apply the conditional formatting to (B3:B6)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =HLOOKUP(B3,$I$2:$L$2,1,0) format fill as neded
    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

  5. #5
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Conditional formatting comparing two lists of different sizes

    removed cos it was wrong

  6. #6
    Registered User
    Join Date
    01-16-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Conditional formatting comparing two lists of different sizes

    Knew there had to be a simple solution, great!

  7. #7
    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: Conditional formatting comparing two lists of different sizes

    Happy to help and thanks for the feedback

+ 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] Conditional Formatting Comparing Cells Within A Row
    By barneyf in forum Excel General
    Replies: 2
    Last Post: 10-05-2012, 03:38 PM
  2. Replies: 1
    Last Post: 09-13-2011, 03:28 PM
  3. comparing 2 different columns of varying sizes in different worksheets.
    By vindieselgal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-15-2011, 06:28 AM
  4. Put together two lists of various sizes
    By Hitch75 in forum Excel General
    Replies: 2
    Last Post: 12-15-2009, 05:51 AM
  5. Conditional Formatting - comparing worksheets
    By HBF in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-12-2008, 12:28 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