ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   cell B1 contains a word listed in cell A1 (https://www.excelbanter.com/excel-discussion-misc-queries/226326-cell-b1-contains-word-listed-cell-a1.html)

Stan

cell B1 contains a word listed in cell A1
 
Is there a formula to use in order to confirm the following?

If a sentence in cell B1 contains a word in cell A1, confirm it in cell C1.
Words in column A is changing cell-by-cell.

thanks for yoru help.

Luke M

cell B1 contains a word listed in cell A1
 
Case-sensitive:
=FIND(A1,B1)
Non-case-sensitive
=SEARCH(A1,B1)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Stan" wrote:

Is there a formula to use in order to confirm the following?

If a sentence in cell B1 contains a word in cell A1, confirm it in cell C1.
Words in column A is changing cell-by-cell.

thanks for yoru help.


Ron Rosenfeld

cell B1 contains a word listed in cell A1
 
On Wed, 1 Apr 2009 12:15:03 -0700, Stan wrote:

Is there a formula to use in order to confirm the following?

If a sentence in cell B1 contains a word in cell A1, confirm it in cell C1.
Words in column A is changing cell-by-cell.

thanks for yoru help.


Your specifications are not entirely unambiguous, but perhaps something like:

=IF(AND(LEN(A1)0,ISNUMBER(SEARCH(A1,B1))),"Contai ned","Not Contained")
--ron


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

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