+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Compare two columns and color matches

  1. #1
    Registered User
    Join Date
    05-11-2009
    Location
    Rijeka, Croatia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Compare two columns and color matches

    Hello!

    I have problem with finding matches in two colums,
    what i need is:

    E.G.

    i have:

    Column A____Column B

    John________Steve
    Steve_______Mick
    Freddy______Michael
    Alfred
    Mick

    Result will be:

    Column A____Column B

    John________Steve
    Steve_______Mick
    Freddy______Michael
    Alfred
    Mick


    Thanks
    Last edited by tmikule2; 05-29-2009 at 09:33 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Compare two columns and color matches

    You can use a Conditional Formatting formula to do this, assuming your data resides in A1 onwards and list of names to match in B1 onwards, do the following:

    Highlight your data in column A (selecting A1 first) -> Format -> Conditional Formatting -> FormulaIs: =ISNUMBER(MATCH($A1,$B:$B,0))
    set format accordingly

  3. #3
    Registered User
    Join Date
    05-11-2009
    Location
    Rijeka, Croatia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Compare two columns and color matches

    I have tried but it doesn't work... Here is example what I need, and result must be that in first colum matches would be red.
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Compare two columns and color matches

    That's probably because you didn't use the formula I gave you

    Copy the formula from post # 2 and paste it directly into your conditional format formula in XL (replacing what's there already)

    You should not have quotation marks around the formula... ie =ISNUMBER(...) and not "=ISNUMBER(...)"

    EDIT:

    Given you're operating in Croatia you may need to use

    =ISNUMBER(MATCH($A1;$B:$B;0))

    ie use semi colon ; rather than comma , as delimiter in the function

  5. #5
    Registered User
    Join Date
    05-11-2009
    Location
    Rijeka, Croatia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Compare two columns and color matches

    Thank's, it works!!!

+ 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