+ Reply to Thread
Results 1 to 14 of 14

Make a list of exact match duplicates in large spreadsheet

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Make a list of exact match duplicates in large spreadsheet

    Hello,
    I have a very large list of part numbers (26k+) that I need to load into my system at work. I can't load duplicates into the system which this list contains. I do however need to keep the duplicates and add a prefix.
    I've tried the simple conditional formatting of highlighting duplicate cells but I have run into a problem. Many of the part numbers contain the same series of numbers forcing them to highlight whether they are duplicate or not.
    For example, many numbers begin with 012 or 022, so the highlighted cells would include:

    0120
    0123
    012
    022
    0220
    0224

    I have several numbers that are not duplicates as a result. Thank you for your help.

  2. #2
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Make a list of exact match duplicates in large spreadsheet

    If all your data starts in A2 use this formula in B2

    =countif($A$2:A2,A2) and copy it down. After copying it down, copy and paste vales to remove the formula

    When it finds a new number it will return 1, second time 2 etc this can also help with adding a prefix.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Make a list of exact match duplicates in large spreadsheet

    Which formula did you used in CF rules?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Make a list of exact match duplicates in large spreadsheet

    I just clicked on conditional formatting, highlight cell rules, highlight duplicate cells

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Make a list of exact match duplicates in large spreadsheet

    Try in CF rules the suggested by kenny.fsw formula like this..

    =COUNTIF($A$2:A2,A2)>1

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Make a list of exact match duplicates in large spreadsheet

    what prefix do you want to add? it should be possible to do it all in one go with a formula, eg to add a,b,c....to front of those which are duplicates
    something like
    =IF(COUNTIF(A:A,A1)>1,CHAR(COUNTIF($A$1:A1,A1)+64)&TEXT(A1,"0"),TEXT(A1,"0"))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Make a list of exact match duplicates in large spreadsheet

    I don't think that worked, I'll give the results I very well could have done something wrong.
    I attached the results in its own spreadsheet
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Make a list of exact match duplicates in large spreadsheet

    This is the entire list of part numbers, sorry I should have attached sooner.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Make a list of exact match duplicates in large spreadsheet

    Quote Originally Posted by martindwilson View Post
    what prefix do you want to add? it should be possible to do it all in one go with a formula, eg to add a,b,c....to front of those which are duplicates
    something like
    =IF(COUNTIF(A:A,A1)>1,CHAR(COUNTIF($A$1:A1,A1)+64)&TEXT(A1,"0"),TEXT(A1,"0"))
    I'm not sure which prefix I'm going to use, my plan was to add a 2 or 3 letter prefix based on different vendors for the same part number.

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Make a list of exact match duplicates in large spreadsheet

    results?results of what there are no formulas or conditional formatting in that workbook

  11. #11
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Make a list of exact match duplicates in large spreadsheet

    I'm sorry, I used the formula:

    =COUNTIF($A$2:A2,A2)>1

    and what I posted is what was pulled out as "TRUE" values from the Larger list.

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Make a list of exact match duplicates in large spreadsheet

    let's see this
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Make a list of exact match duplicates in large spreadsheet

    After looking at it, I sorted the numbers by value, hoping to see the duplicates next to each other. While there are some right next to each other, there are some by themselves.

    What I'm really wanting to do is to somehow group all of the duplicates together within the part number column (column A) so that I can edit them easily.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-29-2013
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Make a list of exact match duplicates in large spreadsheet

    I attached my original results when I tried this yesterday. I came to this by clicking conditional formatting --> Highlight cell rules --> Duplicate Values. Then I sorted column A by cell color (light red) to be on top, then by column A value. When you look you will see some values do not have a duplicate, I'm confused as to why this is.

    I would really like all of the duplicates grouped together in the same column as the other part numbers. kind of like it's shown in the attached file.
    Attached Files Attached Files

+ 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] Problem Using LARGE formula with Index/Match to pull values when there are Duplicates
    By BDavis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-11-2014, 02:23 PM
  2. Match/Large with Duplicates (I want to include the duplicates)
    By Willie68 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-13-2013, 01:10 PM
  3. Replies: 10
    Last Post: 07-10-2012, 03:01 PM
  4. [SOLVED] A whole AND exact key word match in a large text stream
    By ddgacic in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 06-11-2012, 05:39 AM
  5. Replies: 3
    Last Post: 03-09-2011, 07:00 PM

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