ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Split data from one cell to two separate cells (https://www.excelbanter.com/excel-worksheet-functions/52255-split-data-one-cell-two-separate-cells.html)

Michele

Split data from one cell to two separate cells
 
How do you take "Smith, John" from one cell and create one cell with "Smith"
and another with "John"? Basically, the reverse of Concatenation.

Zack Barresse

Split data from one cell to two separate cells
 
Hi there,

Assuming it's in A1

Last:
=LEFT(A1,FIND(",",A1,1)-1)

First:
=RIGHT(A1,LEN(A1)-FIND(" ",A1,1))

If that is all the permutations you'll have, then you should be set. If you
happen to have any other names, middle initials, suffixes, then you'll need
another approach. Chip Pearson lines it out very well on his site here ...

http://www.cpearson.com/excel/FirstLast.htm

HTH

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)
To email, remove the NO SPAM. Please keep correspondence to the board, as
to benefit others.



"Michele" wrote in message
...
How do you take "Smith, John" from one cell and create one cell with
"Smith"
and another with "John"? Basically, the reverse of Concatenation.




Graham Haughs

Split data from one cell to two separate cells
 
Hi Micelle,
If in A1 then select this cell then you should also try out
the Data Text to Columns then follow instructions.

Regards
Graham Haughs

Michele wrote:
How do you take "Smith, John" from one cell and create one cell with "Smith"
and another with "John"? Basically, the reverse of Concatenation.



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

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