#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default if text string

please could someone assist.

I'm looking to summarize a field, in Excel, which contains text.

The field contains text and I won't to look via an if statement for the
incidents of one particular word in the text string -something along the
lines of =if(a2 =*Nurse*,"Nurse Activity","Consultant Activity").


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default if text string

Nigel,
Try:

=IF(ISNUMBER(SEARCH("Nurse",A2)),"Nurse Activity","Consultant Activity")

HTH

"Nigel" wrote:

please could someone assist.

I'm looking to summarize a field, in Excel, which contains text.

The field contains text and I won't to look via an if statement for the
incidents of one particular word in the text string -something along the
lines of =if(a2 =*Nurse*,"Nurse Activity","Consultant Activity").


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default if text string

Hi Nigel

Something like:

=IF(ISNUMBER(SEARCH("Nurse",A1)),"Nurse Activity",""Consultant
Activity")

or = IF(COUNTIF(A1:A1,"*Nurse*"),"Nurse Activity",""Consultant
Activity")

Hope this helps!

Richard



On 15 Mar, 11:15, Nigel wrote:
please could someone assist.

I'm looking to summarize a field, in Excel, which contains text.

The field contains text and I won't to look via an if statement for the
incidents of one particular word in the text string -something along the
lines of =if(a2 =*Nurse*,"Nurse Activity","Consultant Activity").



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default if text string

many thanks - it worked, saved me a lot of time.

"Toppers" wrote:

Nigel,
Try:

=IF(ISNUMBER(SEARCH("Nurse",A2)),"Nurse Activity","Consultant Activity")

HTH

"Nigel" wrote:

please could someone assist.

I'm looking to summarize a field, in Excel, which contains text.

The field contains text and I won't to look via an if statement for the
incidents of one particular word in the text string -something along the
lines of =if(a2 =*Nurse*,"Nurse Activity","Consultant Activity").


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default if text string

many thanks, it worked

"RichardSchollar" wrote:

Hi Nigel

Something like:

=IF(ISNUMBER(SEARCH("Nurse",A1)),"Nurse Activity",""Consultant
Activity")

or = IF(COUNTIF(A1:A1,"*Nurse*"),"Nurse Activity",""Consultant
Activity")

Hope this helps!

Richard



On 15 Mar, 11:15, Nigel wrote:
please could someone assist.

I'm looking to summarize a field, in Excel, which contains text.

The field contains text and I won't to look via an if statement for the
incidents of one particular word in the text string -something along the
lines of =if(a2 =*Nurse*,"Nurse Activity","Consultant Activity").




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
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 04:47 PM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 10:54 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 10:56 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 01:25 AM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 08:21 PM


All times are GMT +1. The time now is 05:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"