Search value error

Solved/Closed
Stu - 11 Aug 2016 à 04:50
Mazzaropi Posts 1983 Registration date Monday 16 August 2010 Status Contributor Last seen 24 May 2023 - 12 Aug 2016 à 10:26
HI,
The value for false refuses to come up as a blank cell in my formula to find and copy a cell if it contains certain initials, or leave it blank if not. It always comes up as an error in the value for the search function. Can anyone spot why and help me correct this?
Kind regards,
Stu

=IF(SEARCH("BP",Sheet1!B4),Sheet1!B3,"")
Related:

2 responses

Mazzaropi Posts 1983 Registration date Monday 16 August 2010 Status Contributor Last seen 24 May 2023 147
11 Aug 2016 à 07:10
stu, Good morning.

If search_text does not appear in within_text, SEARCH returns the #VALUE! error value.

Try to use it:
=IF(IFERROR(SEARCH("BP",Sheet1!B4),FALSE),Sheet1!B3,"")

Is this what you want?
I hope it helps.
--
Belo Horizonte, Brasil.
Marcílio Lobão
Mazzaropi,

Thank you, that has worked perfectly, and in the process I think i can use that to resolve a couple of other formula i had been thiking about but not tried out yet.

Thanks again,

kind regards
Stuart
Mazzaropi Posts 1983 Registration date Monday 16 August 2010 Status Contributor Last seen 24 May 2023 147
12 Aug 2016 à 10:26
Stuart, Good morning.

Thanks for the feedback.

Have a nice weekend.
--
Belo Horizonte, Brasil.
Marcílio Lobão