Find and Replace with wildcards?

C

Colin

Hello,

I have data in a worksheet that has some number and some letter values
sometimes followed by an asterisk.
I am trying to find all entries of a number followed by an asterisk and
format the cell and remove the asterisk.
I am halfway there using find and replace but starting to think this may not
be the best way to do it.
Any help greatly appreciated. Thanks
 
G

Gord Dibben

To find/replace an asterisk precede the asterisk by a tilde.

~*


Gord Dibben MS Excel MVP
 
C

Colin

Thanks Gord, I have got that far - I'm stuck on removing the asterisk only
and leaving the value and also how to differentiate between numeric data and
letters before the asterisk
 
R

Rick Rothstein \(MVP - VB\)

You are using Replace from Excel's menu, right? Put ~* in the "Find what"
field and remove anything in the "Replace with" field (this field should
have nothing in it) then hit the Replace or Replace All button.

Rick
 
C

Colin

Thanks for your replies, I have managed to resolve my problem. I didnt
explain myself fully and will make sure I do next time - thanks
 

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