+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting to match a group of numbers

  1. #1
    Registered User
    Join Date
    11-30-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    30

    Conditional Formatting to match a group of numbers

    Hey guys,

    I am trying to make a group of numbers go coloured if they match any of the numbers in another section. I know single formatting where you can colour a cell if it matches 1 other number but this is a bit different.

    Example attached

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: Conditional Formatting to match a group of numbers

    So what's the rule in this case - I can't work it out from your example

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

    Re: Conditional Formatting to match a group of numbers

    If you simply want the groups to light up if each number exists anywhere in the other chart, do that like so:

    1) Highlight A5:E13
    2) Select Format > Conditional Formatting > Condition1: Formula Is: =COUNTIF($G$5:$K$13, A5)>0
    3) Click Format... Patterns: RED
    4) OK > OK

    5) Highlight G5:K13
    2) Select Format > Conditional Formatting > Condition1: Formula Is: =COUNTIF($A$5:$E$13, G5)>0
    3) Click Format... Patterns: YELLOW
    4) OK > OK
    _________________
    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!)

+ 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