Microsoft Office Forums


Reply
Thread Tools Display Modes

Split name cell

 
 
Aaron Stamboulieh
Guest
Posts: n/a
 
      08-22-2003, 07:20 PM
I have a spreadsheet with one column that contains a list of names in the
following format:

LASTNAME, Firstname

Is it possible to automatically split this into two columns, one for
lastname, and one for firstname, using the comma as the basis of where to
make the split?

--
Aaron Stamboulieh - MCSA, A+


 
Reply With Quote
 
 
 
 
Dan E
Guest
Posts: n/a
 
      08-22-2003, 07:39 PM
Aaron,

Select your range containing the names
MAKE SURE you have an empty column to the right
From the menu "Data" -> "Text to Columns"
Choose delimited and choose comma as the delimiter

Dan E

"Aaron Stamboulieh" <(E-Mail Removed)> wrote in message news:#(E-Mail Removed)...
> I have a spreadsheet with one column that contains a list of names in the
> following format:
>
> LASTNAME, Firstname
>
> Is it possible to automatically split this into two columns, one for
> lastname, and one for firstname, using the comma as the basis of where to
> make the split?
>
> --
> Aaron Stamboulieh - MCSA, A+
>
>



 
Reply With Quote
 
Aaron Stamboulieh
Guest
Posts: n/a
 
      08-23-2003, 02:27 AM
Thanks everybody...I'm a network admin, my experience with Excel is limited.
Glad there are such helpful people around, even with such basic questions!
Much appreciated.

--
Aaron Stamboulieh - MCSA, A+

"Charley Kyd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sure. Suppose "Smith, Bill" (without the quotes) is in cell B2. You could
> enter these three formulas:
>
> In cell C2: =FIND(",",$B2)
> In cell D2: =TRIM(MID($B2,$C2+1,999))
> In cell E2: =LEFT($B2,$C2-1)
>
> Here, the first formula finds the position of the **first** comma in the
> name, and the other two formulas use that number to return what you want.
>
> However, you might run into a problem if your names include something

like:
> Smith, Jr., Bill. In this case, you want to split using the **last**

comma.
> To find the position of the last comma, cell C2 needs to use a more

complex
> formula:
>
> =FIND("#",SUBSTITUTE($B2,",","#",LEN($B2)-LEN(SUBSTITUTE($B2,",",""))))
>
> Here, we count the number of characters in B2, and subtract the number of
> characters with the commas stripped out, which gives us the number of
> commas. We substitute a "#" sign for that final comma, and use FIND to
> return the position of that # sign.
>
> (Other than writing a VBA function, can anyone suggest an easier way to

find
> the last occurrence of a character in text? This is the only method that
> I've found.)
>
> Good luck.
>
> Charley Kyd
>
> "Aaron Stamboulieh" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > I have a spreadsheet with one column that contains a list of names in

the
> > following format:
> >
> > LASTNAME, Firstname
> >
> > Is it possible to automatically split this into two columns, one for
> > lastname, and one for firstname, using the comma as the basis of where

to
> > make the split?
> >
> > --
> > Aaron Stamboulieh - MCSA, A+
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Split Text in Cell Jen Access Newsgroup 1 10-11-2007 02:34 PM
Split cell in table Melissa PowerPoint Newsgroup 2 06-07-2006 09:19 AM
Within excel how do I split a cell? Carole Hunt Access Newsgroup 2 01-10-2006 09:06 PM
How do I split information one cell into two? Texas Ruegg Access Newsgroup 4 03-01-2005 05:48 PM
Re: split cell AndrewK Excel Newsgroup 0 07-01-2003 05:50 AM



All times are GMT. The time now is 02:40 PM.
Microsoft Office Forums is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92