Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm trying to use an IF statement with my SEARCH function so that if a "-" is
found I will do one thing but if it is not found it will do something else. However, the statement bombs when there is no "-" found. It returns the #VALUE! and it no longer evaluates my IF expression. It just stops and returns the error value instead of giving it the value I put in the IF statement for false. Anyone know how to get around that? my test statement looks like this: =IF(SEARCH("-",B178) 0, "True", "FALSE") |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(ISNUMBER(SEARCH("-",B178)), "True", "FALSE")
or if you want a logical rather than text =ISNUMBER(SEARCH("-",B178)) -- David Biddulph jhchan wrote: I'm trying to use an IF statement with my SEARCH function so that if a "-" is found I will do one thing but if it is not found it will do something else. However, the statement bombs when there is no "-" found. It returns the #VALUE! and it no longer evaluates my IF expression. It just stops and returns the error value instead of giving it the value I put in the IF statement for false. Anyone know how to get around that? my test statement looks like this: =IF(SEARCH("-",B178) 0, "True", "FALSE") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
LookUp Function with Two Column Search Returning One Column Value | Excel Worksheet Functions | |||
Vlookup Function returning #N/A error for two entries | Excel Discussion (Misc queries) | |||
GetPivotData function returning N/A error for some rows | Excel Discussion (Misc queries) | |||
FIND or SEARCH Returning Erroneous #VALUE? | Excel Worksheet Functions | |||
Custom function returning VALUE error | Excel Discussion (Misc queries) |