I'm a bit surprised to be asking this, as I've worked with spreadsheets a long time....but, I'm stuck on this one.
I need to test for a substring ("-flac") in the string contents of a cell, and return a value if found, and another value if not. It's the latter alternative that's giving me fits. I cannot find a way to return anything other than a "#VALUE" when the substring is NOT present, and that brings my larger function to a halt.
Here's the function I'm trying to use:
. If the target cell contains, say, "xxxxx -flac", I get a "y" result, but if not I get "#VALUE!" as output.
Use of the FIND function in place of SEARCH yields the same result. I can find no way around this problem, and Google search for solutions yielded no usable results.
Any suggestions? Ideas? Any would be most appreciated. There surely is a solution to this problem...
Thanks!
I need to test for a substring ("-flac") in the string contents of a cell, and return a value if found, and another value if not. It's the latter alternative that's giving me fits. I cannot find a way to return anything other than a "#VALUE" when the substring is NOT present, and that brings my larger function to a halt.
Here's the function I'm trying to use:
Code:
=IF(SEARCH("-flac",C15),"y","")
Use of the FIND function in place of SEARCH yields the same result. I can find no way around this problem, and Google search for solutions yielded no usable results.
Any suggestions? Ideas? Any would be most appreciated. There surely is a solution to this problem...
Thanks!
Comment