View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
[email protected] circuit_breaker@canada.com is offline
external usenet poster
 
Posts: 6
Default Searching for strings in a column

Hi,
I have the following items in COL_A:

COL_A
-------
Mike B
GX270
Notebook X
LunchRoom
New Printer
John VPN
Spare Laptop
Susan WS

What I'd like to do, is to set COL_B to "TRUE" when COL_A contains:
"notebook" or "VPN" or "Laptop", in a non case-sensitive context.

The result should look like this:

COL_A COL_B
------- -------
Mike B FALSE
GX270 FALSE
Notebook X TRUE
LunchRoom FALSE
New Printer FALSE
John VPN TRUE
Spare Laptop TRUE
Susan WS FALSE

I've been trying a VLOOKUP() function but it doesn't work as
expected. The MATCH() funciton works but makes a very complicated
formula and I'll have to add exceptions to my list so, putting
"Laptop", "VPN", "notebook" and so on in a seperate worksheet makes
sense.

Thanks for your suggestions.