Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing text before a hypen [-]
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. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing text before a hypen [-]
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. "mrmnz" wrote: 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. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing text before a hypen [-]
I would try DataText to ColumnsDelimited by other(-)Next.
Select column 1 and "do not import(skip)" and Finish. Just the numbers will remain. Gord Dibben MS Excel MVP On Tue, 30 Sep 2008 14:05:03 -0700, mrmnz wrote: 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. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing text before a hypen [-]
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" |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Removing text before a hypen [-]
It's OK guys - I've found out how to do it thanks to you and your help.
"mrmnz" wrote: 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" |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Removing Text | Excel Discussion (Misc queries) | |||
Removing text from a cell with text and numbers | Excel Discussion (Misc queries) | |||
Removing text | Excel Discussion (Misc queries) | |||
How can I copy characters from a cell that follow a hypen | Excel Discussion (Misc queries) | |||
Ignoring everthing after a hypen | Excel Discussion (Misc queries) |