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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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,695
Messages
6,126,261
Members
449,307
Latest member
Andile

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