Level 2Level 2 ProjectsProject, 8 min

A commission calculator

The task

Five reps, one tiered commission plan. Build the calculator finance runs every month: attainment, the rate from the tier table, the payout, and who earned the most.
  1. Attainment for every repIn D2, divide Sales by Quota for all five reps at once: =ARRAYFORMULA(C2:C6/B2:B6).
  2. Look up each rateIn E2, find each rep's rate in the tier table (H:I). Attainment rarely matches a tier exactly, so ask XLOOKUP for the exact match or the next smaller value: match mode -1. =ARRAYFORMULA(XLOOKUP(D2:D6, H2:H5, I2:I5, , -1))
  3. Work out the commissionIn F2, multiply each rep's Sales by their Rate, for all five rows.
  4. Total payoutIn F7, add up the commission column.
  5. Name the top earnerIn B9, return the rep with the biggest commission.

The data

The starting sheet. Cells outlined in green are where your formulas go.

ABCDEFGHI
1RepQuotaSalesAttainmentRateCommissionTier fromRate
2Maya$60,000$74,4000%0%
3Theo$55,000$56,10080%5%
4Priya$50,000$41,500100%8%
5Jonah$65,000$48,750120%10%
6Lena$45,000$54,900
7Total
8
9Top earner