Tiered commission or discount with nested IF
Give a different rate at different levels, such as 5% commission from 5,000 and 10% from 10,000, with nested IF or a small rate table.
FormulasIntermediate9 minExcel · Google Sheets
Example content. The numbers are fictional and made for learning.
Goal
Work out commission: 10% of sales from 10,000, 5% from 5,000, and nothing below.
Why this is useful
Commission, volume discounts, shipping bands, and grades all work in steps. A formula applies the steps the same way every time, so nobody gets the wrong rate.
Example
| Row | A | B |
|---|---|---|
| 1 | Salesperson | Sales |
| 2 | Anna | 12,500 |
| 3 | Jonas | 7,200 |
| 4 | Sara | 3,100 |
| 5 | Commission, Anna | 1,250.00=IF(B2>=10000,B2*0.1,IF(B2>=5000,B2*0.05,0)) |
Steps
1. Write the levels down
From the top: 10,000 or more gives 10%; 5,000 or more gives 5%; anything else gives 0.
2. Test the highest level first
=IF(B2>=10000,B2*0.1, ... ) handles the top level. If you tested 5,000 first, 12,500 would stop there and get the lower rate.
3. Put the next IF in the false part
Where the first IF would give its "otherwise" answer, start another IF: =IF(B2>=10000,B2*0.1,IF(B2>=5000,B2*0.05,0)).
4. Move rates into a table
With more levels, list the thresholds in ascending order (0, 5000, 10000) and their rates beside them, then look the rate up: =B2*VLOOKUP(B2,$E$2:$F$4,2,TRUE).
5. Check each boundary
Test values just below and exactly on each threshold, such as 4,999, 5,000, 9,999, and 10,000.
Formulas by language
Cell names such as B2 stay the same. The function name and the character between arguments follow the spreadsheet language. The English line in each list is the reference form used on this site, not a universal spelling. When the decimal sign is a comma, arguments are usually separated with a semicolon, because the comma is already used in numbers.
1,250 for Anna, 360 for Jonas, 0 for Sara.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=IF(B2>=10000,B2*0.1,IF(B2>=5000,B2*0.05,0))Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=OM(B2>=10000;B2*0,1;OM(B2>=5000;B2*0,05;0))German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=WENN(B2>=10000;B2*0,1;WENN(B2>=5000;B2*0,05;0))French (France)
Decimals look like 1,5. Arguments are separated with ;.
=SI(B2>=10000;B2*0,1;SI(B2>=5000;B2*0,05;0))Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=SI(B2>=10000;B2*0,1;SI(B2>=5000;B2*0,05;0))Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=SI(B2>=10000,B2*0.1,SI(B2>=5000,B2*0.05,0))Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=SE(B2>=10000;B2*0,1;SE(B2>=5000;B2*0,05;0))Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=SE(B2>=10000;B2*0,1;SE(B2>=5000;B2*0,05;0))Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=ALS(B2>=10000;B2*0,1;ALS(B2>=5000;B2*0,05;0))
Just the rate, to show next to the commission.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=IF(B2>=10000,0.1,IF(B2>=5000,0.05,0))Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=OM(B2>=10000;0,1;OM(B2>=5000;0,05;0))German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=WENN(B2>=10000;0,1;WENN(B2>=5000;0,05;0))French (France)
Decimals look like 1,5. Arguments are separated with ;.
=SI(B2>=10000;0,1;SI(B2>=5000;0,05;0))Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=SI(B2>=10000;0,1;SI(B2>=5000;0,05;0))Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=SI(B2>=10000,0.1,SI(B2>=5000,0.05,0))Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=SE(B2>=10000;0,1;SE(B2>=5000;0,05;0))Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=SE(B2>=10000;0,1;SE(B2>=5000;0,05;0))Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=ALS(B2>=10000;0,1;ALS(B2>=5000;0,05;0))
The same with a rate table in E2:F4, thresholds sorted from lowest to highest.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=B2*VLOOKUP(B2,$E$2:$F$4,2,TRUE)Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=B2*LETARAD(B2;$E$2:$F$4;2;SANT)German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=B2*SVERWEIS(B2;$E$2:$F$4;2;WAHR)French (France)
Decimals look like 1,5. Arguments are separated with ;.
=B2*RECHERCHEV(B2;$E$2:$F$4;2;VRAI)Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=B2*BUSCARV(B2;$E$2:$F$4;2;VERDADERO)Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=B2*BUSCARV(B2,$E$2:$F$4,2,VERDADERO)Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=B2*PROCV(B2;$E$2:$F$4;2;VERDADEIRO)Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=B2*CERCA.VERT(B2;$E$2:$F$4;2;VERO)Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=B2*VERT.ZOEKEN(B2;$E$2:$F$4;2;WAAR)
The same spoken language can use different separators in different countries. Spanish in Spain often uses a comma for decimals and a semicolon between arguments. Spanish in Mexico often uses a period and a comma. If a formula is rejected, check the spreadsheet locale.
Excel and Google Sheets
- Nested IF works in every version of Excel and in Google Sheets. Excel allows up to 64 levels, but more than three or four is easier to keep in a table.
- VLOOKUP with TRUE finds the largest threshold that is not above the value. The thresholds must be sorted in ascending order, and the first one should be 0.
- This pays the whole amount at one rate. Tax-style brackets, where each part of the amount has its own rate, need a different formula.
- Function names and the separator between arguments follow the spreadsheet language. Excel uses the language of your installation; Google Sheets uses the spreadsheet locale under File, Settings.
- Workbooks from Hellosheetwise store formulas in English. Excel and Google Sheets show them in your language when you open the file.
If something goes wrong
Big sales get the lower rate.
The lower threshold is tested first. Start with the highest level.
Values exactly on a threshold get the wrong rate.
Use >= instead of >, so 10,000 counts as reaching the 10,000 level.
The rate-table version returns #N/A.
The value is below the first threshold, or the thresholds are not sorted. Start the table at 0 and sort it.