Hi,
as a suggestion, it depends first on how many rows contains the data table :
- for not too many, you can filter directly for the undesired rows via for example a formula used by an advanced filter
(or directly via a classic filter, whatever but just using Excel basics easier to maintain for a beginner)
in order to have only the rows to delete the visible ones, all rows to keep hidden …
- For big data, faster than deleting rows may be clearing rows !
Use a formula in a helper column where result is FALSE for rows to keep and TRUE for the irrelevants to delete.
Sort the table on this helper column in order all the TRUE rows are moved to the end of the table
then it's easy to clear the TRUE contiguous rows at once then clear the helper column …
Even operating this way manually takes a maximum of a single minute,
far faster than any bad code looping rows for ages and deleting the irrelevants one by one !
Bookmarks