Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default A fixed field format needs fronting zeroes for each cells value.

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 772
Default A fixed field format needs fronting zeroes for each cells value.

If i understand you right, you want your numbers a certain amount of digits
long, and if they are not, then add 0's until they are. If that is right you
can use this method
=TEXT(A1,"00000")

select the cell with the number, then put a 0 for the number of digits you
need, the above has 5 so the result of the number 124 would now be 00124.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default A fixed field format needs fronting zeroes for each cells valu

That is exactly what I am looking for. Thanks for your help. You're swell!

"John Bundy" wrote:

If i understand you right, you want your numbers a certain amount of digits
long, and if they are not, then add 0's until they are. If that is right you
can use this method
=TEXT(A1,"00000")

select the cell with the number, then put a 0 for the number of digits you
need, the above has 5 so the result of the number 124 would now be 00124.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default A fixed field format needs fronting zeroes for each cells valu

How do I get it to work for the entire column?

"John Bundy" wrote:

If i understand you right, you want your numbers a certain amount of digits
long, and if they are not, then add 0's until they are. If that is right you
can use this method
=TEXT(A1,"00000")

select the cell with the number, then put a 0 for the number of digits you
need, the above has 5 so the result of the number 124 would now be 00124.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default A fixed field format needs fronting zeroes for each cells valu

The formula you have me assigned the value in cell A1 to 0. Is there another
function that may work better?

"John Bundy" wrote:

If i understand you right, you want your numbers a certain amount of digits
long, and if they are not, then add 0's until they are. If that is right you
can use this method
=TEXT(A1,"00000")

select the cell with the number, then put a 0 for the number of digits you
need, the above has 5 so the result of the number 124 would now be 00124.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 772
Default A fixed field format needs fronting zeroes for each cells valu

Not sure what you mean by "you have me assigned the value in cell A1 to 0" I
was just saying for my formula, if the number you need changed is in cell A1,
put that formula in another like B1, then just drag it or copy and paste it
to the bottom of the column.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

The formula you have me assigned the value in cell A1 to 0. Is there another
function that may work better?

"John Bundy" wrote:

If i understand you right, you want your numbers a certain amount of digits
long, and if they are not, then add 0's until they are. If that is right you
can use this method
=TEXT(A1,"00000")

select the cell with the number, then put a 0 for the number of digits you
need, the above has 5 so the result of the number 124 would now be 00124.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default A fixed field format needs fronting zeroes for each cells valu

Instead of assigning the preceeding characters to zero, it is changing the
value of the number to zero. For example the number 123 would now have a
value of zero instead of 00123.

"John Bundy" wrote:

Not sure what you mean by "you have me assigned the value in cell A1 to 0" I
was just saying for my formula, if the number you need changed is in cell A1,
put that formula in another like B1, then just drag it or copy and paste it
to the bottom of the column.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

The formula you have me assigned the value in cell A1 to 0. Is there another
function that may work better?

"John Bundy" wrote:

If i understand you right, you want your numbers a certain amount of digits
long, and if they are not, then add 0's until they are. If that is right you
can use this method
=TEXT(A1,"00000")

select the cell with the number, then put a 0 for the number of digits you
need, the above has 5 so the result of the number 124 would now be 00124.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default A fixed field format needs fronting zeroes for each cells valu

another way is to select the column
format-cell-number-custom and enter 00000 or what ever number of figures you
need.
this keeps it as a number and does not need another column.

"CommerceMary" wrote:

Instead of assigning the preceeding characters to zero, it is changing the
value of the number to zero. For example the number 123 would now have a
value of zero instead of 00123.

"John Bundy" wrote:

Not sure what you mean by "you have me assigned the value in cell A1 to 0" I
was just saying for my formula, if the number you need changed is in cell A1,
put that formula in another like B1, then just drag it or copy and paste it
to the bottom of the column.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

The formula you have me assigned the value in cell A1 to 0. Is there another
function that may work better?

"John Bundy" wrote:

If i understand you right, you want your numbers a certain amount of digits
long, and if they are not, then add 0's until they are. If that is right you
can use this method
=TEXT(A1,"00000")

select the cell with the number, then put a 0 for the number of digits you
need, the above has 5 so the result of the number 124 would now be 00124.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"CommerceMary" wrote:

I need to keep a fixed field width for a file that I am importing into
another program. The other program will only except a certain format. Each
field needs to have a specific number of characters and if the values are
less than that number we need to right justify and zero fill. Can we have
excel recognize the number values and zero fill, on the front end, if there
are not enough characters?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Leading zeroes in ZIP field KateB Excel Discussion (Misc queries) 2 December 6th 06 12:44 AM
excel .txt to .cvs, lose trailing zeroes in numeric field stevefromatlanta Excel Discussion (Misc queries) 0 January 10th 06 07:01 PM
How do I format currency field in Excel 2000 w/o 2 extra zeroes? slmm Excel Discussion (Misc queries) 2 July 12th 05 03:06 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
How do I format data cells in Excel to keep leading zeroes? LennyD Setting up and Configuration of Excel 2 December 15th 04 10:42 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"