PC Review


Reply
Thread Tools Rate Thread

parsing field

 
 
ccj
Guest
Posts: n/a
 
      11th Nov 2003
I receive a worksheet weekly that comes with both the last
name and first initial in the same field (jones c). I
would like to have the last name in one field and the
first initial in another field. How would I do this?
Thanks
 
Reply With Quote
 
 
 
 
RWN
Guest
Posts: n/a
 
      11th Nov 2003
Select the values
Data->Text To Columns
Select the "Delimited" box <Next>
Select "Space" as the delimiter (and de-select any others that may get
in the way (comma's for ex))
<Next> etc.
This will split the names for you.
Depending on the makeup of the names you may have to do some "playing
around" If, for ex, the last name has a space in it, then XL will parse
it on the first delimiter it finds, which will split the last name.
Read the Help on the subject


--
Regards;
Rob

Please reply to the NG, I'm already up to my eyeballs in Nigerian/South
African get rich letters
as well as "Microsoft Critical Updates" et al.


 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      11th Nov 2003
Make sure the column to the right is blank (or insert a column)

select the column with the data and do Data=>Text to Columns

Select delimited and space as the delimiter.

If you have last names with embedded spaces, this will not work.

You could use a formula
B2
C2
=trim(left(Trim(A2),len(trim(A2))-1)) =Right(Trim(A2),1)

drag fill the formulas down the column.

Regards,
Tom Ogilvy

ccj <(E-Mail Removed)> wrote in message
news:055401c3a884$84f87250$(E-Mail Removed)...
> I receive a worksheet weekly that comes with both the last
> name and first initial in the same field (jones c). I
> would like to have the last name in one field and the
> first initial in another field. How would I do this?
> Thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing HTML in .Net (Document Object Model Parsing) Jarod_24 Microsoft VB .NET 0 4th Apr 2006 06:23 PM
parsing text field based on commas or spaces =?Utf-8?B?RXhjZWwgVXNlcg==?= Microsoft Excel Programming 1 22nd Oct 2004 09:34 PM
Parsing Out or separating one field into multiple fields Microsoft Access 5 2nd Oct 2004 09:27 PM
expression built sting / Parsing text field Andre Microsoft Access 2 25th Jun 2004 04:39 PM
Parsing a URL from a field and replacing with HTML code VT_Hokie Microsoft Access Forms 0 16th Jul 2003 09:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 AM.