+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Finding, pairing and preventing duplicates

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    New York, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Finding, pairing and preventing duplicates

    Hello everyone,

    I have a complicated excel problem that I need help with please.

    I have a spreadsheet with multiple columns and rows of information. Basically what I want to do is to check that no row contains exactly the same information, so what I have done is that I created and extra column that generates a sort of unique "code" for every row by putting all the information for the other columns together in one cell. For example, if the product number is 3, the color is red, and the price is 100$, the code generated is 3red100. Then I did Conditional formatting and highlighted the duplicates. So far all is well, but I can't figure out how to do what I want next, which is:
    - Have an alert window pop up and tell me on what row I can find the duplicate when a value that has been generated already exists
    - Make it impossible to save a row that is a duplicate onto the spreadsheet

    Thank you in advance!

  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: Finding, pairing and preventing duplicates

    you could add another helper column that uses a vlookup (with some absoluting) to check for duplicates, and then use match() in a "checking" cell that will tell you the row number of the duplicate?

    if uou upload a sample, i can help set something up for you?
    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
    06-13-2012
    Location
    New York, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Finding, pairing and preventing duplicates

    Thank you for the tip! Though I'm not sure how I would go about doing that, One column with match and one with vlookup?
    I have attached a sample of the spreadsheet If you don't mind helping me some more.
    Attached Files Attached Files

  4. #4
    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: Finding, pairing and preventing duplicates

    in T2, put this formula, and then copy down...
    =IF(ISERROR(MATCH(E2,E3:$E$11,0)),"",MATCH(E2,E3:$E$11,0)+ROW(A2))

  5. #5
    Registered User
    Join Date
    06-13-2012
    Location
    New York, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Finding, pairing and preventing duplicates

    Thank you! It's working well for the top rows, but the bottom one is showing a row that doesn't have any information in it. What do you recommend I do to fix that?

+ Reply to 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