I know there's a way to do this but I can't remember how... I have a first name and last name in one column separated by a comma. What's the method for moving one to another column?
Thank you smarties!
Excel question
Started by Abbylovi, Jun 08 2012 03:02 PM
8 replies to this topic
#1
Posted 08 June 2012 - 03:02 PM
It is better to have beans and bacon in peace than cakes and ale in fear.
#2
Posted 08 June 2012 - 03:18 PM
From the top menu -
Data / Text to Columns / select Delimited, press Next / select Comma and press Finish.
Data / Text to Columns / select Delimited, press Next / select Comma and press Finish.
“I have a dream of a multiplicity of pastramis.”
"None of you get it." - Wilfrid (on the Beatles)
"I don't have time to point out all the ways in which you're wrong" - irnscrabblechf52
"None of you get it." - Wilfrid (on the Beatles)
"I don't have time to point out all the ways in which you're wrong" - irnscrabblechf52
#3
Posted 08 June 2012 - 03:30 PM
Lex you rule.
It is better to have beans and bacon in peace than cakes and ale in fear.
#4
Posted 08 June 2012 - 03:36 PM
I live to serve.
“I have a dream of a multiplicity of pastramis.”
"None of you get it." - Wilfrid (on the Beatles)
"I don't have time to point out all the ways in which you're wrong" - irnscrabblechf52
"None of you get it." - Wilfrid (on the Beatles)
"I don't have time to point out all the ways in which you're wrong" - irnscrabblechf52
#5
Posted 08 June 2012 - 03:37 PM
Lex's plan is very easy. If you have a need to leave the original data alone or you are planning on sucking in another bunch of names in the future to add to the column you could parse the texts with functions. Assume your lastname, firstname data is in column A.
Last Name : Go to the cell B1 and enter =left(A1, find(",", A1)-1). This gives you the text string to the left of the comma. Then copy cell B1 down.
First Name : Go to cell C1 and enter =right(A1, len(A1) - find(" ", A1)). This gives you the text string to the right of the comma. Then copy cell C1 down.
Last Name : Go to the cell B1 and enter =left(A1, find(",", A1)-1). This gives you the text string to the left of the comma. Then copy cell B1 down.
First Name : Go to cell C1 and enter =right(A1, len(A1) - find(" ", A1)). This gives you the text string to the right of the comma. Then copy cell C1 down.
Suffocating under a pile of cheese curds.
#6
Posted 08 June 2012 - 04:51 PM
Can't you also do this stuff via simple cut / copy & paste? I.e., CTRL + X / C, move cursor to destination cell, CTRL + V?
Or am I missing the real question here?
Or am I missing the real question here?
It was hard to avoid the feeling that somebody, somewhere, was missing the point. I couldn't even be sure that it wasn't me. - Douglas Adams
Please come visit my rock concert blog: Tantalized.
Please come visit my rock concert blog: Tantalized.
#7
Posted 08 June 2012 - 08:09 PM
When you have a large quantity of data to move around (i.e. 1600 names), the Lex method is the way to do it.
It is better to have beans and bacon in peace than cakes and ale in fear.
#8
Posted 08 June 2012 - 09:26 PM
Ah, taht makes sense. Good tip from Lex then, one I may well need down the road.When you have a large quantity of data to move around (i.e. 1600 names), the Lex method is the way to do it.
It was hard to avoid the feeling that somebody, somewhere, was missing the point. I couldn't even be sure that it wasn't me. - Douglas Adams
Please come visit my rock concert blog: Tantalized.
Please come visit my rock concert blog: Tantalized.
#9
Posted 09 June 2012 - 04:13 AM
SLB's tip for setting up a permanent function is something I didn't know about but I would have welcomed.
“I have a dream of a multiplicity of pastramis.”
"None of you get it." - Wilfrid (on the Beatles)
"I don't have time to point out all the ways in which you're wrong" - irnscrabblechf52
"None of you get it." - Wilfrid (on the Beatles)
"I don't have time to point out all the ways in which you're wrong" - irnscrabblechf52












