ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   splitting the values from one column into two (https://www.excelbanter.com/excel-discussion-misc-queries/26661-splitting-values-one-column-into-two.html)

Elise

splitting the values from one column into two
 
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?
--
Elise King-Lynch

Bob Phillips

DataText to Columns and choose a delimiter of comma

--
HTH

Bob Phillips

"Elise" wrote in message
...
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?
--
Elise King-Lynch




TomHinkle

Data menu,
Text to columns command

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

"Elise" wrote:

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?
--
Elise King-Lynch


Michael

Data - Text to Columns, delimited, use comma as the separater. HTH
--
Sincerely, Michael Colvin


"Elise" wrote:

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?
--
Elise King-Lynch


ClaytonS

Do a "Text to Column" under "Data". Be sure to insert an extra column before
you split your text first.

"Elise" wrote:

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?
--
Elise King-Lynch


Peo Sjoblom

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
datatext 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 editpaste
special as values in place to make them independent of the name column

Regards,

Peo Sjoblom

"Elise" wrote:

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?
--
Elise King-Lynch


Elise

Thanks so much.
--
Elise King-Lynch


"TomHinkle" wrote:

Data menu,
Text to columns command

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

"Elise" wrote:

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?
--
Elise King-Lynch



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com