Closed Thread
Results 1 to 9 of 9

how to identify duplicates between 2 spreadsheets?

  1. #1
    Registered User
    Join Date
    10-08-2009
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    5

    how to identify duplicates between 2 spreadsheets?

    I need to compare 2 spreadsheets daily to find numbers that match and which ones are left over.

    The first list of numbers would be in column A in one spreadsheet and the second list in column A of another spreadsheet.

    Is there a quick way to identify matching numbers so I don't have to eyeball the entire list, highlighting each match as i work my way down?

    I appreciate any ideas!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to identify duplicates between 2 spreadsheets?

    You can use Conditional Formatting. I don't know how to get INTO the CF section of Excel 2007, but in Excel 2003 it would be a case of applying this logic.

    1) On Sheet 2, highlight the values in column A
    2) With the data highlighted, Sheet2Data into the Name box (just to the left of the formula bar) to give that whole set of data a reference name

    3) On sheet1, highlight the values in column A
    4) With the data highlighted, Sheet1Data into the Name box (just to the left of the formula bar) to give that whole set of data a reference name

    5) Select Format > Conditional Formatting
    6) Select Condition1: Formula Is: =COUNTIF(Sheet2Data,A1)>0
    7) Click on Format... Patterns: Yellow color
    8) OK > OK

    All the values on sheet1 that have a match on sheet2 will be highlighted in yellow.

    Repeat the steps 5-8 above on sheet2, but use the Named Range Sheet1Data in the CF formula.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-08-2009
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: how to identify duplicates between 2 spreadsheets?

    Thank you for the help. This almost works. I understand naming the cell ranges for the formula but when I enter the formula in the CF it doesn't highlight correctly.

    Example:

    Sheet1 Column A
    123
    456
    789

    Sheet2 Column A
    012
    123
    456
    789

    I need the matching numbers to be highlighted on both sheets and the numbers with no matches be (012 in the example) blank.

    I am using Excel 2007.

    Thanks again!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to identify duplicates between 2 spreadsheets?

    The attached sheet is a quicker formula:

    =ISNUMBER(MATCH(A1,Sheet2Data,0))
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: how to identify duplicates between 2 spreadsheets?

    sandersonsea, please ensure you post your threads in an appropriate forum - thread moved from Tips & Tutorials to Excel General.

  6. #6
    Registered User
    Join Date
    10-08-2009
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: how to identify duplicates between 2 spreadsheets?

    Thank you so much! I appreciate the time you took to help me. This is going to save so much time!

    I will also post my questions in the general forum, sorry for the mistake.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to identify duplicates between 2 spreadsheets?

    Glad we could help you.

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].



    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

  8. #8
    Registered User
    Join Date
    12-16-2019
    Location
    Pakistan
    MS-Off Ver
    2007
    Posts
    1

    Re: how to identify duplicates between 2 spreadsheets?

    How Can We Find Duplicate File In 2 Deffrent Sheets with Multiple Coloumn
    Attaching File For Reffrence Please Check it sir

  9. #9
    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
    79,416

    Re: how to identify duplicates between 2 spreadsheets?

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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