Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Mark Y via OfficeKB.com
 
Posts: n/a
Default Strip out text copy and paste?

Hello all,

I have some text in cells A2 - A646 as below

Smith, John (LD)
Gummerson, Liz (SDLP)

The lengths of names are variable but first name is always seperated by a
comma and second name is followed by a space.

What I need to do, if possible, is to copy the first name into cell H2 and
second name into cell I2

Is there any straightforward way of doing this?

Many thanks in advance

Mark
www.familyfund.org.uk

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200512/1
  #2   Report Post  
Posted to microsoft.public.excel.newusers
JE McGimpsey
 
Posts: n/a
Default Strip out text copy and paste?

One way:

If the first name is always followed by a left paren, as well:

H2: =TRIM(MID(LEFT(A2,FIND("(",A2)-1),FIND(",",A2)+1,255))
I2: =LEFT(A2,FIND(",",A2)-1)


In article <587a46a3fb6a8@uwe, "Mark Y via OfficeKB.com" <u12713@uwe
wrote:

Hello all,

I have some text in cells A2 - A646 as below

Smith, John (LD)
Gummerson, Liz (SDLP)

The lengths of names are variable but first name is always seperated by a
comma and second name is followed by a space.

What I need to do, if possible, is to copy the first name into cell H2 and
second name into cell I2

Is there any straightforward way of doing this?

Many thanks in advance

Mark
www.familyfund.org.uk

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Mark Y via OfficeKB.com
 
Posts: n/a
Default Strip out text copy and paste?

WOW!!

Thats exactly what I needed and such a speedy reply! As per usual this forum
comes up number 1 again,

Thanks again!!

Mark :-)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200512/1
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
How do I copy and paste an Illustratorsketch with text into Excel Suzanne Excel Discussion (Misc queries) 0 November 3rd 05 07:57 PM
How can I copy and paste the text of a formula? Jeff Excel Worksheet Functions 1 August 30th 05 03:45 PM
Copy and paste text and dates Kitty Excel Discussion (Misc queries) 5 March 15th 05 11:03 PM
Copy and Paste to a Text Box Margie Excel Discussion (Misc queries) 1 January 7th 05 04:31 PM
How do I edit, copy and paste text in excel cells? floridactyl New Users to Excel 2 December 31st 04 03:52 PM


All times are GMT +1. The time now is 03:37 PM.

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"