Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In a spreadsheet I have one column with single item names and a second column
with strings of data. I am trying to set up a routine that will search the column with strings for the names found in the first one. The result needed is to place the name in a third column adjacent to the one with the string that contains the name. I have come up with this: If InStr(Range("B2"), ActiveCell) Then Range("C2") = ActiveCell If InStr(Range("B3"), ActiveCell) Then Range("C2") = ActiveCell etc. This works if I use "Offset" and type a separate line of code for each row of data but this is rather inconvenient since there are over 1000 rows. Is there a better way to accomplish this? Thanks for any help anyone may offer. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Fix EXACT function so it always compares in the same row. | Excel Worksheet Functions | |||
Finding data in a text column | Excel Discussion (Misc queries) | |||
Function that compares dates | Excel Worksheet Functions | |||
Finding Duplicate text strings with a single column | Excel Worksheet Functions | |||
Macro query - finding mutliple occurences of text in a column | Excel Programming |