search for text "beginning with" "containing" wildcards

D

David H

I have numerous occasions where functions (like countif) need to report on
cells containing text strings or starts with text strings.

In various database utilities there are wildcards which provide this
functionality, but what about in Excel, do any wildcards work ?
 
D

Dave Peterson

In some functions, they do:

=countif(a1:a10,"text*")
=countif(a1:a10,"*text")
=countif(a1:a10,"*text*")

And you can use
"*" & x99 & "*"
as the second argument.

If you want to look for an asterisk character, use ~* in the string.
If you want to look for a question mark, use ~? in the string.
If you want to look for a tilde (~), use ~~ in the string.
 

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

Top