Hello everyone.
I'm doing a project where I have to make selection within a lot of information (more than 20,000 rows of data). You can see in the image there are some columns. What I need to do is to DELETE every row where the F column or the H column has a different value from the following:
Arganil
Cantanhede
Coimbra
Condeixa-a-Nova
Figueira da Foz
Góis
Lousã
Mealhada
Mira
Miranda do Corvo
Montemor-o-Velho
Mortágua
Oliveira do Hospital
Pampilhosa da Serra
Penacova
Penela
Soure
Tábua
Vila Nova de Poiares
So, for example, if there was a row, where the F or the H column would say "Anadia" (this word is NOT on the list above), that row would be deleted.
I'm having a bit of trouble coming up with a woking macro, specially because what you have to delete is what is not present on the list. Because I don't know all the names that are going to appear, so the only way I can do the macro is telling what NOT to delete. I hope I made my self understand.
Thank you so much for your time.
I'm doing a project where I have to make selection within a lot of information (more than 20,000 rows of data). You can see in the image there are some columns. What I need to do is to DELETE every row where the F column or the H column has a different value from the following:
Arganil
Cantanhede
Coimbra
Condeixa-a-Nova
Figueira da Foz
Góis
Lousã
Mealhada
Mira
Miranda do Corvo
Montemor-o-Velho
Mortágua
Oliveira do Hospital
Pampilhosa da Serra
Penacova
Penela
Soure
Tábua
Vila Nova de Poiares
So, for example, if there was a row, where the F or the H column would say "Anadia" (this word is NOT on the list above), that row would be deleted.
I'm having a bit of trouble coming up with a woking macro, specially because what you have to delete is what is not present on the list. Because I don't know all the names that are going to appear, so the only way I can do the macro is telling what NOT to delete. I hope I made my self understand.
Thank you so much for your time.