+ Reply to Thread
Results 1 to 4 of 4

If cells in Column of one sheet match those in same column of another sheet - delete row ?

  1. #1
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    If cells in Column of one sheet match those in same column of another sheet - delete row ?

    Hi,

    I have an excel file with multiple sheets of references. What I'm after is a macro that would search through a list of references in column A of sheet 4, and if it finds the same references in Column A of sheet1 - then delete the entire rows its found in sheet1.

    Does anyone know how I might go about this?

    Any help you can provide would be very much appreciated
    Last edited by BPSJACK; 07-28-2014 at 06:26 AM.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: If cells in Column of one sheet match those in same column of another sheet - delete r

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: If cells in Column of one sheet match those in same column of another sheet - delete r

    That's brilliant thanks!

    Is there any way to expand on this to search for matches over two columns. So if any adjacents cells in columns A&B in sheet4 match those in sheet1 then the row in sheet1 would be deleted. For example:

    Sheet1 A B Sheet4 A B
    123 001 123 002
    124 003 124 002
    delete row 125 001 125 001

    Is this at all possible?

  4. #4
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: If cells in Column of one sheet match those in same column of another sheet - delete r

    I think I've solved it. The following sub seems to do the trick.

    Please Login or Register  to view this content.

+ 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] Auto fill column k from one sheet to another if two cells match?
    By synses in forum Excel General
    Replies: 6
    Last Post: 06-19-2013, 05:36 PM
  2. [SOLVED] drag down rows that match column in different sheet, but skip every 3 cells in column
    By mbkr29 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2013, 01:43 PM
  3. Replies: 2
    Last Post: 07-27-2012, 06:01 PM
  4. Match column from sheet 2 to sheet 1 and copy rows if match exists.
    By GravityInvert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2008, 01:42 PM
  5. Copying a column to a new sheet so that cells match.
    By Nadeem in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-11-2005, 10:05 AM

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