Formula to separate names

Prasad K

Board Regular
Joined
Aug 4, 2021
Messages
189
Office Version
  1. 2016
  2. 2007
Platform
  1. Windows
i have applied formula to separate first and middle and last within special characters in cell

here middle name not extracted full i have applied formula like this


Data Validation.xlsx
ABCD
14Mohan/Prasad-RaoMohanPraRao
15Vamsi/Prasad-VermaVamsiPrasaVerma
Sheet1
Cell Formulas
RangeFormula
B14:B15B14=LEFT(A14,FIND("/",A14)-1)
C14:C15C14=MID(A14,FIND("/",A14)+1,LEN(A14)-FIND("-",A14,FIND("/",A14)-1))
D14:D15D14=RIGHT(A14,LEN(A14)-FIND("-",A14,FIND("-",A14)-1))
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try this in C14=MID(A14,FIND("/",A14)+1,(FIND("-",A14)-FIND("/",A14))-1)
 
Upvote 0
Solution
A couple of other possible options

22 06 14.xlsm
ABCD
14Mohan/Prasad-RaoMohanPrasadRao
15Vamsi/Prasad-VermaVamsiPrasadVerma
Split Text
Cell Formulas
RangeFormula
B14:B15B14=LEFT(A14,FIND("/",A14)-1)
C14:C15C14=MID(A14,LEN(B14)+2,LEN(A14)-LEN(B14&D14)-2)
D14:D15D14=REPLACE(A14,1,FIND("-",A14),"")
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,102
Members
449,205
Latest member
ralemanygarcia

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