ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Logic
  3. How to Calculate a Bonus in Excel With IF

How to Calculate a Bonus in Excel With IF

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

To calculate a bonus in Excel, use IF to test the rule and return the bonus or 0. For example, =IF(C2>=4,B2*10%,0) pays 10% of the salary in B2 when the rating in C2 is 4 or more. Wrap the test in AND when several conditions must all be met, and use IFS for tiered rates.

Key takeaways

  • The basic shape is =IF(test, bonus, 0), for example =IF(C2>=4,B2*10%,0).
  • Use AND inside IF when every condition must be true, and OR when any one is enough.
  • For tiers, IFS checks conditions in order, so start with the highest tier.
  • MAX(0, sales-target) pays a share of sales above target without negative bonuses.
  • Keep rates in cells, lock them with $, and round the final bonus to 2 decimals.
On this page+
  1. The sample data
  2. How to calculate a bonus with IF
  3. How to calculate a bonus with two conditions (AND)
  4. How to pay a bonus when any condition is met (OR)
  5. How to calculate a tiered bonus with IFS
  6. How to pay a bonus on sales above target
  7. How to add a cap, rates in cells and rounding
  8. Common mistakes when calculating bonuses
  9. Practise it

To calculate a bonus in Excel, you turn the bonus rule into an IF formula: if the employee meets the condition, return the bonus amount, otherwise return 0. Once you know that pattern, every bonus plan is a variation of it: a percentage of salary, two conditions with AND, tiers with IFS, or a share of sales above target. This guide builds each one on the same small team, with results you can check.

The sample data#

All the formulas below use this table in A1:D6. Rating is a score from 1 to 5, and Sales is the yearly sales figure.

ABCD
1NameSalaryRatingSales
2Ana52,0005130,000
3Ben48,0003105,000
4Chen61,000492,000
5Dana45,0004118,000
6Eli55,000276,000

Type each formula in row 2, then fill it down to row 6 (Windows: Ctrl+D; Mac: ⌘D).

How to calculate a bonus with IF#

IF needs three parts: a test, the value if the test is true, and the value if it is false.

Excel formula
=IF(logical_test, value_if_true, value_if_false)

Rule: pay 10% of salary to anyone with a rating of 4 or more.

Excel formula
=IF(C2>=4,B2*10%,0)
  • C2>=4 is the test.
  • B2*10% is the bonus when the test is true. 10% is the same as 0.1.
  • 0 is the result when it is false.

The results are Ana 5,200, Ben 0, Chen 6,100, Dana 4,500 and Eli 0. For a flat bonus, put the amount in the middle: =IF(C2>=4,1000,0) pays 1,000 to the three people rated 4 or 5. The IF function guide explains each argument, and the IF lesson lets you practise the pattern.

How to calculate a bonus with two conditions (AND)#

Use AND inside IF when the employee must meet every condition. AND returns TRUE only if all its tests are true.

Rule: 10% of salary, but only for a rating of 4 or more and sales of at least 100,000.

Excel formula
=IF(AND(C2>=4,D2>=100000),B2*10%,0)
NameRating 4+?Sales 100,000+?Bonus
AnaYesYes5,200
BenNoYes0
ChenYesNo0
DanaYesYes4,500
EliNoNo0

Chen has a good rating but missed the sales figure, so he gets nothing. The AND function guide and the article on IF with AND cover more examples.

How to pay a bonus when any condition is met (OR)#

Use OR when one condition is enough. OR returns TRUE if at least one test is true.

Rule: a flat 1,000 for anyone rated 4 or more or with sales of at least 110,000.

Excel formula
=IF(OR(C2>=4,D2>=110000),1000,0)

Ana, Chen and Dana each get 1,000. Ben (rating 3, sales 105,000) and Eli miss both. The AND, OR and NOT lesson practises both functions, and the guide to IF with multiple conditions shows how to mix them.

How to calculate a tiered bonus with IFS#

