Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Text infinite1013 Excel Discussion (Misc queries) 5 August 4th 08 04:55 PM
Removing text from a cell with text and numbers DoubleZ Excel Discussion (Misc queries) 2 July 8th 08 10:14 PM
Removing text pokdbz Excel Discussion (Misc queries) 10 August 7th 07 01:44 AM
How can I copy characters from a cell that follow a hypen brantty Excel Discussion (Misc queries) 2 April 3rd 07 08:42 PM
Ignoring everthing after a hypen Steve Excel Discussion (Misc queries) 5 September 9th 05 08:37 PM


All times are GMT +1. The time now is 02:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"