View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default finding words in the cell

Hi,

Suppose you set up a little lookup table like:

Others
Renewal API Renewals
Spot 4

in cells A1:B3, and suppose that the entry you want to check is in A5 then
you can use the following array formula:

=INDEX(B1:B3,MAX(MATCH(1,--ISNUMBER(SEARCH(A1:A3,A5)),)))

as an array it must be entered by pressing Shift+Ctrl+Enter, not Enter.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Igneshwara reddy" wrote:

Hi,

I have to find in one cell, whether any of three words matches. If it
matches, I need to get results as

If it finds word "Spot" in the cell, the answer should reflect as "4", if it
find word "Renewal API" the it should reflect answer as "Renewals" and if
none of the above both words are found it should reflect answers as "others".

Let me know how can I get the desired results.

Regards,
Igneshwara Reddy