+ Reply to Thread
Results 1 to 8 of 8

Find duplicate data

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Sunshine Coast
    MS-Off Ver
    Excel 2007
    Posts
    9

    Find duplicate data

    Hi, This should be simple. I have data (eg PPL0106AU) in columns A (Rows 2 to 104) & C (Rows 2 to 303) and need to identify which entries are in BOTH columns. I've entered in column B: =IF(MATCH(A2,C$2:C$303),A2,"No")
    This forumula is resulting in a duplicate of column A in column B. Help with the formula please.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find duplicate data

    I would use =vlookup(A2,$C$2:$C$303,1,0)

    You could perhaps use Conditional Formatting for this? Use that in a New Rule, and set the color, it will highlight the matches
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Sunshine Coast
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Find duplicate data

    Thanks, I entered the suggested formula in column B and dragged it down. In every case it is returning an error value #N/A. Suggestions why?

  4. #4
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Find duplicate data

    Paste the below code in B2 and copy down. This will display the number of duplicates. If none will be blank. FDibbins code is showing the NA# because of the ones that do not have duplicates so it just needs to be adjusted to show blank if no duplicate's.

    Displays duplicate count.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by playaller; 04-27-2014 at 07:49 PM.


    Shelton A.
    If Helpful, Add Reputaion!

  5. #5
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Find duplicate data

    Please Login or Register  to view this content.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find duplicate data

    Quote Originally Posted by Jayne View Post
    Thanks, I entered the suggested formula in column B and dragged it down. In every case it is returning an error value #N/A. Suggestions why?
    This is indicating that there are no matches

  7. #7
    Registered User
    Join Date
    08-20-2012
    Location
    Sunshine Coast
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Find duplicate data

    Thanks FDibbins - I tested again and yes, when there is a match it does work.
    And thank you ThirtyTwo as well, that one also works well.
    Cheers all.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find duplicate data

    Great, maybe adjust to this, to eliminate the error messages...
    =iferror(vlookup(A2,$C$2:$C$303,1,0),"")

    If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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. Find Duplicate data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2009, 03:20 PM
  2. Duplicate data two field find the duplicate data
    By verse in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2008, 12:09 AM
  3. [SOLVED] How to find duplicate data in two tables,then listing it?
    By Doeu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2006, 07:40 AM
  4. [SOLVED] Find Duplicate Data in Two Lists
    By stacy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2005, 05:05 PM
  5. Find duplicate data within a column.
    By Steve Franklin in forum Excel General
    Replies: 2
    Last Post: 05-03-2005, 10: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