Removing text before a hypen [-]

M

mrmnz

I have a list as follows:
timothy - 29
james - 32
brian - 41

I want to get rid of the "timothy - " so just "29" remains.

I have tried Find and Replace using ? - and * - and leaving replace empty.
But it doesn't work. What am I doing wrong?

Thanks.
 
J

JMB

Find/Replace using *- worked fine for me. You can also try using Data/Text
To Columns using "-" as the delimiter to separate the text and delete the
column of names you don't need.
 
G

Gord Dibben

I would try Data>Text to Columns>Delimited by other(-)>Next.

Select column 1 and "do not import(skip)" and Finish.

Just the numbers will remain.


Gord Dibben MS Excel MVP
 
M

mrmnz

OK - that's was great. Thanks a lot.

Now how do I do the same thing but this time removing the " - 29" and
leaving just "Timothy"
 

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