Units still needed to hit quota (IF, never negative)

Easy Math Sales pack
Description
Hints 0/4
Solutions 0
–
Test case
1
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

The unit quota is in E1 and reps' unit sales are in B2:B4. Row 2 has already sold some; put how many more units they need in the Still needed cell E2.

Someone who is already over quota needs 0 more, not a negative number.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABDE
1RepUnits soldQuota (units)500
2Ada320Still needed
3Ben520
4Cleo500

Notes

Quota minus sold is only correct while the rep is behind. Past the quota the subtraction goes negative, and a target cannot be negative, so the formula has to floor it at zero — either with IF or with MAX(0, …).

How to approach

Your answer goes in E2.

  1. Target cell is E2
  2. Quota minus sold units
  3. Negative means they are already over quota → 0
  4. Shape: =IF(?>?, ?-?, ?)

Function guide

Related practice

FAQ

How do I show units remaining to quota?

=MAX(0, quota - sold). The MAX stops the answer going negative once someone passes their target.

Why does my gap show -20?

The rep is over quota. A plain subtraction keeps the sign; floor it at zero with MAX or IF.