+ Reply to Thread
Results 1 to 4 of 4

Comparing two columns for duplicates

  1. #1
    Registered User
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    Office 2016
    Posts
    7

    Comparing two columns for duplicates

    I'm trying to get a comparison of two different columns to find duplicate values that are only duplicated in one of the columns. I have a dataset that has lots of duplicate entries in the Database field as we have multiple sites on each database. I'm trying to identify and filter out any sites that have already migrated onto the newer version based on this data. I have a list of the database names that are on the new site but I need to know how I can highlight the databases in column A that are showing up in column C. I've tried various attempts at conditional formatting for duplicates, this highlights any duplicates in the sheet which is not helpful, and formulas to look in column A and if the values in A are in column C show true. I can get it to work on a single cell but as soon as I copy it down it doesn't work. The formula I was attempting to use is =IF(A2=C:C,TRUE) and then drag that down. It shows true for A2 which does have a duplicate but it doesn't show any more True values for any other matches.

    I've attached a sample workbook which is representative of what I'm trying to do. I've recreated my attempt at an if statement and you can see how when it was copied down it did not work.

    Any help with this would be hugely appreciated
    Attached Files Attached Files
    Last edited by mattdykes; 02-19-2021 at 12:59 PM. Reason: Solved

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,879

    Re: Comparing two columns for duplicates

    Try this:

    =IF(ISNA(MATCH(A2,$C$2:$C$13,0)),FALSE,TRUE)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    Office 2016
    Posts
    7

    Re: Comparing two columns for duplicates

    Quote Originally Posted by AliGW View Post
    Try this:

    =IF(ISNA(MATCH(A2,$C$2:$C$13,0)),FALSE,TRUE)
    AMAZING! Thank you so much

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,879

    Re: Comparing two columns for duplicates

    You're welcome.

+ 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. Comparing data in two columns with duplicates
    By Simon2016 in forum Excel General
    Replies: 1
    Last Post: 05-02-2016, 05:42 AM
  2. Comparing Columns to Match Duplicates ?
    By zooba72 in forum Excel General
    Replies: 11
    Last Post: 07-16-2015, 01:43 AM
  3. Find duplicates by comparing 3 columns
    By nethravathik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2013, 07:40 AM
  4. Comparing two columns for duplicates
    By michaelrusk in forum Excel General
    Replies: 1
    Last Post: 07-16-2012, 09:18 AM
  5. comparing multiple columns for duplicates
    By shuddle in forum Excel General
    Replies: 3
    Last Post: 12-20-2011, 12:08 PM
  6. Duplicates in comparing two columns
    By sammyd323 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2007, 10:50 AM
  7. Replies: 0
    Last Post: 02-15-2006, 10:35 AM

Tags for this Thread

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