R
roger
i am using a search function to evaluate a cell and return
a 0 or a 1 depending on whether the text is found.
The syntax used is as follows:
=if(SEARCH("White",J2)>0,1,0)
so i am searching a field with the word white and if it
exists it will return a value that is greater than 0 and a
1 will be placed in the cell. This part works great and
returns the desired result. If however the word White
does not exist in the cello J2, the result is #VALUE! not
0.
I tried to trap on #VALUE! to no avail.
I tried to return the value of the search, the answer is
the same.
I tried testing on Null or ISNull to no avail.
Do you have any ideas?
a 0 or a 1 depending on whether the text is found.
The syntax used is as follows:
=if(SEARCH("White",J2)>0,1,0)
so i am searching a field with the word white and if it
exists it will return a value that is greater than 0 and a
1 will be placed in the cell. This part works great and
returns the desired result. If however the word White
does not exist in the cello J2, the result is #VALUE! not
0.
I tried to trap on #VALUE! to no avail.
I tried to return the value of the search, the answer is
the same.
I tried testing on Null or ISNull to no avail.
Do you have any ideas?