+ Reply to Thread
Results 1 to 4 of 4

Compare name list (First name, last name) on two different sheets and highlight

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Compare name list (First name, last name) on two different sheets and highlight

    I have a workbook with two sheets with two columns on each which need to be compared and highlight any duplicates on Sheet 2

    Example:

    Sheet 1

    First Name Last Name
    Joe Bloggs
    Harry Houdini
    Tony Stark
    Batman Glooney

    Sheet 2

    First Name Last Name
    Harry Houdini
    Peter Pan
    Joe Graham
    Joe Bloggs

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Compare name list (First name, last name) on two different sheets and highlight

    On Sheet 2, put this formula in C2:

    =A2 & B2

    then copy down.

    Then in C2 on Sheet 1 you can have this formula:

    =IF(COUNTIF(Sheet2!C:C,A2&B2)>0,"Duplicated","not on Sheet2")

    and copy this down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-25-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Compare name list (First name, last name) on two different sheets and highlight

    Can we get it to highlight

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Compare name list (First name, last name) on two different sheets and highlight

    Select all the cells in Columns A and B on Sheet1, starting with A2, and click on Conditional Formatting | New Rule, then choose Use a Formula from the bottom of the list. Put this formula in the dialogue box that pops up:

    =$C2="Duplicated"

    then click on the Format button, then the Fill tab and choose your colour. Then click on OK twice and Excel will adjust the cell references to suit the selected cells.

    Hope this helps.

    Pete

+ 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. Compare, Find and Highlight Duplicates in multiple sheets
    By EvilleT in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2013, 08:42 PM
  2. Replies: 9
    Last Post: 04-18-2013, 03:54 PM
  3. [SOLVED] Compare column on separate sheets in workbook and highlight differences
    By specialk610 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2013, 03:57 PM
  4. compare list and highlight
    By Blake 7 in forum Excel General
    Replies: 6
    Last Post: 11-10-2010, 06:44 AM
  5. Compare two sheets and highlight/mark differences
    By richarddd in forum Excel General
    Replies: 4
    Last Post: 04-03-2009, 09:54 AM

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