Help with Truncating Alphabets from a cell in Excel

Dhiren Sheth

New Member
Joined
May 10, 2011
Messages
8
Hello,

I have a worksheet which contains a list of 400 stores in column A one below the other. The store number starts with DMB1234 and so on. I would like to remove the alphabets DMB from the store number and have just the number and do not want to do it manually for all the 400 stores. Is there a way I can do it using some formula.

Please help....

Thanks
Dhiren
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Is there always three letters at the beginning, and then a series of numbers?
 
Upvote 0
With a formula

=mid(a1,4,10)

that will allow up to 10 numbers.

For a permanent change withhout formula, select the range with the store numbers then run the code.

Code:
Sub removealpha()
    Selection.TextToColumns Destination:=Selection, DataType:=xlFixedWidth, _
        FieldInfo:=Array(Array(0, 9), Array(3, 1)), TrailingMinusNumbers:=True
End Sub
 
Upvote 0
Here something that works reagarless of number numbers or text as long as numbers and text are in that fashion "####AAAAA" as many as # or A (#=number, A=text)


Excel Workbook
CDE
11As textAs number
12aaa123451234512345
13abcdg123458901234589012345890
14asxrtyu216589216589216589
15xc904567839045678390456783
Sheet5
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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