Rum said:
When I do (B2-A2) I get a '0'.
How can I have a blank cell as a result even if the answer is '0'?
If you want the value of the cell to be "blank" (actually the null string)
instead of zero, then:
=if(B2-A2 = 0, "", B2-A2)
Alternatively, simply use =B2-A2 and create the custom format
"General;-General;" without quotes. You can replace "General" with whatever
numeric format you wish, e.g. "0.00;-0.00;" for the equivalient of Number
with 2 decimal places, but blank for zero.
Using a custom format, the value in the cell is still zero; it just appears
blank. Using the IF() expression, the value in the cell is the string ""
instead of zero. That can cause complications in formulas that reference
the cell value.
PS: Beware that sometimes B2-A2 __appears__ zero, but it actually is not.
Neither approach avoids displaying 0 in that case. Are you worried about
that?