How to assign a value to cells if it contains a specific row?
For example, the fields in column A:
dog11 cat22 cow11 chick11 duck22 cat11 horse22 cat33
The syntax in column B is:
=IF(SEARCH("cat",A1),"cat",IF(SEARCH("22",A1),"22","none"))
It always raises the first TRUE cell, but crashes when the value does not match true.
contains excel if-statement
Csongor Aug 08 '12 at 15:03 2012-08-08 15:03
source share