Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default VLOOKUP, but different

Hi everyone,

I have a table on Sheet1 with strings in column A. Say for simplicity's sake
that they are colours.

A
red
blue
purple
yellow
black

In addition I have this macro, that, when run, reads rows on a table on
Sheet2 and fills B1 on Sheet1 with the contents of the fourth cell in the
read row. As soon as the value of B1 changes, I need to determine whether B1
_contains_ a string that is present in column A. In this case the found value
in column A should be copied to C1.

For example: The macro runs. B1 gets this value: "no cure for the blues". C1
should have the value "blue". The macro processes the next line. B1 gets this
value: "movies by peter greenaway" C1 should become blank. The macro
processes the next line. B1 gets this value: "boredom". C1 should get the
value "red".

I know how to do this in code, but this slows down the macro considerably.
Is there a worksheet function that I can place in C1 which does the trick,
and if so: which one? Perhaps some fancy use of SUMPRODUCT?

Thank you,
Cooz

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default VLOOKUP, but different

This finds multiple matches in string:
http://www.savefile.com/files/1542738
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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 01:20 AM.

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"