Removing alphabets from range

JOHN007

New Member
Joined
Aug 7, 2014
Messages
38
can anyone help me out with a code to remove alphabets in a cells
example:

[TABLE="width: 239"]
<tbody>[TR]
[TD]input ----->[/TD]
[TD]output[/TD]
[/TR]
[TR]
[TD]ch0025[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]as234[/TD]
[TD]234[/TD]
[/TR]
[TR]
[TD]tr456[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]az123[/TD]
[TD]123[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
JOHN007, Good morning.

Try to use:

=MID(A1, 3, 100)*1

Is that what you want?

I hope it helps.
 
Upvote 0
JOHN007, Good morning.

The suggested formula does exactly what was requested following the model presented.

In your new example besides removing any existing alphabets in the cell you want the result to be number or text?

Because to stay 0025 will have to be text.

In the previous example it seemed that a number result was desired.
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,222
Members
453,024
Latest member
Wingit77

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