ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   text string (https://www.excelbanter.com/excel-worksheet-functions/237132-text-string.html)

Dinesh

text string
 
I have a following formula to extact text string.

=IF(ISERROR(SEARCH("Blind Discount",A3)),"","Blind Discount")

I want to add one more criteria. If the text string has "DLL" or "KEY" word
in it, then I want result to be null otherwise "Blind Discount".

thanks,
Dinesh


Bob Phillips[_3_]

text string
 
Do you mean


=IF(OR(NOT(ISERROR(SEARCH("DLL",A3))),NOT(ISERROR( SEARCH("KEY",A3)))),"",IF(ISERROR(SEARCH("Blind
Discount",A3)),"","Blind Discount"))




--
__________________________________
HTH

Bob

"Dinesh" wrote in message
...
I have a following formula to extact text string.

=IF(ISERROR(SEARCH("Blind Discount",A3)),"","Blind Discount")

I want to add one more criteria. If the text string has "DLL" or "KEY"
word
in it, then I want result to be null otherwise "Blind Discount".

thanks,
Dinesh




Jacob Skaria

text string
 
One way to do this...

(all in one line)
=IF(MIN(SEARCH({"dll","key","Blind Discount"},A3&{"dll","key","Blind
Discount"}))LEN(A3),"","Blind Discount")

If this post helps click Yes
---------------
Jacob Skaria


"Dinesh" wrote:

I have a following formula to extact text string.

=IF(ISERROR(SEARCH("Blind Discount",A3)),"","Blind Discount")

I want to add one more criteria. If the text string has "DLL" or "KEY" word
in it, then I want result to be null otherwise "Blind Discount".

thanks,
Dinesh



All times are GMT +1. The time now is 04:39 PM.

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