I am trying to separate names into two or more different columns but am running into a problem.
My data is in Cell A1 and is formatted as Initials, a hyphen, then the first and last name. There is no space, only a comma, between the next name, so it looks like:
JED - John Doe,JMD - Jane Doe
The following formulas work great if I only have two names in A1:
I'm using this formula to locate everything LEFT of a comma and it works great.
'B1: =LEFT(A1,FIND(",",A1)-1)'
I'm using this formula to pull everything RIGHT of the comma, and it also works great.
'C1: =RIGHT(A1,LEN(A1)-FIND(",",A1)-1)'
My problem is, what do I do if I have THREE, or more, names separated by only a comma (no spaces)? Currently, the second formula "RIGHT" results in the right two names being placed in the same column.
I can't figure out how to separate this all out into individual columns.
Any help would be greatly appreciated!
My data is in Cell A1 and is formatted as Initials, a hyphen, then the first and last name. There is no space, only a comma, between the next name, so it looks like:
JED - John Doe,JMD - Jane Doe
The following formulas work great if I only have two names in A1:
I'm using this formula to locate everything LEFT of a comma and it works great.
'B1: =LEFT(A1,FIND(",",A1)-1)'
I'm using this formula to pull everything RIGHT of the comma, and it also works great.
'C1: =RIGHT(A1,LEN(A1)-FIND(",",A1)-1)'
My problem is, what do I do if I have THREE, or more, names separated by only a comma (no spaces)? Currently, the second formula "RIGHT" results in the right two names being placed in the same column.
I can't figure out how to separate this all out into individual columns.
Any help would be greatly appreciated!