ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Deleting Lead Zeros (https://www.excelbanter.com/excel-worksheet-functions/43215-deleting-lead-zeros.html)

Hardip

Deleting Lead Zeros
 
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

Stefi

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:

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


Stefi

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:

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


Krishnakumar


Hi,

Try,

=VALUE(A1)

HTH


--
Krishnakumar


------------------------------------------------------------------------
Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138
View this thread: http://www.excelforum.com/showthread...hreadid=400738


Hardip

Thanks for replying people.

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

Best - H

"Krishnakumar" wrote:


Hi,

Try,

=VALUE(A1)

HTH


--
Krishnakumar


------------------------------------------------------------------------
Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138
View this thread: http://www.excelforum.com/showthread...hreadid=400738




All times are GMT +1. The time now is 03:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com