This technique can be used to reduce the complexity of certain formulas.
However, the example is for illustration only.
This particular problem could be easily solved withSUMIFSorSUMPRODUCT.
Other quantities become FALSE and are evaluated by SUM as zero.
Boolean logic approach
Another way to solve this problem is withBoolean logic.
In the worksheet shown, we have this formula:
Notice this formula contains just one IF function.
More than one condition can be tested by nesting IF functions.
The IF…