View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
HH[_3_] HH[_3_] is offline
external usenet poster
 
Posts: 4
Default Find a textstring in a "Range" - and then return a value iftextstring is found.

Hi'

Hope you can help.

I need to lookup a collection of textstrings in a specifik range - and
then react if the textstring is found:

Sheet1 contains a number of cells (B2:B5000) each containing a
textstring.
Sheet2 also contains a number of cells ((D2:D999) each containing a
textstring AND a value in range E2:E10.

Now I need to compare (using InString) the cells in Sheet2 with Sheet1
- and if there is a match I need to return the value.


I planned on making a collection of the 999 values I search for, but
how do I match these with the code?
If I find the text in D10 I need to use the value in E10.


Thanks.