ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   zero fill leading digits (https://www.excelbanter.com/excel-discussion-misc-queries/133653-zero-fill-leading-digits.html)

RLB

zero fill leading digits
 
Hi,
I need to zero fill field then import result into a program that requires
numbers not text or blanks in field. Program will accept ".dbf,.csv or.txt"
file formats only. I tried repeat function but when I save in one of the
formats excel converts zero to text not number. This then is kicked out by
program.
thanks.

joel

zero fill leading digits
 
I think you need a custom format that keeps leading zeroes. In the format
menu - Numbers - Custom either use one of the custom formats or create your
own. In a formula you can do the same thing with the text statement such as
=text(mynumber,"0.00")

"RLB" wrote:

Hi,
I need to zero fill field then import result into a program that requires
numbers not text or blanks in field. Program will accept ".dbf,.csv or.txt"
file formats only. I tried repeat function but when I save in one of the
formats excel converts zero to text not number. This then is kicked out by
program.
thanks.



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

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