I need to get large numbers within a string, no leading zeros

pencil pusher

New Member
Joined
Feb 24, 2016
Messages
11
Hi,

So I have a list of data that looks somewhat like this

ABC00004
ABC01085
ABC00334
ABC00100

I want it to look like this

4
1085
334
100

The ongoing theme is that there will always be 3 letters and then numbers after it.

I want to capture the number only, and with no leading zeros, but I can't figure out how.

As a starting point, I tried using this formula below, but it cuts data like ABC01085 down to 85 instead of 1085 and ABC00100 comes up blank. Any ideas on how to fix this to meet my needs is appreciated!


Code:
=RIGHT(A1,LEN(A1)-FIND("@",SUBSTITUTE(A1,"\","@",LEN(A1)-LEN(SUBSTITUTE(A1,"\","")))))
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Copy B1 down.
Excel Workbook
AB
1ABC000044
2ABC010851085
3ABC00334334
4ABC00100100
Sheet3
 
Upvote 0
I forgot to show the version of this formula that made for me...

it looks like this

Code:
=RIGHT(A1,LEN(A1)-FIND("@",SUBSTITUTE(A1,"0","@",LEN(A1)-LEN(SUBSTITUTE(A1,"0","")))))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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