Deleting rows contains certain text in column A

P

plumstone

In Sheet1, I have A1:H2619. In Sheet2 I have something in A1:A997. The text
in column A of Sheet1 and the text in column A of Sheet2 or similar, but just
column A, Sheet1 I has a bigger database (2619 cells), while in column A of
Sheet2 I just have 997 cells. I want to delete all the rows in Sheet1, if in
column A of that row, we find the exact match in one of the cells of Column
A, Sheet2.
For example. Column A sheet 1 may contain Jan, Feb, Mar, Apr, May, June.
While Column A in Sheet2 only has Feb, Apr. So I want to delete the rows in
Sheet1 which contains Feb, and Apr. in column A.
Is there any formula or code could do this. I appreciated your help.
 
P

plumstone

I found one solution by myself
Use countif function (let's say, in column K of sheet1, and return some
numbers (0, 1, 2 or 3) Then sort the database by column K. Then delete the
rows with 1,2 or 3 in column K.
 
Top