General Question

nikipedia's avatar

How do you use wildcards in Excel?

Asked by nikipedia (28095points) March 31st, 2009

Okay, technically I’m not using excel. I have tried to write this formula in both Open Office and Google spreadsheets and have the same problem with both.

I would like to find every cell that contains the term “xyz” but every cell has [some random stuff then xyz.] I was hoping to solve this problem by searching for *xyz, but excel seems to be taking this literally and ONLY returns results for ”*xyz” rather than [anything xyz].

Is there a trick to telling excel that I mean to use * as a wildcard rather than as an actual character?

Observing members: 0 Composing members: 0

3 Answers

phoenyx's avatar

I don’t know about excel, but if I remember correctly Open Office uses regular expressions for it’s searches. In regular expressions __asterisk__ means “match zero or more of whatever precedes.” If you want to match any character you represent it with a ’.’, so ’.__asterisk__’ will match any number of any character. To search for something ending with “xyz” you’d use ”.__asterisk__xyz” and to match anything that had “xyz” in it you’d use ”.__asterisk__xyz.__asterisk__ ”

(It’s treating all of the asterisks as textile markup and I can’t figure out how to escape them. Please replace __asterisk__ with * when you read it.)

I hope that helps. I’m going to install it on my current computer and try it out.

phoenyx's avatar

It looks like when you do a search (using Open Office) you have to click the “More Options” button and select the “regular expressions” check box for it to work.

In case it wasn’t clear, to match any number of any characters you need the wildcard:
.*

nikipedia's avatar

You are 100% correct—I eventually got it after much googling and toil. Thank you so much.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther