ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If a cell contains a certain value (https://www.excelbanter.com/excel-discussion-misc-queries/148301-if-cell-contains-certain-value.html)

Jacob

If a cell contains a certain value
 
How can I search a cell to determine if a cell contains a certain value?
Some cells have a sentence of information and I looking for a specific work.
Does the IF function have a variation to use "contain" instead of "=" ? For
example,

=IF($A$1containsGLOBAL,1,0)

Cheers!

Keith74

If a cell contains a certain value
 
Hi

This seems to work, someone else might have a better solution

=IF(ISERROR(SEARCH("GLOBAL",A1) ) = TRUE,0,1)

hth

Keith



All times are GMT +1. The time now is 08:38 AM.

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