+ Reply to Thread
Results 1 to 3 of 3

Deleting duplicate numbers between two worksheets

  1. #1
    Registered User
    Join Date
    05-24-2018
    Location
    Windsor,Ontario
    MS-Off Ver
    Microsoft Office 2003
    Posts
    1

    Deleting duplicate numbers between two worksheets

    I'm trying to get a vba code that would compare the numbers in the WorkOrder column in the WO worksheet to the numbers in the SO# column in the SO worksheet and delete any duplicate numbers that are present in both columns from the SO# column and then display a message saying how many unique values are left in the column. In the WO sheet I have a dataset consisting of about 70,000 numbers and in the SO sheet I have a dataset of about 5,000 numbers and the code I wrote doesn't run for this large dataset as excel stops responding. Any help would be appreciated. Capture.5PNG.PNG Capture6.PNG
    Attached Files Attached Files

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Deleting duplicate numbers between two worksheets

    Not too sure, so I will make the subs in steps :

    Please Login or Register  to view this content.
    The steps :
    1. Run sub Main1
    2. Run sub Chk1 --> this will check wheter macro calculation is same with using Excel's formula
    3. Manually compare the result between both methods
    3. Run sub Chk2 --> this will convert the Excel's formula to value (we will delete a lot of rows, so converting to value will make the process much faster)
    4. Run sub Main2 --> this will delete duplicated values

    If this is what you actually wanted, then for the next job, just run sub Main1, then followed by sub Main 2 (no need to run Chk1 and Chk2 anymore)
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Deleting duplicate numbers between two worksheets


    No duplicate in attachment !

    Better is to post a before workwook with duplicates at least and an after workbook as expected result …

+ 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] Deleting Multiple Worksheets Except Named Worksheets
    By phelbin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-10-2016, 04:07 PM
  2. Deleting duplicate numbers if found in an array
    By MildewMan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2015, 02:20 PM
  3. Replies: 0
    Last Post: 07-26-2012, 02:09 PM
  4. Deleting duplicate numbers (both original and new ones)
    By zozoman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2011, 04:06 PM
  5. VBA Macro to process duplicate phone numbers in 3 worksheets
    By delforum in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-07-2011, 11:02 AM
  6. Deleting rows matching numbers from numbers in column
    By cyki in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-11-2008, 09:16 AM
  7. Deleting Duplicate Account Numbers
    By Lmsloman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2006, 02:18 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