+ Reply to Thread
Results 1 to 2 of 2

Compare Column A to Column B then highlight/format any duplicates

  1. #1
    Registered User
    Join Date
    03-17-2014
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    1

    Compare Column A to Column B then highlight/format any duplicates

    Excel Gurus,

    Please help me find the solution for this...

    Trying to compare a list of names in 2 columns. Column A has a short list of names I'm looking for in the long list of Column B.
    How can you create the macro that does...
    If any value in Column A matches any value in Column B
    Then format (bold, highlight, etc...)

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Compare Column A to Column B then highlight/format any duplicates

    you can just use conditional formatting if needed - did you want a macro particularly ? i do not have the skill for VBA yet

    heres how to use normal conditional formatting

    =COUNTIF($A$1:$A$100,B1)>0

    I have used a range of 1 to 100 change as required

    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>

    B1:B100


    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:

    =COUNTIF($A$1:$A$100,B1)>0

    Format… [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. HELP! Compare cells of a column to same column in different workbook and highlight diffs
    By bradleyherron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2014, 10:18 AM
  2. highlight duplicates in column when selected
    By Doug W in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2011, 10:43 AM
  3. Compare 2 column and highlight
    By tanshida1201 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-04-2011, 11:15 AM
  4. compare two column & highlight
    By johncena in forum Excel General
    Replies: 5
    Last Post: 04-21-2010, 05:48 AM
  5. Excel 2007 : Find and highlight duplicates in column
    By mbesspiata in forum Excel General
    Replies: 5
    Last Post: 08-26-2009, 07:31 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