+ Reply to Thread
Results 1 to 4 of 4

Compare 2 columns delete rows with matching values

  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46

    Compare 2 columns delete rows with matching values

    Hi Guys,
    Need a hand with something please.

    I've got two workbooks, Workbook1 with a list in column a and Workbook2 with a list in column F.

    I want to compare the cells in these columns and delete the entire row in Workbook2 if there is a match.

    Any ideas?

    Thanks in advance
    Last edited by mattmac; 02-09-2009 at 06:50 AM.

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Compare 2 columns delete rows with matching values

    Do a vlookup .. to look if values in column F is present in column A of Workbook1.


    Rows where u get #N/A are not match.... and other rows have matching data in workbook 1..


    Now use autofilter to filter data whre row is not equal to #N/A and delete those rows.

  3. #3
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46

    Re: Compare 2 columns delete rows with matching values

    Thanks for the reply. I'm not sure how to use vlookup

    I've moved all the data in to one workbook Sheet1 and Sheet2

    Sheet1 column f and Sheet2 column a

    if i put the formula in Sheet2 column b what would it look like?

    =vlookup(??,??,??,??)

    never used it before so not sure

    cheers

  4. #4
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Compare 2 columns delete rows with matching values

    Put the below formula in Cell A1 of sheet2 and copy it down....

    Please Login or Register  to view this content.
    The cells where u see #N/A is not present in sheet1 and where u see any text or value .. they are present in sheet 1

+ 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