Tiers give a different rate at each level. IFS checks its conditions in order and returns the result for the first one that is true, so always start with the highest tier.

Rule: rating 5 earns 15%, rating 4 earns 10%, rating 3 earns 5%, anything lower earns 0.

Excel formula
=B2*IFS(C2>=5,15%,C2>=4,10%,C2>=3,5%,TRUE,0)

The final TRUE,0 is the catch-all: if no tier matches, the rate is 0. Without it, IFS returns #N/A for Eli. The results are Ana 7,800, Ben 2,400, Chen 6,100, Dana 4,500 and Eli 0.

IFS needs Excel 2019, Excel 2021 or Microsoft 365. In older versions, nest IF functions instead:

Excel formula
=B2*IF(C2>=5,15%,IF(C2>=4,10%,IF(C2>=3,5%,0)))

It gives the same results. The IFS function guide and the nested IF and IFS lesson go further, and the articles on the IFS function and nested IF compare the two styles.

How to pay a bonus on sales above target#

Sales bonuses often pay a share of the amount above a target. Subtract the target, and use MAX to stop the result going below zero.

Rule: 5% of everything sold above 100,000.

Excel formula
=MAX(0,D2-100000)*5%
NameSalesAbove targetBonus
Ana130,00030,0001,500
Ben105,0005,000250
Chen92,00000
Dana118,00018,000900
Eli76,00000

Without MAX, Chen's result would be -400, a negative bonus. The IF version does the same job: =IF(D2>100000,(D2-100000)*5%,0). For plans with several rate bands, see the sales commission calculator, which uses the same ideas.

How to add a cap, rates in cells and rounding#

Real bonus sheets need three finishing touches.

Cap the bonus#

Wrap the formula in MIN to set a maximum. With a cap of 6,000:

Excel formula
=MIN(6000,B2*IFS(C2>=5,15%,C2>=4,10%,C2>=3,5%,TRUE,0))

Ana's tier bonus of 7,800 becomes 6,000. Everyone else is under the cap and keeps their amount.

Keep rates and targets in cells#

Typing 10% or 100000 into every formula makes changes slow. Put them in input cells, such as the rate in G1 and the target in G2, and lock them with $:

Excel formula
=IF(AND(C2>=4,D2>=$G$2),B2*$G$1,0)

Press F4 (Mac: ⌘T) after clicking a reference to add the dollar signs. When the rate changes next year, you edit one cell.

Round the result#

Percentages can produce long decimals. Round the final bonus to cents with =ROUND(formula,2), or to whole units with =ROUND(formula,0), so totals match payroll.

Common mistakes when calculating bonuses#

These slips cause most wrong bonus figures:

  1. Tiers in the wrong order. =IFS(C2>=3,5%,C2>=4,10%,...) gives everyone rated 3 or more only 5%, because the first true test wins.
  2. Rates typed as whole numbers. B2*10 pays ten times the salary. Write 10% or 0.1.
  3. Text instead of numbers. If a rating was imported as text, C2>=4 compares text and gives odd results. Check with =ISNUMBER(C2).
  4. Quotes around numbers. C2>="4" compares against the text "4". Leave numbers unquoted.
  5. No catch-all in IFS. Add TRUE,0 at the end, or anyone outside every tier gets #N/A.
  6. Unlocked input cells. Without $, G1 becomes G2, G3 and so on as you fill down.

Practise it#

Try the exercise on this page: it is the AND rule from above, and you can check your answer against Ana's 5,200. Then practise IF in a live spreadsheet, where you type each formula and get instant feedback, and move on to the IF, AND and OR lesson to combine conditions with confidence.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Ana gets a bonus of 10% of her salary only if her rating is 4 or more and her sales are 100,000 or more. In E2, use IF with AND to calculate her bonus (return 0 if she doesn't qualify).

fx
ABCDEF
1
Name
Salary
Rating
Sales
Bonus
2
Ana
52000
5
130000
3
Ben
48000
3
105000
4
Chen
61000
4
92000
5
Dana
45000
4
118000
6
Eli
55000
2
76000
7
8
9

