+ Reply to Thread
Results 1 to 2 of 2

Compare 2 columns and delete rows containing non-sorted duplicates

  1. #1
    Registered User
    Join Date
    05-06-2013
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2011
    Posts
    1

    Compare 2 columns and delete rows containing non-sorted duplicates

    I have 15000 rows and two columns, A and B. If a cell anywhere in column B matches a cell anywhere in column A, I want to delete that record in column A. I'm not sure if there is a formula for this and i don't understand references to DIM and SUb in various macro posts. I am very familiar with =() etc in a formula but not this macro coding. If it helps to put things in context I need to allocate postcodes (column A) to new salespeople as they come on board - one per salesperson. Each week I want to paste a list of the previous week's allocations (column B) and remove these from column A so they don't get reallocated. Any help much appreciated. Thanks, Richard.

  2. #2
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,157

    Re: Compare 2 columns and delete rows containing non-sorted duplicates

    Do you have a sample file that you can upload?

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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