I've recorded Macro to delete irrelevant data/rows in a list & only required rows with "CONSUMED", however, it only managed to filter irrelevant rows & unable to delete it.
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
ActiveSheet.ListObjects("Table17").Range.AutoFilter Field:=7, Criteria1:= _
"<>*CONSUMED*", Operator:=xlAnd
Selection.EntireRow.Delete
ActiveSheet.ListObjects("Table17").Range.AutoFilter Field:=7
End Sub
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
ActiveSheet.ListObjects("Table17").Range.AutoFilter Field:=7, Criteria1:= _
"<>*CONSUMED*", Operator:=xlAnd
Selection.EntireRow.Delete
ActiveSheet.ListObjects("Table17").Range.AutoFilter Field:=7
End Sub