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.

Excel formula: SUMPRODUCT with IF

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.

Excel IF function

More than one condition can be tested by nesting IF functions.

The IF…

Intro to Boolean Logic

Article image