+ Reply to Thread
Results 1 to 4 of 4

Macro or forumla delete duplicate rows from two tabs in spreadsheet?

  1. #1
    Registered User
    Join Date
    12-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro or forumla delete duplicate rows from two tabs in spreadsheet?

    I have a large spreadsheet with two tabs - Tab A. Prospects (6,000 rows), Tab B. Clients (9,000 rows) which contain client names and numbers. I have included a small sample of the spreadsheet.

    I am trying to cull down Tab A. Prospects to not include any data which occurs in B. Clients:

    •If a Client No, Search Key or Client Name from Tab B. Clients also occurs in Tab A. Prospects, then I want to delete it from Tab A. Prospects.
    •Duplications of data in A. Prospects is fine, so long as none of the data also appears in Tab B. Clients

    Thanks in advance for your help - if there is any extra info you need please let me know!
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro or forumla delete duplicate rows from two tabs in spreadsheet?

    Hi Jenta,

    Try this:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Press ALT + F11 to open the Visual Basic Editor.

    Open a macro-enabled Workbook or save your Workbook As Macro-Enabled

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code under it

    And, you should be ready to go

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Thumbs up Re: Macro or forumla delete duplicate rows from two tabs in spreadsheet?

    Oh I could jump up and down I'm so happy this worked! Thank you so much

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro or forumla delete duplicate rows from two tabs in spreadsheet?

    You're welcome! Thanks for the rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Delete all duplicate rows in spreadsheet
    By jlnguyen54 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 03-14-2013, 01:03 PM
  2. Macro Delete Duplicate Rows with Exception
    By smmeader in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-20-2012, 12:37 AM
  3. [SOLVED] Delete Duplicate Rows Macro Question
    By elfmajesty in forum Excel General
    Replies: 2
    Last Post: 12-02-2010, 08:22 AM
  4. Replies: 3
    Last Post: 04-29-2006, 06:40 PM
  5. [SOLVED] How do I delete duplicate rows in an excel spreadsheet?
    By jsm in forum Excel General
    Replies: 4
    Last Post: 05-14-2005, 03:06 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