Function ISLIKE(Text As String, pattern As String) As Boolean
' TRUE if the first argument is like the second
' JOKERS: ? : any single char. * : any string
If Text Like pattern Then ISLIKE = True _
Else ISLIKE = False
End Function
Used as a worksheet func, you can type '=IF(ISLIKE(A1;"bla*"=FALSE;"DIFFERENT!";"SIMILAR!"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.