ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel Search function (https://www.excelbanter.com/excel-discussion-misc-queries/69792-excel-search-function.html)

dm2504

Excel Search function
 
I have a text string that I want to search to find a particular sub-string
and I am using the SEARCH function. If the result fails to find it, the
result is the #VALUE!. Is there a way to display a zero (0) instead - I would
like to manipulate the result.
Thanks.
--
David

Don Guillett

Excel Search function
 
use isserr
=IF(ISERR(SEARCH("ccc",G8)),"",SEARCH("ccc",G8))
--
Don Guillett
SalesAid Software

"dm2504" wrote in message
...
I have a text string that I want to search to find a particular sub-string
and I am using the SEARCH function. If the result fails to find it, the
result is the #VALUE!. Is there a way to display a zero (0) instead - I
would
like to manipulate the result.
Thanks.
--
David




Tom Ogilvy

Excel Search function
 
For clarity
to show a zero it would be modified to

=IF(ISERR(SEARCH("ccc",G8)),0,SEARCH("ccc",G8))


--
Regards,
Tom Ogilvy



"Don Guillett" wrote in message
...
use isserr
=IF(ISERR(SEARCH("ccc",G8)),"",SEARCH("ccc",G8))
--
Don Guillett
SalesAid Software

"dm2504" wrote in message
...
I have a text string that I want to search to find a particular

sub-string
and I am using the SEARCH function. If the result fails to find it, the
result is the #VALUE!. Is there a way to display a zero (0) instead - I
would
like to manipulate the result.
Thanks.
--
David







All times are GMT +1. The time now is 01:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com