Removing rows in which 1 cell's value appears on a separate list

C

creativeops

I have a table about 20 columns wide and a few hundred rows. One column has
a 4 letter code (which there are about 100 unique values for). There are
lots of duplicates, but I'm not concerned about those. What I want to do is
remove (or even just highlight) rows where that the 4-letter code is one that
shows up on a separate list of about 20 such codes.
Thanks!
 
T

T. Valko

One way:

Use another column and test for matches of the codes:

Suppose the data is in A1:E10

The codes are in column A

H1:H5 contain the codes to match against.

Enter this formula in F1 and copy down to F10:

=--ISNUMBER(MATCH(A1,H$1:H$5,0))

This will return either a 0 for no match or a 1 for a match.

Now, sort the range A1:F1 ascending on column F. This will place all the
rows with matches at the bottom of the table.

Now, just delete all the rows at the bottom of the table that have a 1 in
column F. ***** make sure there is no other data on those rows that you
don't want deleted!!!!!!!!

Then you can also delete the formulas from column F (or even delete the
entire column altogether).

Biff
 
C

creativeops

Cool! that's great. i knew there was a simpler way to do it than what I had
worked out.
Thank you
 
T

T. Valko

You're welcome. Thanks for the feedback!

Biff

creativeops said:
Cool! that's great. i knew there was a simpler way to do it than what I
had
worked out.
Thank you
 
Top