+ Reply to Thread
Results 1 to 8 of 8

Formula to see if row is duplicated in table

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Formula to see if row is duplicated in table

    Hi and thanks for any help that you can provide. I need to insert a column to return the value yes if any row is the exact duplicate of another row within the whole table. I'm trying to do this using with a formula and not conditional formatting. Is there a way to do this?

    LastName FirstName MiddleName BirthDt
    Jones Tom 2/1/1950
    smith sam B 5/1/1943
    SIMPSON EVERETT T 1/2/2014
    SIMPSON JAMES 3/4/2012
    Simpson EverETT T 8/1/2014


    Thanks for at least taking the time to read my problem.

  2. #2
    Registered User
    Join Date
    04-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Formula to see if row is duplicated in table

    In a new column say column E you could concatenate all the data in columns A to D and then in column F you could use the countif function somehting like =COUNTIF($F$2:$F$100,F2)

  3. #3
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Re: Formula to see if row is duplicated in table

    Quote Originally Posted by chrispittelli View Post
    In a new column say column E you could concatenate all the data in columns A to D and then in column F you could use the countif function somehting like =COUNTIF($F$2:$F$100,F2)
    That would be a round a bout way because then I would have to remove the ones that return a value more than 1. I'm trying to do this in power query by maybe adding a custom column.

    I feel like there should be a more direct route of doing this.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Formula to see if row is duplicated in table

    Does it matter whether "yes" or number > 1 indicates a duplicate: What is your idea of a"custom column"?

    The Concatenation is probably the easiest way to achieve what you want.

  5. #5
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Re: Formula to see if row is duplicated in table

    Quote Originally Posted by JohnTopley View Post
    Does it matter whether "yes" or number > 1 indicates a duplicate: What is your idea of a"custom column"?

    The Concatenation is probably the easiest way to achieve what you want.
    I'm trying to remove the distinct rows. Any row that has the same Last Name, First Name, Middle Name, and Date of Birth values as another row in the table I wan't to keep. So instead of removing duplicates, I'm removing rows that aren't duplicates. Does that make sense?

    I'm not sure how familiar you are with power query but I can add custom columns within power query. However there isn't a way to replicate a countif formula in power query.

    Thanks!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Formula to see if row is duplicated in table

    So filter on results that are 1 and copy/paste.

  7. #7
    Registered User
    Join Date
    07-09-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    52

    Re: Formula to see if row is duplicated in table

    Quote Originally Posted by JohnTopley View Post
    So filter on results that are 1 and copy/paste.
    That's an option but it's not a good option being that this is a table that I'm connected to with a live database. Which means every time you refresh the workbook it will delete any columns that you manually add for a calculation. I'd like to be able to do this within the query itself. If that makes sense.

  8. #8
    Registered User
    Join Date
    04-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Formula to see if row is duplicated in table

    You could copy and paste the table to another sheet. Highlight the data on your new sheet then use the built in function of remove duplicates

+ 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] Formula to Sum Up Values from duplicated and add next to Corresponding Unique record
    By Franky alta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2015, 08:20 AM
  2. Filtering out duplicated time frames in pivot table
    By Chris.Williams81 in forum Excel General
    Replies: 9
    Last Post: 04-29-2015, 04:15 AM
  3. [SOLVED] A table without duplicated information
    By TheMightyFederer in forum Excel General
    Replies: 2
    Last Post: 09-04-2012, 01:28 PM
  4. Replies: 6
    Last Post: 05-30-2012, 09:54 AM
  5. Formula to hightlight duplicated entry
    By Paitry in forum Excel General
    Replies: 4
    Last Post: 10-08-2009, 06:48 PM
  6. Duplicated lines in a data table
    By kosciosco in forum Excel General
    Replies: 0
    Last Post: 06-08-2006, 12:29 PM
  7. duplicated data in pivot table
    By Rob B in forum Excel General
    Replies: 4
    Last Post: 01-31-2006, 02:20 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