ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   adding zeros to a cell (https://www.excelbanter.com/excel-discussion-misc-queries/18018-adding-zeros-cell.html)

DD

adding zeros to a cell
 
If I put a dash and put zeros in after it, how can I make it stay in that
format? Or even, how can I make a cell display multiple zeros instead of
one? I have custom formatted a cell but it doesn't hold it's properties when
it comes to combining cells. Thanks.

Jason Morin

Precede your data with an apostrophe (').

For example:

'-000123

HTH
Jason
Atlanta, GA

-----Original Message-----
If I put a dash and put zeros in after it, how can I

make it stay in that
format? Or even, how can I make a cell display multiple

zeros instead of
one? I have custom formatted a cell but it doesn't hold

it's properties when
it comes to combining cells. Thanks.
.


Dave Peterson

You can also format the cell as text and type in exactly what you want.

But if you used real numbers and a custom number format, then you can use this
kind of thing when you combine cells:

=text(a1,"0000") & " some notes here" & text(b1,"00.00") & text(c1,"mm/dd/yyyy")



DD wrote:

If I put a dash and put zeros in after it, how can I make it stay in that
format? Or even, how can I make a cell display multiple zeros instead of
one? I have custom formatted a cell but it doesn't hold it's properties when
it comes to combining cells. Thanks.


--

Dave Peterson

Jimv

Thank you DD for asking this question, and thank you DAve for the answer!

JimV

"Dave Peterson" wrote:

You can also format the cell as text and type in exactly what you want.

But if you used real numbers and a custom number format, then you can use this
kind of thing when you combine cells:

=text(a1,"0000") & " some notes here" & text(b1,"00.00") & text(c1,"mm/dd/yyyy")



DD wrote:

If I put a dash and put zeros in after it, how can I make it stay in that
format? Or even, how can I make a cell display multiple zeros instead of
one? I have custom formatted a cell but it doesn't hold it's properties when
it comes to combining cells. Thanks.


--

Dave Peterson



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

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