+ Reply to Thread
Results 1 to 10 of 10

How to remove both duplicate and corresponding cells

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    20

    How to remove both duplicate and corresponding cells

    Hello,

    I haven't been able to find a solution to this problem I'm having. I have two lists of emails (one with first name, last name, and email; the other with just email).

    When merged together, one shows a list of all of my customers, the other shows an email list of customers that currently own my product. I want remove the emails of the customers that own the product, and remove them from the original list (please see attached).

    My problem is that I can easily remove the duplicate emails, but can't figure out how to also delete the row with their first name, last name, and email (without spending a great deal of time doing this manually).

    Any help would be greatly appreciated. Thank you!

    Adam
    Attached Files Attached Files
    Last edited by Adam845; 01-24-2012 at 02:24 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to remove both duplicate and corresponding cells

    hi Adam845
    welcome to excel forum, so how do we know which ones have your product and need to be deleted ?
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    01-16-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    20

    Re: How to remove both duplicate and corresponding cells

    Quote Originally Posted by pike View Post
    hi Adam845
    welcome to excel forum, so how do we know which ones have your product and need to be deleted ?
    Hi pike,

    The customers that own the product are in the rows with just the email address. So, I need to figure out how remove both that row and the row above with their first name, last name, and email address, ultimately resulting in a list of customers that don't own our product yet. I've been deleting both rows manually for months (extremely time consuming), but I'm sure there is an easier way to do it. Thanks for the response; I hope that clarifies my issue.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to remove both duplicate and corresponding cells

    aaarh that will be

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-16-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    20

    Re: How to remove both duplicate and corresponding cells

    Quote Originally Posted by pike View Post
    aaarh that will be

    Please Login or Register  to view this content.
    Thanks for this, pike.

    Unfortunately the code doesn't seem to be working on my end, though I could be entering it incorrectly. These are the steps I took:

    Copy the Excel VBA code that you want to use
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste
    To run the Excel VBA code:

    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button

    After running the macro it deleted some of the rows with email addresses, but I was still left with some customers that had the product, but only the row with their email address (e.g. from my example "Randall Turner") and it deleted others that I still needed to contact (e.g. from my example "John Carpenter").

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to remove both duplicate and corresponding cells

    so only the active sheet blank cell row?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-16-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    20

    Re: How to remove both duplicate and corresponding cells

    Quote Originally Posted by pike View Post
    so only the active sheet blank cell row?

    Please Login or Register  to view this content.
    Close... Thanks! But that just removes the row with the email addresses. I've attached a spreadsheet with the desired result; hopefully that helps.
    Attached Files Attached Files

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to remove both duplicate and corresponding cells

    LOL.. left out a -1

    Just couldnt see it was missing
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-16-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Office 365
    Posts
    20

    Re: How to remove both duplicate and corresponding cells

    Quote Originally Posted by pike View Post
    LOL.. left out a -1

    Just couldnt see it was missing
    Please Login or Register  to view this content.
    Awesome! Thank you so much. You just made my day!

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to remove both duplicate and corresponding cells

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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