Separating a cell containing person last name nad first name with comma into 2 separate cells

stvK23

New Member
Joined
Feb 12, 2014
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
Hi

I am trying to separate a cell (Employee Name) into First Name and Last Name into separate cells.

[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]Employee Name[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[/TR]
[TR]
[TD]WILLIAMS, John Peter[/TD]
[TD]John[/TD]
[TD]Williams[/TD]
[/TR]
</TBODY>[/TABLE]





[TABLE="width: 348"]
<TBODY>[TR]
[TD]Thanks[/TD]
[TD]</SPAN>[/TD]
[/TR]
[TR]
[TD]S[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL></COLGROUP>[/TABLE]
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi

I am trying to separate a cell (Employee Name) into First Name and Last Name into separate cells.

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[/TR]
[TR]
[TD]WILLIAMS, John Peter[/TD]
[TD]John[/TD]
[TD]Williams[/TD]
[/TR]
</tbody>[/TABLE]
Try this formulas...

First Name: =TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",99)),100,99))

Last Name: =PROPER(LEFT(A1,FIND(",",A1)-1))
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top