Sub topic 8
Floors and caps in practice
Assume you know cell references, anchored references such as $C$4, and how to copy a formula across forecast periods. You should also be familiar with revenue, expenses, pre-tax income, cash, and debt balances.
A floor sets a minimum value. A cap sets a maximum value. Financial models use floors and caps to prevent formulas from producing results that violate a business rule. For example:
- A tax charge should not become negative when the company has a loss.
- A bonus should not exceed its contractual maximum.
- A debt repayment should not exceed the debt balance or the cash available.
- A forecast quantity should not fall below zero.
The MAX function creates a floor. It returns the largest value in a list.
=MAX(0,F30)If F30 is 25, the formula returns 25. If F30 is -10, it returns 0. The formula therefore applies a zero floor.
The MIN function creates a cap. It returns the smallest value in a list.
=MIN(F20*$C$3,$C$4)This calculates a percentage-based amount and caps it at the maximum stored in $C$4. If the calculated amount is below the cap, the formula returns the calculated amount. If it is above the cap, the formula returns the cap.
Turning business rules into formulas
Start by writing the rule in words. Then identify the value being limited and the limit itself.
| Business rule | Formula pattern | Result |
|---|---|---|
| Amount cannot be negative | `=MAX(0,amount)` | At least zero |
| Amount cannot exceed a limit | `=MIN(amount,limit)` | No more than the limit |
| Amount stays within both limits | `=MIN(maximum,MAX(minimum,amount))` | Between minimum and maximum |
For example, suppose a sales employee earns a bonus equal to 5% of sales, with a maximum bonus of 10,000. If sales are in F20, the rate is in $C$3, and the maximum is in $C$4, use:
=MIN(F20*$C$3,$C$4)The anchored references keep the rate and cap fixed when the formula is copied across the model.
A floor and cap can be combined. Suppose a forecast operating expense must be at least 2,000 but no more than 8,000. If the unconstrained expense is in F20, use:
=MIN($C$4,MAX($C$3,F20))Here, $C$3 stores the minimum and $C$4 stores the maximum. MAX first prevents the value from falling below the minimum. MIN then prevents it from exceeding the maximum.
Rewriting simple IF logic
A simple floor often appears first as an IF formula:
=IF(F30>0,F30,0)This returns the value when it is positive and zero otherwise. The shorter equivalent is:
=MAX(0,F30)A simple cap can also be rewritten. These formulas produce the same result:
=IF(F20>$C$4,$C$4,F20)=MIN(F20,$C$4)Use MIN and MAX when the rule is only a lower or upper limit. Use IF when the formula must perform different calculations or return different types of results based on a condition.
Check the boundary cases
Test the exact boundary, a value inside the range, and values outside the range. These cases expose reversed references and incorrect limits.
For a formula with a zero floor, test a positive value, zero, and a negative value. For a capped formula, test values below, equal to, and above the cap. Review whether the result matches the written business rule.
Exercise
An incentive equals 8% of revenue in F20 and cannot exceed the maximum in C4. What formula should you use, and what result should it produce when F20 is 150,000 and C4 is 10,000?
Show answer
Use =MIN(F20*8%,$C$4), or store 8% in an input cell and reference that cell. The calculated incentive is 12,000, so the formula returns 10,000.