delete row if condition

  1. T

    VBA - Search workbook for list in sheet1, and delete all rows containing those values

    I found similar requests here, but nothing that I could make work for what I needed. I have a list of over 200 inactive part numbers (and more may need to be added) in Sheet1 column A. In all other sheets in the workbook I want to search through column C, starting at row 8, and delete the row...
  2. F

    Deleting rows based on a variable in 1 column

    hello, I have created some code that will delete an entire row based on if the value 1 is in the column or not. The code works but takes 40 minutes to run on 300,000 lines. Is there a better method to make this work? Sub Delete_Rows() Dim i As Long Dim LastRow As Long...
  3. S

    VBA delete row if date contained however skip if blank

    Hello, I am looking for a vba that will do the follow. If the cell a2 date value is not the date value of the cells below delete the row however if the cell is blank within the column do nothing and move on to the next cell. <tbody> a b 1 2 7/22/2019 21:04 3 7/22/2019 20:55 4...
  4. L

    Repeat until value not found in column

    Hello everybody I need same help. I need to delete rows with the value 0 in column B I made this: Columns("B:B").Select Selection.Find(What:="0", After:=ActiveCell, LookIn:=xlValues, LookAt:= _ xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _...
  5. G

    VBA delet avery 11 value if not text( or if number is true), and loop on

    Hi , my question is how to loop through the range( column) and delete every 11th value if it is a number, or if it is not a text( both works). Product product name 123 123 1234 435 564 234 345 3245 NONO 234 So here on the 11th row, I have a text I would like it to be deleted ( whole row) if...

Some videos you may like

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top