+ Reply to Thread
Results 1 to 8 of 8

Delete row by if data same on column B & E

  1. #1
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Delete row by if data same on column B & E

    Hi, Please kindly help , is there a macro to do this

    Row 3&4 , 9&10 have same data on column B&E, the second row that have same data will be deleted

    before.JPG

    It will be like below,thx
    After.JPG
    Attached Files Attached Files
    Last edited by oeyandyprawira; 12-24-2018 at 01:25 AM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Delete row by if data same on column B & E

    Hi oeyandyprawira,

    Try this (though initially on a copy of your data as the results cannot be undone if they're not as expected):

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Delete row by if data same on column B & E

    Hi Trebor,

    thx it work but when I tried to other excel file i attached tes delete duplicatev2.xlsx, it's not working there. I confused, please help to test on that file, thx

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Delete row by if data same on column B & E

    No file attached

    Are you checking the same columns i.e. B and E in the active sheet?

  5. #5
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Delete row by if data same on column B & E

    Quote Originally Posted by Trebor76 View Post
    No file attached

    Are you checking the same columns i.e. B and E in the active sheet?
    Sorry I don't know how to attach when replying , so I attached in my first post, can you find it?. , yes same checking on same B & E column.

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Delete row by if data same on column B & E

    There was a space at the end of every second card entry in column B hence every row was unique and so no rows were being deleted.

    This should do the job:

    Please Login or Register  to view this content.
    I'm guessing the card details are fictitious card numbers as you wouldn't want real ones on a public forum.

    Regards,

    Robert

  7. #7
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Delete row by if data same on column B & E

    yes Trebor76, thx for your help

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Delete row by if data same on column B & E

    You're welcome

    Thanks for marking the thread as solved and for the rep

+ 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. VBA to delete rows starting from row 18 and delete data in one column from row 17
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2017, 04:54 PM
  2. loop through range to copy row if data exists in column, then delete the column
    By wpryan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2015, 05:03 PM
  3. [SOLVED] Delete data every 4th column
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2015, 10:18 PM
  4. [SOLVED] Need Help on set of column data move to different column & delete unwant col vba
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2014, 11:05 PM
  5. [SOLVED] I need to find & match the data in column in A with column B and delete both
    By RobinPrice in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-29-2014, 11:03 PM
  6. [SOLVED] Delete duplicate data column A and merge data in colum B into single cell
    By GAIMoore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 04:17 PM
  7. Sort Column, Delete Rows, Delete Column, Move Molumn, more inside?
    By motown in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-13-2008, 09:44 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