Splitting text in a cell
Hi,
assumed your data is like: first name+one space+and+onespace+second name
and your data is in column A
for the first name in the cell B2 enter formula below and then copy drag
down to where you need:
=LEFT(A1,Find("and",A1)-2)
for the second name in the cell C2 enter formula below and then copy drag
down to where you need:
=RIGHT(A1,LEN(A1)-3-FIND("and",A1))
Thanks,
--
Farhad Hodjat
"Richard_123" wrote:
Hello,
In Excel 2007, I have a series of cells with the names of two people in them
in the format of "Person One and Person Two". Is there any function which
could put each person's name in a different cell, by looking for the word
"and" to use to decide where to split the text?
I know that if each persons name was the same length, I could use the LEFT
and RIGHT functions, but as name lengths vary, I cannot use these functions
for this.
Thank you.
|