How to remove a set of records once the product is no longer in inventory

Copper Contributor

Good Morning,

     I am wondering if there is a formula to delete all records of "900068" if it contains a "Discard Weight" as noted in the last row of the table in order to avoid having to manually delete hundreds of records for all Product ID numbers.

 

9000068Aatrexin11/14/2019 12:2325.8Pre-Mix Weight
9000068Aatrexin11/14/2019 12:3318.8Post-Mix Weight
9000068Aatrexin11/15/2019 8:5818.8Pre-Mix Weight
9000068Aatrexin11/15/2019 9:0113.8Post-Mix Weight
9000068Aatrexin11/21/2019 14:4313.8Pre-Mix Weight
9000068Aatrexin11/21/2019 14:4611.8Post-Mix Weight
9000068Aatrexin11/21/2019 15:4011.8Initial Inventory
9000068Aatrexin11/21/2019 15:4111.3Post-Mix Weight
9000068Aatrexin11/22/2019 9:1211.3Pre-Mix Weight
9000068Aatrexin11/22/2019 9:220.8Discard Weight
2 Replies

@hjaten 

 

I think you can use VBA

simply apply a filter select the rows you need then delete them

 

here is my draft trial, please tweek it a bit

but it will work

@Ramiz_AssafThank you! I will give this a shot and see what happens.