Like operator as a worksheet-function

  • Thread starter Thread starter Tom
  • Start date Start date
Hi Tom,

The Search() function enables you to do this.
It is using a limited number of metacharacters: * and ?

Regards,

Daniel M.
 
Daniel

I'd like to make a worksheet function like this:

=If(B1 Like "##/###", True, False)

Tom
 
Tom,

You can't do it that way. However, you can use the * and ?
wildcard characters in a COUNTIF, so try something like

=IF(COUNTIF(B1,"??/???"),TRUE,FALSE)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Thank you!


Chip Pearson said:
Tom,

You can't do it that way. However, you can use the * and ?
wildcard characters in a COUNTIF, so try something like

=IF(COUNTIF(B1,"??/???"),TRUE,FALSE)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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