+ Reply to Thread
Results 1 to 3 of 3

Comparing 2 Columns

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Comparing 2 Columns

    Hi I have a sheet in which I need to compare and highlight rows where the values in 2 of the columns are identical.

    So to explain:

    Name Number Notes
    ABC 1 Note 1
    XYZ 3 Note 2
    ABC 1 Note 3
    LMN 3 Note 4
    ABC 8 Note 1
    XYZ 3 Note 6
    XYZ 7 Note 7


    In this example I would want excel to highlight the entire rows where ABC and the number 1 and XYZ and the number 3 as they are the same- but they need to be both the same in the same row.
    The 3rd column, "Notes" in my example is not to be considered in the comparison.

    Hope this is clear!

    Thanks for your help
    Nick

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Comparing 2 Columns

    Use Condtional Formatting, however ALL the highlighting will be the same, ie you wont get ABC 1's all one colour and all XYZ 3's another colour.

    Select A2:C8

    Conditional Formatting
    New Rule
    Use a formula to determine...

    =(COUNTIFS(A$2:A$8,A2,B$2:B$8,B2)>1)

    Format as required
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-02-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Comparing 2 Columns

    Same colour is fine, will give it a go thanks for your help.

+ 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. [SOLVED] Comparing Multiple Columns In 1 Sheet to Columns in Another
    By anonymous12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2018, 11:40 AM
  2. Create Columns Comparing differences in Other Columns
    By mvannucci in forum Excel General
    Replies: 1
    Last Post: 08-02-2015, 07:56 PM
  3. Replies: 3
    Last Post: 04-23-2014, 05:14 PM
  4. Replies: 2
    Last Post: 04-18-2013, 02:03 PM
  5. Replies: 2
    Last Post: 03-15-2013, 05:25 PM
  6. Replies: 1
    Last Post: 02-05-2013, 10:56 AM
  7. [SOLVED] IF AND or SUMIFS comparing Months from 2 date columns and text from 2 other columns
    By jrochet in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-22-2012, 11:06 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