Subtracting cells and getting a null return
This formula tests for both A and B being empty, and returns the
subtraction only if both have values in them:
C1: =IF(AND(A1="",B1=""),"",A1-B1)
I'm not sure from your examples if you are subtracting A from B or the
other way round.
Hope this helps.
Pete
Nick Horn wrote:
I need to to subtract two cells. If the cell is empty I need a null return.
e.g.
A1 B1 C1
22 20 2
10 8 -2
10 The value in C1 needs to be blank, so that when the value in A1
is added later then C1 will recalculate.
The resultant calculated values will be used in mean, standard deviation and
COUNTIF calculations.
As always many thanks to all of you out there - you are doing a brilliant
job for duffers like me.
|