splitting the values from one column into two

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have spreadsheet that has a column for names. The names have been input as
follows: lastname, firstname". Is there a way to copy the first name to a
new column and the last name to a different column?
 
Data menu,
Text to columns command

It will handle delimited or fixed width data in one column to several
 
Do a "Text to Column" under "Data". Be sure to insert an extra column before
you split your text first.
 
There are probably some names that would need to be altered manually but
using your eaxample

=LEFT(A1,find(",",A1)-1)

for the last name, assum you put this in B1, then for first name in C1

=TRIM(SUBSTITUTE(A1,B1&",",""))

or you can make sure the next column to the right is empty, then do
data>text to columns, delimited, select comma and click finish

That will basically split the columns into 2

Also when you are done with the formulas, copy them, then do edit>paste
special as values in place to make them independent of the name column

Regards,

Peo Sjoblom
 
Thanks so much.
--
Elise King-Lynch


TomHinkle said:
Data menu,
Text to columns command

It will handle delimited or fixed width data in one column to several
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top