Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Removing rows in which 1 cell's value appears on a separate list

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!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Removing rows in which 1 cell's value appears on a separate list

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

"creativeops" wrote in message
...
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!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Removing rows in which 1 cell's value appears on a separate li

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


"T. Valko" wrote:

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

"creativeops" wrote in message
...
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!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Removing rows in which 1 cell's value appears on a separate li

You're welcome. Thanks for the feedback!

Biff

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


"T. Valko" wrote:

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

"creativeops" wrote in message
...
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!






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find cells containing exact text, and separate them Tommy Excel Worksheet Functions 3 October 6th 06 01:49 AM
Can a drop down list include multiple cells? Giggles Excel Discussion (Misc queries) 2 September 6th 06 08:54 PM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Removing Rows for Printing Frick Excel Worksheet Functions 20 March 10th 06 11:53 PM
Removing Duplicates Danielle Excel Worksheet Functions 5 March 10th 06 08:56 PM


All times are GMT +1. The time now is 07:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"