Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find cell address of last cell in a column with text | Excel Worksheet Functions | |||
FIND / SEARCH text compare cell to string in 3rd cell | Excel Discussion (Misc queries) | |||
Find text in a cell and copy text to another cell | Excel Discussion (Misc queries) | |||
find text in cell and replace it with part of the text in that ce. | Excel Discussion (Misc queries) | |||
Find text within cell then display text to left | Excel Discussion (Misc queries) |