ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   format of zero value (https://www.excelbanter.com/excel-discussion-misc-queries/231156-format-zero-value.html)

willemeulen

format of zero value
 
When changing the cell to accounting format all 0 (zero) values change to -

Are there more options available, in particular I would like it if 0 (zero)
would not be displayed at all.

w

Jacob Skaria

format of zero value
 
RightclickFormatCellsCustom format . Type the below for 2 decimal
digits///Adjust the number of digits as per your requirement..

0.00;-0.00;""

If this post helps click Yes
---------------
Jacob Skaria


"willemeulen" wrote:

When changing the cell to accounting format all 0 (zero) values change to -

Are there more options available, in particular I would like it if 0 (zero)
would not be displayed at all.

w


Gary''s Student

format of zero value
 
In addition to Jacob's answer, you could also use Conditional Formatting to
set the font color to the background color or use:

Tools Options View and uncheck Zero values.
--
Gary''s Student - gsnu200853


"willemeulen" wrote:

When changing the cell to accounting format all 0 (zero) values change to -

Are there more options available, in particular I would like it if 0 (zero)
would not be displayed at all.

w


joeu2004

format of zero value
 
"willemeulen" wrote:
When changing the cell to accounting format all 0 (zero) values change
to -
Are there more options available, in particular I would like it if 0
(zero)
would not be displayed at all.


I assume you would like to retain the Accounting format for non-zero values,
and you want zero to display as blank only in selected cells, not the entire
workbook.

In that case, select the cells, select Accounting format (Format Cells
Number) and all the options that you want, then select Custom formatting and
edit the string of characters you see in the Type window. What you see will
depend on your localization settings and the Accounting options you select.
But generally it will look like:

string1;string2;string3;string4

Move the cursor after the second semicolon (";") and delete the characters
in string3. Then click OK.

In my case, I started with:

_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)

and ended with:

_($* #,##0.00_);_($* (#,##0.00);;_(@_)



All times are GMT +1. The time now is 02:16 PM.

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