+ Reply to Thread
Results 1 to 4 of 4

Need help - comparing 2 columns and highlight dupes in one needed

  1. #1
    Registered User
    Join Date
    09-29-2008
    Location
    NJ
    Posts
    2

    Need help - comparing 2 columns and highlight dupes in one needed

    HI,

    Please see the example that I need help with. Two columns (A & B).

    A B
    1 1
    1 3
    2 5
    2
    3
    3
    4
    4
    5
    5

    I would like to highlight all the cells in Col A that are exact matches to Column B – I cannot use the duplicate function since there are duplicate numbers in Column A. Column A has many more numbers than Column B.

    Can anyone suggest a way to get this result?

    Thanks.
    ML28

  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,723

    Re: Need help - comparing 2 columns and highlight dupes in one needed

    Select all the cells in column A, click on Conditional Formatting | New Rule | Use a Formula... , then enter this formula in the dialogue box:

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

    then click the Format button, choose the Fill tab and choose your colour. Then OK your way out.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-29-2008
    Location
    NJ
    Posts
    2

    Re: Need help - comparing 2 columns and highlight dupes in one needed

    Thank you, Pete. I shall try and inform you if it worked or not by Monday. Thank you again.

  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,723

    Re: Need help - comparing 2 columns and highlight dupes in one needed

    It will only take you two minutes !!

    Have a good weekend.

    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. VBA Highlight Dupes in a Group
    By PJ Karaffa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 09:13 PM
  2. Find and highlight ALL dupes in a single row
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2011, 01:38 PM
  3. Comparing 2 worksheets against 1 to find dupes & deltas
    By Raisedwell in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-19-2010, 06:58 PM
  4. Quick method of comparing two columns and highlight differences
    By PRodgers4284 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2010, 11:03 AM
  5. Comparing values in two columns, and highlight if not equal
    By vmc62 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-14-2008, 09:23 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