S
Seth
Is there a formula to add zeros (or any character) to a
cell with a fixed width?
I am currently using a formula, =A1&REPT(" ",20-LEN(A1)),
which will extend the character length of a cell to 20,
this works for items that are left justified and entries
that contain fewer than 20 characters just have spaces to
fill up the remaining charaters.
What I am looking for is a way to add characters to the
front of an entry and still enforce the fixed length.
Example:
A cell contains 123456789
I would like the cell to have a fixed length of 20
chracters, and the "missing" characters are filled with
zeros placed in front of the entry. To look like this.
00000000000123456789
I am working with entries between 6 and 10 characters in
length.
Thank you in adavance for your time.
cell with a fixed width?
I am currently using a formula, =A1&REPT(" ",20-LEN(A1)),
which will extend the character length of a cell to 20,
this works for items that are left justified and entries
that contain fewer than 20 characters just have spaces to
fill up the remaining charaters.
What I am looking for is a way to add characters to the
front of an entry and still enforce the fixed length.
Example:
A cell contains 123456789
I would like the cell to have a fixed length of 20
chracters, and the "missing" characters are filled with
zeros placed in front of the entry. To look like this.
00000000000123456789
I am working with entries between 6 and 10 characters in
length.
Thank you in adavance for your time.