Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default if cell CONTAINS xyz, then abc

I have a column that contains many values in text. I am searching this
column to see if it contains the partial text "Clinic". For example, three
cells could contain:

Physician, Administrator
Clinical Professional-Super
Office Staff-Clinical

I want to state, =if(cell B2 CONTAINS "*clin*", then "yes", else "") This
would give me a "yes" on the second two cells, but not the first.

How can I select just a few letters within a column to search on? I've
tried *Clin* and I get the else answer.

Thank-you for any help with this problem.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default if cell CONTAINS xyz, then abc

=IF(NOT(ISERROR(SEARCH("clin",B2))),"YES","")

Dave
--
Brevity is the soul of wit.


"Kyli" wrote:

I have a column that contains many values in text. I am searching this
column to see if it contains the partial text "Clinic". For example, three
cells could contain:

Physician, Administrator
Clinical Professional-Super
Office Staff-Clinical

I want to state, =if(cell B2 CONTAINS "*clin*", then "yes", else "") This
would give me a "yes" on the second two cells, but not the first.

How can I select just a few letters within a column to search on? I've
tried *Clin* and I get the else answer.

Thank-you for any help with this problem.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default if cell CONTAINS xyz, then abc

Thank-you, Dave. That worked perfectly.
Kyli

"Dave F" wrote:

=IF(NOT(ISERROR(SEARCH("clin",B2))),"YES","")

Dave
--
Brevity is the soul of wit.


"Kyli" wrote:

I have a column that contains many values in text. I am searching this
column to see if it contains the partial text "Clinic". For example, three
cells could contain:

Physician, Administrator
Clinical Professional-Super
Office Staff-Clinical

I want to state, =if(cell B2 CONTAINS "*clin*", then "yes", else "") This
would give me a "yes" on the second two cells, but not the first.

How can I select just a few letters within a column to search on? I've
tried *Clin* and I get the else answer.

Thank-you for any help with this problem.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default if cell CONTAINS xyz, then abc

No problem.
--
Brevity is the soul of wit.


"Kyli" wrote:

Thank-you, Dave. That worked perfectly.
Kyli

"Dave F" wrote:

=IF(NOT(ISERROR(SEARCH("clin",B2))),"YES","")

Dave
--
Brevity is the soul of wit.


"Kyli" wrote:

I have a column that contains many values in text. I am searching this
column to see if it contains the partial text "Clinic". For example, three
cells could contain:

Physician, Administrator
Clinical Professional-Super
Office Staff-Clinical

I want to state, =if(cell B2 CONTAINS "*clin*", then "yes", else "") This
would give me a "yes" on the second two cells, but not the first.

How can I select just a few letters within a column to search on? I've
tried *Clin* and I get the else answer.

Thank-you for any help with this problem.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default if cell CONTAINS xyz, then abc

=IF(ISNUMBER(SEARCH("clin",B3)),"yes","")

"Kyli" wrote:

I have a column that contains many values in text. I am searching this
column to see if it contains the partial text "Clinic". For example, three
cells could contain:

Physician, Administrator
Clinical Professional-Super
Office Staff-Clinical

I want to state, =if(cell B2 CONTAINS "*clin*", then "yes", else "") This
would give me a "yes" on the second two cells, but not the first.

How can I select just a few letters within a column to search on? I've
tried *Clin* and I get the else answer.

Thank-you for any help with this problem.

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
Cell References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM


All times are GMT +1. The time now is 12:53 PM.

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"