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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,223,981
Messages
6,175,773
Members
452,668
Latest member
mrider123

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