ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to avoid value losing zero in front of digits?? (https://www.excelbanter.com/excel-discussion-misc-queries/195512-how-avoid-value-losing-zero-front-digits.html)

capxc

How to avoid value losing zero in front of digits??
 
I have a column D formated to 12 digit so that the values that have 11 digit
have 0 added in front of them to make them 12 digit.

Then I applied another formula ="01KF9H"&D.. in order to 01KF9H in front of
the 12 digits values in the column. When I copied the formula, I notice that
those digits with 0 in front of them lost the 0 and turned back to 11
digits. How do i make that column keep all the 12 digits values when adding
the new formula?

Please teach me.
Sincerely,
--
capxc

Dave Peterson

How to avoid value losing zero in front of digits??
 
="01KF9H"&text(d1,"000000000000")
or
="01KF9H"&text(d1,rept(0,12))



capxc wrote:

I have a column D formated to 12 digit so that the values that have 11 digit
have 0 added in front of them to make them 12 digit.

Then I applied another formula ="01KF9H"&D.. in order to 01KF9H in front of
the 12 digits values in the column. When I copied the formula, I notice that
those digits with 0 in front of them lost the 0 and turned back to 11
digits. How do i make that column keep all the 12 digits values when adding
the new formula?

Please teach me.
Sincerely,
--
capxc


--

Dave Peterson


All times are GMT +1. The time now is 06:22 PM.

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