ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Find certain text in a cell (https://www.excelbanter.com/excel-worksheet-functions/227030-find-certain-text-cell.html)

Elton Law[_2_]

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

Ashish Mathur[_2_]

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



Mike H

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


Teethless mama

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



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com