Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Finding Text in a cell

Is there a way that I can check a cell to determine if it contains a specific
word in a string of words? For example if there is a sentence in C4 and I
need to know if the word "Apples" is within the sentence.

I would like to have an if formula that says =if(C4 contains the word
apples,"Apples",C4) .

I just dont know how to fine one word within a cell.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Finding Text in a cell

Try this:

=IF(COUNTIF(C4,"*APPLES*"),"Apples",C4)

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Klee" wrote in message
...
Is there a way that I can check a cell to determine if it contains a
specific
word in a string of words? For example if there is a sentence in C4 and I
need to know if the word "Apples" is within the sentence.

I would like to have an if formula that says =if(C4 contains the word
apples,"Apples",C4) .

I just dont know how to fine one word within a cell.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Finding Text in a cell

Oh that's perfect thanks so much!

"Ron Coderre" wrote:

Try this:

=IF(COUNTIF(C4,"*APPLES*"),"Apples",C4)

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Klee" wrote in message
...
Is there a way that I can check a cell to determine if it contains a
specific
word in a string of words? For example if there is a sentence in C4 and I
need to know if the word "Apples" is within the sentence.

I would like to have an if formula that says =if(C4 contains the word
apples,"Apples",C4) .

I just dont know how to fine one word within a cell.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Finding Text in a cell

You're welcome!.....I'm glad I could help.

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"Klee" wrote in message
...
Oh that's perfect thanks so much!

"Ron Coderre" wrote:

Try this:

=IF(COUNTIF(C4,"*APPLES*"),"Apples",C4)

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Klee" wrote in message
...
Is there a way that I can check a cell to determine if it contains a
specific
word in a string of words? For example if there is a sentence in C4 and
I
need to know if the word "Apples" is within the sentence.

I would like to have an if formula that says =if(C4 contains the word
apples,"Apples",C4) .

I just dont know how to fine one word within a cell.

Thanks






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
Finding text in a cell and returning a value based on that text [email protected] Excel Discussion (Misc queries) 5 January 10th 07 06:01 PM
Finding text in a cell Art Excel Worksheet Functions 8 December 3rd 06 06:47 PM
Finding a text string w/in a Cell ricxl Excel Discussion (Misc queries) 12 March 20th 06 03:47 AM
Finding the most common cell duplicate (text) juggo Excel Discussion (Misc queries) 5 February 14th 06 03:48 AM
Finding Partial Text in a Cell bob Excel Worksheet Functions 6 December 18th 04 05:03 AM


All times are GMT +1. The time now is 04:30 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"