+ Reply to Thread
Results 1 to 5 of 5

Delete row comparing 2 columns

  1. #1
    Forum Contributor
    Join Date
    07-22-2012
    Location
    Spain
    MS-Off Ver
    Excel 2008
    Posts
    304

    Delete row comparing 2 columns

    Hi!

    Hope someone can help me with the code Im looking for...

    I need a macro that compares data from 2 columns (D7 till the end & E7 till the end) and when it finds that data from one cell in column D is the same than in column E (looking always in the same row), then delete that row.

    I cannot find a code to compare in that range cause there are many cells that are empty and so, its not necessary to delete the row cause there is nothing on it.

    Thanks in advance!!

    Regards

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Delete row comparing 2 columns

    Can you upload a sample of the workbook?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    07-22-2012
    Location
    Spain
    MS-Off Ver
    Excel 2008
    Posts
    304

    Re: Delete row comparing 2 columns

    Hello!

    I herewith attach the file. What Im looking for is that:

    If time in column D = time in column E
    Then
    Delete that row


    Thanks!!
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Delete row comparing 2 columns

    Give this a try

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-22-2012
    Location
    Spain
    MS-Off Ver
    Excel 2008
    Posts
    304

    Re: Delete row comparing 2 columns

    Thats perfect Mike!!!

    Thanks a lot!!!

    Regards,

+ 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