+ Reply to Thread
Results 1 to 8 of 8

compare & delete rows

  1. #1
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post compare & delete rows

    dear friends in my document has two sheet.i want to match first sheet column "K" with second sheet column " M".in second sheet all matching rows should keep & non matching rows should delete,if that both columns are matched & first sheet column "L" is empty or cell value " Balance " then that time also second sheet rows need to delete,pls make macro for this.thanks.
    ex-
    first sheet column "K" 456751 & column "L" is empty then second sheet column "M" 456751 row should delete.
    first sheet column "K" 456751 & column "L" cell value is " Balance " then second sheet column "M" 456751 row should delete.
    Attached Files Attached Files
    Last edited by johncena; 04-01-2010 at 11:08 AM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: compare & delete rows

    You can try to use this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: compare & delete rows

    thank u very much antoka05.i want to delete second sheet rows.i don't want any changes in first sheet.pls make correct.thanks.....

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: compare & delete rows

    You can delete or comment this code that delete rows in first sheet:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: compare & delete rows

    Dear antoka05.u can see compare to first sheet second sheet has lot off data.this macro should delete all extra rows in second sheet & keep balance only the match with first sheet.pls help me sir.
    Last edited by johncena; 04-01-2010 at 09:28 AM.

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: compare & delete rows

    Excuse me, I apologize but I misunderstood your request... I hope this last workbook run fine.

    Regards,
    Antonio
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: compare & delete rows

    WOW thanks a lot antoka05.it's work very well.thanks a lot sir..REP+++

  8. #8
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: compare & delete rows

    I'm glad to know it's ok!

    Regards,
    Antonio

+ 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