strip off leading zeros

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
[TABLE="width: 203"]
<tbody>[TR]
[TD="class: xl65, width: 203"]00080236528-GP0KA

I need the leading zeros to go away.
leaving me with
[TABLE="width: 203"]
<tbody>[TR]
[TD="class: xl65, width: 203"]80236528-GP0KA

thanks[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Note, there are varying numbers of 0s' and the length of the string isnt the same all the time.
 
Last edited:
@ jtakw:

Your solution would work only if Joe4's assumption (Post # 2) is correct, which may/may not be the case.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
New solution:


Book1
AB
100080236528-GP0KA80236528-GP0KA
Sheet1
Cell Formulas
RangeFormula
B1=MID($A1,MIN(SEARCH({1,2,3,4,5,6,7,8,9},$A1&"0123456789")),LEN($A1))


WBD
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,760
Messages
6,186,874
Members
453,381
Latest member
tcell

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