Forum Discussion
Excel Formula Help for $0.00 Value
In the desktop version of Excel, you can hide all zero values in the worksheet:
- Select File > Options.
- Select Advanced.
- Scroll down to the section 'Display options for this worksheet'.
- Clear the check box 'Show a zero in cells that have a zero value'.
- Click OK.
If you don't want that, you have several alternative options:
- Change the formula to =IF(Calculations!B96+Calculations!C96=0,"",Calculations!B96+Calculations!C96)
- Or set the number format of the cell with the formula to the custom format $0.00;-$0.00;
- JoeUser2004Dec 20, 2021Bronze Contributor
KevinCommunitas wrote: `` I don't understand what is happening.``
Because D5 is not really zero. It is 0.00400000000000339 -- not even close.
The "0.00...00339" part is probably due to the so-called "floating-point error" (anomaly, not truly an "error"). That should be avoided by explicitly rounding a calculation (somewhere).
But the "0.004..." part is due to the underlying calculation. Calculations!C96 is truly zero. But Calculations!B96 is 0.00400000000000339. That might be avoided by the same explicit rounding, by accident. But whether or not it should be avoided, one way or another, is something only you can decide.
We probably cannot help you any further because the Calculations worksheet is password-protected.
Please "re-post" the Excel file without password-protected elements. And instead of a link to onedrive.live.com, attach the Excel file to the posting. Use the "browse" link at the bottom of the Reply pane.
- KevinCommunitasDec 20, 2021Copper Contributor
JoeUser2004 There we go!! It finally gave me the option to upload the file!! It's all been un-protected now.
- HansVogelaarDec 20, 2021MVP