Subtraction can be done in two ways in Office using the following formulas in the formula (fx) bar:
- =A1-A2
- =SUM(A1,-A2)
The above formulas refer to cell reference A2 subtracted from A1. As usual, you can use number values instead of cell references.
The SUM formula subtracts by changing the sign of the reference. Remember the sign rules, and thus - -x is in effect +x.
Thank you anyway forum but I have worked it out myself!
The problem is that there was a space after the "Z" in my data set. As soon as I changed my formula to include a space after the "Z" it worked like a charm. So simple and yet it eluded me for months.
=SUMIF($M$4:$M$41,"=Z ",$N$4:$N$41)
Thank you for taking the time to comment. Would you be able to expand on it a little? Do you mean that I should not have typed a "Z" in my formula but selected a cell that contained it?
I tried the following but it came up blank (Cell M41 contains a Z)
=SUMIF($M$4:$M$41,"=M41",$N$4:$N$41)
I use Excel often in my work and I am keen to avoid time wasting errors
What's is sumif?
why are the excel use?
what should be sumif in excel?
×