ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   "contains" function (https://www.excelbanter.com/excel-discussion-misc-queries/81180-re-contains-function.html)

SteveG

"contains" function
 

Try this instead.

=IF(ISNUMBER(SEARCH("Golf",B1,1)),"*","")

Your OP formula says to put an asterik if the search returns an error
so if it is not there then it will return the * but it shouldn't if it
is there.

Does that help?

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=529261



All times are GMT +1. The time now is 03:02 AM.

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