Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ccj ccj is offline
external usenet poster
 
Posts: 1
Default parsing field

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default parsing field

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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default parsing field

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 wrote in message
...
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
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
Parsing Out a Month from a date field Warm FL Excel Discussion (Misc queries) 3 January 7th 10 08:29 PM
Parsing Last Character in variable length text field Traci Excel Worksheet Functions 3 October 4th 07 04:11 PM
Parsing excel field help ! [email protected] New Users to Excel 6 February 4th 07 09:31 AM
Instead of Parsing Krish Excel Discussion (Misc queries) 1 November 4th 06 08:32 PM
parsing a date field carriex3 Excel Discussion (Misc queries) 2 August 1st 06 09:30 PM


All times are GMT +1. The time now is 10:53 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"