Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bbc1
 
Posts: n/a
Default Extracting names in a cell

I have a column of names Adams,John William which I wish to extract to
seperate columns John in a coloum and Adams in another.

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Try Data/Text to Columns... Select Delimited, click Next, and check the
comma (and if desired, the space) characters. If you dont' want the
Middle name, click Next, select the third column and choose the Do Not
Import radio button then click Finish, otherwise, just click Finish.

In article ,
"bbc1" wrote:

I have a column of names Adams,John William which I wish to extract to
seperate columns John in a coloum and Adams in another.

  #3   Report Post  
nbrcrunch
 
Posts: n/a
Default


The functions you'll need are probably LEFT(), MID(), RIGHT() and
FIND()

See Excel helpfile for syntax of each.

To "extract" the last name, you'll use something like:
=LEFT([source],FIND(",",[source],1))

To isolate the first name (after the comma) you would use the MID()
function. Set the starting point to once again FIND the comma but start
1 character after it. Then again FIND a space (" ") which is the first
character after the first name.


--
nbrcrunch
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
Extracting File Names and Properties Albacore33 Excel Worksheet Functions 3 February 10th 05 03:23 PM
Sheet Names and Cell References Reed Excel Worksheet Functions 1 January 19th 05 10:17 PM
extracting cell location Scott Excel Discussion (Misc queries) 1 December 16th 04 07:55 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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

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

About Us

"It's about Microsoft Excel"