Deleting Lead Zeros

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

Is there a function in Excel that allows the lead zeros to be removed. The
first number in the list has 3 zeros and the final 2 zeros. What would be
the best method to remove?

00076245
00076273
00224278
00258071
00250746

I'd appreciate any assistance the group can offer.

TIA - H
 
Hi Hardip,

Formatting the column as Number removes leading zeros.
If you want to keep the column as text, select the column, choose replace,
write 0 in to be replaced, write "" (empty string) in replaced by, and select
replace all!

Regards,
Stefi


„Hardip†ezt írta:
 
Sorry, the second case is wrong, because it will replace all zeros not only
the leading ones.
Instead: supposed the cell to be converted is A2, use a helper column with
the function =text(value(A2),"@")


Regards,
Stefi

„Hardip†ezt írta:
 
Thanks for replying people.

I tried all the examples and found Krishna's example worked. However,
thanks to all who replied.

Best - H
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top