Spreadsheet function that mimics "LIKE"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a spreadsheet function that works like "Like" in VBA? I need to use
a spreadsheet function to identify if a certain pattern exists in a cell for
example:

###.###.####.######.###.##.###

I know this can be done in VBA, as I myself have used it often. But, is
there a spreadsheet function equivalent to "Like"?

If so, please post back with it. Thanks much in advance.
 
Hi
have a look at FIND and SEARCH
or use
=IF(COUNTIF(A1,"*text_to_search*")>0,"found","not found")
 
Thanks Frank, I will have a look.

[I've been coding in VBA for so long, I'm rusty on my functions.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top