Excel Supreme

Excel track · Exercise 82 of 86 Paid

A commission sheet that updates itself

Read a rate from a banded table, then multiply it by the sales figure.

Advanced

Three sellers beside a three-band rate table below the data

Read-only data · screen 1 of 2 · answer in C2

In C2, pay the first seller their sales times the tier rate those sales reach.

ABC
1SellerSalesCommission
2Ana4200
3Bo1800
4Cy9000
5
6TierRate
700.02
820000.03
940000.05

Download this grid (.xlsx) Two tabs: the grid you see, and the answer.

C2

What it does

The fourth argument of VLOOKUP decides how it matches. With TRUE, it walks down column A, stops at the largest tier floor the sales figure has reached, and returns the rate beside it. Sales of 4200 reach the 4000 floor, so the rate comes back at five per cent.

In C2 that rate multiplies the sales figure, so Ana's commission is 210. The second screen asks for the rate alone, 0.05, so the lookup and the multiplication come apart into two steps. Keep the rate in the table: 0.05 typed into a formula works today and breaks the next time finance moves a tier.

The table has to stay sorted by tier floor, lowest first, because TRUE reads down the column and stops at the last floor it passes. An unsorted table returns a rate from the wrong band and shows no error. Lock the reference as $A$7:$B$9 so the formula fills down the commission column without drifting.

Syntax

=sales*VLOOKUP(sales,tiers,2,TRUE) reads the rate the sales figure has reached

Worked example

On Three sellers beside a three-band rate table below the data, =ROUND(B2*VLOOKUP(B2,$A$7:$B$9,2,TRUE),2) returns 210.

=ROUND(B2*VLOOKUP(B2,$A$7:$B$9,2,TRUE),2)

Common errors

Error codes for VLOOKUP in approximate mode as a rate band, composed with multiplication
ErrorWhat it means and how to fix it
#N/AThe fourth argument is FALSE, so VLOOKUP looks for a row equal to 4200 and finds none.
#REF!The column number points past the second column of the rate table.
Wrong bandThe tier floors are out of order, so TRUE stops at the wrong floor and reads the wrong rate.

At work

Paying commission from a banded rate table that finance maintains below the data.