Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to find cells containing exact text, and separate them | Excel Worksheet Functions | |||
Can a drop down list include multiple cells? | Excel Discussion (Misc queries) | |||
resetting last cell | Excel Discussion (Misc queries) | |||
Removing Rows for Printing | Excel Worksheet Functions | |||
Removing Duplicates | Excel Worksheet Functions |