Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
00080236528-GP0KA

I need the leading zeros to go away.
leaving me with
80236528-GP0KA

thanks

<tbody>
</tbody>

<tbody>
</tbody>
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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,215,086
Messages
6,123,043
Members
449,092
Latest member
ikke

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