Formula Help First name first last name last remove comma

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,133
Office Version
  1. 365
Platform
  1. Windows
HI i need to flip last name in column E to First name first and remove comma. Anyway also the formula can be in one cell only F thanks.

Positive Pay Upload File10.11.46.csv
EF
1NameForumla
2Agualongo, GiovanniGiovanni Agualongo
3Daniel Alcantara, CarlosCarlos Daniel Alcantara
4Aguilar, Vicente TVicente T Aguilar
Test
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
There is probably a more efficient way but this worked for me

=RIGHT(E2,LEN(E2)-SEARCH(",",E2)-1)&" "&LEFT(E2,SEARCH(",",E2)-1)

1735919144250.png
 
Upvote 0
How about
Excel Formula:
=MAP(E2:E4,LAMBDA(m,TEXTJOIN(" ",,CHOOSECOLS(TRIM(TEXTSPLIT(m,",")),2,1))))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0
Why not... here is one more method for the collection
Excel Formula:
=MID(E2:E4&" "&E2:E4,FIND(",",E2:E4)+2,LEN(E2:E4)-1)
And if you have the LET function available in your version of Excel, this is slightly shorter...
Excel Formula:
=LET(e,E2:E4,MID(e&" "&e,FIND(",",e)+2,LEN(e)-1))
 
Upvote 0
Sorry for jumping in on this thread...what if I had first and last names without the "," and wanted to just report the persons last name in a cell?

Bob Jones
Bob Barker
Mike Andrewjeski

Thank you,
VinceF
Win10
Office2019
 
Upvote 0

Forum statistics

Threads
1,225,371
Messages
6,184,581
Members
453,244
Latest member
Todd Luet

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