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

Hi all,
Wanna use a formula so that it can give logical result (True or False) if
that cell contains certain words.
Say cell A1 contains a text "I love you".
Say cell A2 contains a text "I miss you".
Say cell A3 contains a text "I hate you".
Is there an "IF" function or formula that can give logical result (True or
False) if that cell contains a word "hate".
In this case, A3 should come up with True while A1 and A2 are false.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Find certain text in a cell

Hi,

You can use =IF(ISNUMBER(SEARCH(" hate ",A1,1)),32,23)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Elton Law" wrote in message
...
Hi all,
Wanna use a formula so that it can give logical result (True or False) if
that cell contains certain words.
Say cell A1 contains a text "I love you".
Say cell A2 contains a text "I miss you".
Say cell A3 contains a text "I hate you".
Is there an "IF" function or formula that can give logical result (True or
False) if that cell contains a word "hate".
In this case, A3 should come up with True while A1 and A2 are false.
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Find certain text in a cell

Try

=ISNUMBER(SEARCH("hate",A1))

Mike

"Elton Law" wrote:

Hi all,
Wanna use a formula so that it can give logical result (True or False) if
that cell contains certain words.
Say cell A1 contains a text "I love you".
Say cell A2 contains a text "I miss you".
Say cell A3 contains a text "I hate you".
Is there an "IF" function or formula that can give logical result (True or
False) if that cell contains a word "hate".
In this case, A3 should come up with True while A1 and A2 are false.
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Find certain text in a cell

=COUNTIF(A3,"* hate *")0

"Elton Law" wrote:

Hi all,
Wanna use a formula so that it can give logical result (True or False) if
that cell contains certain words.
Say cell A1 contains a text "I love you".
Say cell A2 contains a text "I miss you".
Say cell A3 contains a text "I hate you".
Is there an "IF" function or formula that can give logical result (True or
False) if that cell contains a word "hate".
In this case, A3 should come up with True while A1 and A2 are false.
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
Find cell address of last cell in a column with text mike in texas Excel Worksheet Functions 8 October 4th 08 05:41 AM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
Find text in a cell and copy text to another cell Shaun Excel Discussion (Misc queries) 6 July 4th 07 05:25 PM
find text in cell and replace it with part of the text in that ce. jules Excel Discussion (Misc queries) 3 May 3rd 07 10:18 AM
Find text within cell then display text to left Jambruins Excel Discussion (Misc queries) 5 April 17th 06 10:01 PM


All times are GMT +1. The time now is 12:01 AM.

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"