Split the Number

S.H.A.D.O.

Well-known Member
Joined
Sep 6, 2005
Messages
1,915
Hi Everyone,

I have a List in the Format :-

Excalibur2
Excalibur3
Excalibur1
Excalibur4


What I would like to do is to get it to Show as ...

Excalibur 2
Excalibur 3
Excalibur 1
Excalibur 4

... so the Number at the End is NOT Attached to the Name Please.

All the Best.
SHADO
 

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)

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
If you always have a single digit

=REPLACE(A1,LEN(A1),0," ")

if there may be a variable number of digits, possibly none

=TRIM(REPLACE(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&1234567890)),0," "))

edited formula
 

S.H.A.D.O.

Well-known Member
Joined
Sep 6, 2005
Messages
1,915
Brilliant Barry, Thank You VERY Much.

Have a Great Weekend.
All the Best.
SHADO
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
No problem

Note that I edited the second formula because if there were no digits my first formula would have added a space at the end, the additional TRIM function removes that
 

Forum statistics

Threads
1,136,926
Messages
5,678,606
Members
419,775
Latest member
joh93

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
Top