Explanation

The goal is to demonstrate how other formulas and functions can benestedinside theIF function.

The example is a simple quantity-based discount formula.

The example below shows how this works.

Excel formula: If cell is this OR that

Otherwise, we want to calculate the total normally.

Otherwise, it just calculates the total price without any discount.

you could then copy the formula down column E to apply it to all items in the spreadsheet.

Excel formula: If this AND that

Other calculations

The calculations used inside the IF function can be customized as needed.

you’re able to findmany examples in this list.

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

Excel formula: If NOT this or that

AND returns TRUEonly if all the conditions are met.

If any conditions are not met, the AND function returns FALSE.

Excel formula: If this AND that OR that

Excel formula: Quantity based discount

Excel formula: Tax rate calculation with fixed base

Excel formula: Tax rate calculation with two rates

Excel IF function

Excel AND function

Article image

Article image