Tip: AND(C2>=4,D2>=100000) is the test. Then give IF the bonus (B2*10%) and the value if false (0).

Practise this in a lesson

LessonThe IF functionMake a cell show one result or another depending on a condition, like Pass/Fail or Over/Under budget.LessonNested IF and IFSHandle more than two outcomes, like letter grades or commission bands, with nested IFs or the cleaner IFS.LessonAND, OR and NOTCheck several conditions at once with AND and OR, flip a result with NOT, and combine them inside IF.Function guideIFLearn Excel's IF function with practical examples: flag budgets, label rows and return blanks. Avoid the classic mistakes and practice live.Function guideIFSReplace messy nested IFs with Excel's IFS function. Examples for grades, tiers and SLAs, the catch-all trick, and a live exercise.Function guideANDCheck that every condition is true with Excel's AND. Use it inside IF for bonuses, ranges and eligibility rules, then try a live exercise.

Frequently asked questions

What is the formula to calculate a bonus in Excel?

+

A common one is =IF(C2>=4,B2*10%,0): if the rating in C2 is 4 or more, the bonus is 10% of the salary in B2, otherwise it is 0. Change the test and the rate to match your bonus rules.

How do I calculate a bonus with two conditions in Excel?

+

Put both tests inside AND, then use AND as the IF test: =IF(AND(C2>=4,D2>=100000),B2*10%,0). The bonus is paid only when both conditions are true.

How do I calculate a tiered bonus in Excel?

+

Use IFS with the highest tier first, such as =B2*IFS(C2>=5,15%,C2>=4,10%,C2>=3,5%,TRUE,0). In versions before Excel 2019, use nested IF functions instead.

How do I cap a bonus at a maximum amount?

+

Wrap the bonus formula in MIN with the cap: =MIN(B2*10%,5000) returns the calculated bonus or 5,000, whichever is smaller.

Sources

  • IF function - Microsoft Support
  • IFS function - Microsoft Support
  • AND function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. The sample data
  2. How to calculate a bonus with IF
  3. How to calculate a bonus with two conditions (AND)
  4. How to pay a bonus when any condition is met (OR)
  5. How to calculate a tiered bonus with IFS
  6. How to pay a bonus on sales above target
  7. How to add a cap, rates in cells and rounding
  8. Common mistakes when calculating bonuses
  9. Practise it

Keep reading

Projects· 7 min read

Build a Sales Commission Calculator in Excel

To build a commission calculator in Excel, put each rep's sales in a column and the rate in a cell, then multiply. For tiered rates, either use IFS with the highest tier first, or list the tiers in a sorted table and use VLOOKUP with TRUE to find each rate. Multiply sales by the rate, and use MIN to apply any cap.

Logic· 6 min read

IF with AND in Excel: Check Two Conditions at Once

To check two conditions at once, put AND inside IF: =IF(AND(B2>=80000,C2>=95%),"Bonus","No bonus"). AND returns TRUE only when every condition inside it is true, and IF turns that into the result you choose. You can list up to 255 conditions in AND, separated by commas. If any one is false, IF returns the false result.

Logic· 6 min read

The Excel IFS Function: Cleaner Than Nested IFs

The Excel IFS function checks a list of conditions in order and returns the result paired with the first TRUE one: =IFS(test1, value1, test2, value2, ...). It replaces nested IFs without the brackets. IFS has no "otherwise" result, so end with TRUE and a fallback value. It needs Excel 2019 or later.

More on logic

  • The CHOOSE Function in Excel
  • Excel Comparison Operators: =, <>, >, <, >=, <=
  • What the Double Negative (--) Does in Excel Formulas
  • Letter Grade Formula in Excel: IFS or a Lookup Table
  • Use AND and OR Together in One IF Formula
  • IF Between Two Numbers in Excel
All logic articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free