+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Deleting Rows with matching records

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    1

    Deleting Rows with matching records

    I'm hoping somebody can help me out with a problem that I'm sure should be somewhat simple but I don't have the excel knowledge to figure it out.

    If Column A, B, and C in sheet 1 matches what is in Column A, B, and C on sheet 2, I need to completely delete the rows with matching data on sheet 1. I've tried combing both sheets into one spreadsheet and using the "remove duplicates" function, but that does not delete both records, it only deletes one.

    To further explain, sheet 1 is a total database of customers. Sheet 2 has only those customers who have responded to a particular ad. I need to remove the customers who have responded from the total database, leaving only those customers whom have not responded.

    Any help is greatly appreciated.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Deleting Rows with matching records

    Try adding a helper column to Sheet1 with formula like so in D1, copied down

    =COUNTIFS(Sheet2!A:A,A1,Sheet2!B:B,B1,Sheet2!C:C,C1)>0

    All the ones with TRUE are duplicates of Sheet2 rows.

    You can filter for TRUE on this column and delete the rows.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-06-2004
    Posts
    2

    Re: Deleting Rows with matching records

    I have a similar question. I have columns of data, i.e.
    Col A Col B Col C
    test 1 3
    car 2 3
    testa 3 5
    testb 4 4
    clock 9 9

    I want to select all rows which contains *test* from Column A and then delete that row.
    i used the above example with =COUNTIF but that only gives me a total of all cells which match the condition *test*. how can I return a TRUE value so I can sort and delete?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Deleting Rows with matching records

    Welcome to the forum,

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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