+ Reply to Thread
Results 1 to 3 of 3

Help ! Need to delete rows when with special criteria

  1. #1
    Registered User
    Join Date
    09-04-2023
    Location
    indonesia
    MS-Off Ver
    windows 11
    Posts
    3

    Unhappy Help ! Need to delete rows when with special criteria

    Hi Everyone,

    Really appreciate if you guys can help me to create VBA for Delete the Rows when the criteria is met.
    The Criteria is If the Cell on Column A is Blank, and the Data on Column B is Duplicate, I need to delete both Rows (the Blank row and the Duplicate row) so there's two rows that I need to Delete.


    You can see the example on Image Attached. I need to delete the rows with X marks.

    the Data.png

    Thank You,
    Attached Files Attached Files
    Last edited by Goji_; 09-04-2023 at 05:37 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Help ! Need to delete rows when with special criteria

    It's not easy to work with a picture (see yellow banner near top of the page) but basically in your couln E you could use countif or countIFS function (and write result of (value returned by) the function in column E then delete all rows where value in E is >=2
    Best Regards,

    Kaper

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Help ! Need to delete rows when with special criteria

    In column E, use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Replies: 3
    Last Post: 09-08-2022, 02:30 AM
  2. [SOLVED] Delete not meeting criteria, criteria in column another sheet (Filter)
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2016, 07:32 AM
  3. Want to delete a column based on criteria
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2012, 08:31 AM
  4. Delete all special characters in a selected column
    By vbvamsi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2012, 08:02 AM
  5. Delete special characters in 1 column but in multiple rows
    By fnjtravel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2011, 03:31 PM
  6. Delete multiple columns by column name no criteria need, just delete them
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2009, 10:40 AM
  7. Delete row if column criteria was met
    By EKB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2006, 04:15 AM

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