Removing zeroes in number format

DebbyH

New Member
Joined
Oct 13, 2015
Messages
8
Our customer numbers begin with A followed by four zeroes and a string of numbers.

Example: A00002121256438
A00002178164211
A00002191112936
A00002152291978


How can I create a formula to remove the 4 zeroes following the letter A so that the output is as follows:

A2121256438
A2178164211
A2191112936
A2152291978

Any assistance would be appreciated.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Use the SUBSTITUTE function:
Code:
=SUBSTITUTE(A1,"0000","")
 
Upvote 0
Another option:

="A"&--SUBSTITUTE(A1,"A","")
What if (at some future date) there are 5 or 6 leading zeroes (after the "A")... the OP indicated he only wanted the first four zeroes removed (because they are always going to be zero).
 
Last edited:
Upvote 0
Don't see why they would want to convert A000000xxxx into A00xxxx. But this is pure speculation.

On the other hand, if they start having 3 leading zeros in the same 15-position string, my solution would still work. But again, this is pure speculation.
 
Upvote 0
Don't see why they would want to convert A000000xxxx into A00xxxx. But this is pure speculation.

On the other hand, if they start having 3 leading zeros in the same 15-position string, my solution would still work. But again, this is pure speculation.
The OP specifically said... "Our customer numbers begin with A followed by four zeroes and a string of numbers."... the A and 4 zeroes are always there and, for whatever reason, the OP wants to keep the "A", remove those guaranteed 4 zeroes and leave the "string of numbers" that remain. Personally, I do not see and wiggle room in interpreting that.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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