+ Reply to Thread
Results 1 to 11 of 11

Need a list of all duplicates in spread.

  1. #1
    Registered User
    Join Date
    10-29-2014
    Location
    Portland, OR
    MS-Off Ver
    MS Office 2013
    Posts
    54

    Need a list of all duplicates in spread.

    Hi my name is Tommy,
    I'm a fairly regular poster here and I've come across an issue I'm not quite sure how to solve.
    I have a spread with a few columns of my products. I need to find all of the duplicates in one column... and somehow paste them into another column.
    I know how to erase duplicates under the "Data" tab, but I need to know what I'm erasing so I can remove it from my website. This spread is over 30,000 rows so I can't do it all manually.
    I'd appreciate any help or input, thank you in advance!

    Happy Holidays!
    -Tommy Bailey
    Show appreciation by clicking "Add Reputation"

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Need a list of all duplicates in spread.

    Assuming your data with duplicates start in A1, put this in B2. Adjust the number of rows it is looking at to suit your needs (currently going down to row 100). it is an array formula andf must be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    then copy down until blank cells are seen

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-29-2014
    Location
    Portland, OR
    MS-Off Ver
    MS Office 2013
    Posts
    54

    Re: Need a list of all duplicates in spread.

    Maybe I'm misreading but I guess I'm not activating the formula properly. Maybe you can tell me why by looking at my spread.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Need a list of all duplicates in spread.

    or you can do it with vba.
    this will copy all duplicates from sheet1 column A onto sheet 2 and if you have other data in column B it will copy that over as well.
    Attached Files Attached Files
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Need a list of all duplicates in spread.

    You hadn't set the array formula properly. Neither had you adjusted the ranges. I am trying to do this now for you, but with 30,000 rows, it might take a time!. I'll keep the laptop on while i drive home. bit in the emantime you could try the VBA solution if you like.

  6. #6
    Registered User
    Join Date
    10-29-2014
    Location
    Portland, OR
    MS-Off Ver
    MS Office 2013
    Posts
    54

    Re: Need a list of all duplicates in spread.

    I've tried the VBA solution as well... It works in small scale but I'm running into the same issue, I have so many rows that Excel is just ghosting out.
    I really do appreciate the help, you are awesome!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Need a list of all duplicates in spread.

    My Pc crashed. I'll try on another machine later...

  8. #8
    Registered User
    Join Date
    10-29-2014
    Location
    Portland, OR
    MS-Off Ver
    MS Office 2013
    Posts
    54

    Re: Need a list of all duplicates in spread.

    I've figured out a solution. For any viewers that are curious here's how I did it.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Need a list of all duplicates in spread.

    try changing
    Dim nextrow As Integer
    to
    Dim nextrow as long

    integer only goes to 32,767

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Need a list of all duplicates in spread.

    Hi Tommy,

    I think a very quick and simple Pivot Table will work for this problem. No formulas or VBA needed. After adding a column name of Product I did a Pivot Table and a count of each Product ID. Then using a Row Filter only showed the counts that were greater than one. This is the list I think you want. See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Need a list of all duplicates in spread.

    Well, for a bit of a laugh, I left the array formula running... overnight. It did work (or rather it was till working), when I put it out of its misery this morning. the Pivot Table approach will give you a unique list of duplicates and is (by far) the best. However - to prove a (small) point here was some of the work in progress, just before I killed it!!

    So slow.jpg

+ 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. Replies: 3
    Last Post: 04-19-2014, 06:10 PM
  2. Replies: 1
    Last Post: 04-19-2013, 02:25 AM
  3. Replies: 2
    Last Post: 08-28-2012, 10:41 PM
  4. Linking spread sheets to a master list
    By Shsantos in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2010, 03:18 PM
  5. [SOLVED] spread list for optimal printing
    By vince in forum Excel General
    Replies: 1
    Last Post: 01-25-2006, 10:35 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