Splitting Words in Excel

Chanmal

New Member
Joined
Aug 18, 2015
Messages
1
Dear All,

I have a list of information in one table e.g PaulSmith and I need to separate the First name in one column and the Surname in other column. There is no type of delimiter in these words, so I think that first a comma or a space need to be inserted before I split up the words. Kindly, could you please help me formulate this type of formula.

Thanks in Advance.
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You haven't supplied much test data so the only obvious delimiter is the capital letter of the surname which raises the question are you liable to get

PaulCSmith
FredTRSmith
BertJamesEvans

in which case that solution won't work since you won't know how many middle initials there will be.

I guess you could try and identify the last capital letter in the name

As long as you don't have things like

PaulSmith Ba.
FredJones A.C.E.
 
Upvote 0
Slightly adapted a formula from here:

Daily Dose of Excel » Blog Archive » Find Position of First Capital Letter in a String


Excel 2010
ABCD
1StringSurnameCapitalFirst NameSurname
2DanStevens4DanStevens
3JohnPhillips5JohnPhillips
4ShaneFord6ShaneFord
Sheet1
Cell Formulas
RangeFormula
C2=LEFT(A2,B2-1)
D2=MID(A2,B2,LEN(A2)-B2+1)
B2{=MATCH(TRUE,ABS(CODE(MID($A2,ROW($1:$255)+1,1))-77.5)<13,0)+1}
Press CTRL+SHIFT+ENTER to enter array formulas.


Of course this will only work IF:

* Each word is Proper Case
* The only have one First Name
* The surname starts at the second Upper Case Character
* etc....
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

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