How to search in a row and populate Yes/No value in another row - excel

I have two columns A and B. Column A has rental property descriptions. I want to search each row containing the word "parking" and return Yes/No in column B

I tried using =IF(SEARCH("parking",A2),"Yes","No") and it did return me a value of "Yes" . But when the word is not found i am getting a #VALUE error instead f a NO.

Is there a way to get Yes/No from search?

enter image description here

1 Answer

SEARCH will return an error if not found, and when the criteria in an IF is an error it will error the whole formula. so, wrap it in ISNUMBER, this way if it is an error the ISNUMBER will return FALSE instead of an error.

=IF(ISNUMBER(SEARCH("parking",A2)),"Yes","No") 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like