Excel HR Bonus Calculator: IF, IFS, SWITCH and a Free Practice Workbook

Quick answer: Build an Excel HR bonus calculator by separating eligibility from sales tier. Use AND to check attendance and service, IFS to assign A/B/C sales tiers, SWITCH to turn tiers into commission rates and IF to calculate bonus amounts. Put thresholds in editable cells instead of hard-coding them, and test employees who fall exactly on the cutoffs. The free, original Course Centrals practice workbook accompanies this tutorial and includes fictional staff records, editable rules, formula results and a ten-case test checklist.

This is an educational spreadsheet project, not payroll, tax or employment advice. The sample bonus policy is fictional. The approach is useful for learners practicing Excel logical functions in HR, operations or sales reporting, but real compensation systems require approved policies, auditing, validation and access controls.

What the free practice workbook contains

SheetWhat it doesYour exercise
Start HereInstructions, key formula definitions and Microsoft referencesRead the rules and follow the steps
RulesEditable attendance, service, tier and bonus-rate thresholdsChange 90% to 95% attendance and inspect the result
Staff10 fictional staff records and calculated bonus columnsReview eligibility, sales tier, rate and bonus
Test CasesTen exact-boundary and error scenariosConfirm expected outcomes without guessing

1. Define your bonus rules before writing formulas

RuleExample valueInterpretation
Minimum attendance90%Employee must meet or exceed it
Minimum years of service1Newer employees are ineligible
Tier A sales threshold3,000At or above 3,000
Tier B sales threshold2,0002,000 to 2,999.99
Tier A commission10%Percent of sales if eligible
Tier B commission5%Percent of sales if eligible
Tier C commission0%Below Tier B
Long-service extra200Only eligible staff with at least five years

Our example requires both attendance of at least 90% and one year of service. An employee can be in Tier A for sales but still be ineligible for a bonus. This distinction prevents a common modelling mistake: using sales performance as if it were the same as eligibility.

2. Create the input table

Use the Staff worksheet with columns: A = Staff ID, B = Employee, C = Department, D = Sales, E = Attendance, F = Years, G = Eligible, H = Tier, I = Rate, J = Sales bonus, K = Service bonus, L = Total bonus and M = Input check. In the supplied workbook, the sample starts on row 7, and the editable rules are on the Rules sheet.

EmployeeSalesAttendanceYears
Maya3,80096%3
Jamal2,45091%7
Aisha1,85093%2
Noah3,17589%5
Lina2,00090%1
Omar3,00097%6

Enter attendance as an actual Excel percentage such as 96%, not text. Check that sales and years are numeric. A formula that references the wrong data type can produce misleading results even when Excel does not show an error.

3. Check eligibility with AND

=AND(M7="OK",E7>=Rules!$B$4,F7>=Rules!$B$5)

The formula is TRUE only when the input check is OK, attendance meets the threshold and the person has enough years of service. Use absolute references such as Rules!$B$4 so copying the formula down does not change the threshold cell. For simpler practice without an input checker, the core logic is =AND(E7>=90%,F7>=1).

4. Assign a tier using IFS

=IFS(D7>=Rules!$B$7,"A",D7>=Rules!$B$8,"B",TRUE,"C")

Excel evaluates IFS from left to right and returns the first matching result. With the example thresholds, a salesperson at exactly 3,000 belongs to A, exactly 2,000 belongs to B and 1,999 belongs to C. Always put the highest threshold first when using multiple >= comparisons. Ending with TRUE,"C" supplies a default when neither threshold matches.

Excel compatibility: IFS is available in Excel 2019, Excel 2021, Excel 2024 and Microsoft 365. If you use an older Excel release, an equivalent nested IF works: =IF(D7>=3000,"A",IF(D7>=2000,"B","C")).

5. Map the tier to a commission rate using SWITCH

=SWITCH(H7,"A",Rules!$B$10,"B",Rules!$B$11,"C",Rules!$B$12,0)

SWITCH works for matching a single exact code to a result. A returns 10%, B returns 5%, C returns 0%, and the last zero is a default for an unknown code. SWITCH is for exact matches, not testing which numeric range is larger. Its supported Excel versions broadly match IFS, including Excel 2019+ and Microsoft 365.

6. Calculate the base bonus and the long-service extra

Sales bonus: =IF(G7,D7*I7,0)
Service extra: =IF(AND(G7,F7>=Rules!$B$6),Rules!$B$13,0)
Total bonus: =SUM(J7:K7)

We deliberately require eligibility for the additional service payment. Without that check, a person who fails attendance could receive the fixed extra for years of service. If a real organization’s policy pays service awards independently, rewrite the rule explicitly and test it. Do not infer a policy from a screenshot or copied formula.

7. Verify expected results, including edge cases

CaseExpected resultReason
Maya: 3,800 sales, 96% attendance, 3 years380.00Tier A at 10%, no service extra
Jamal: 2,450 sales, 91%, 7 years322.502,450 × 5% + 200
Lina: 2,000 sales, 90%, 1 year100.00Exactly on both thresholds
Omar: 3,000 sales, 97%, 6 years500.003,000 × 10% + 200
Noah: 3,175 sales, 89%, 5 years0.00Ineligible despite a high sales tier
Negative sales or attendance of 108%Review inputsInvalid data must be flagged

The supplied workbook independently checks the full ten-row dataset. The expected overall bonus total with default settings is 1,640.00, with six? No: seven employees eligible (Maya, Jamal, Aisha, Lina, Omar, Hassan and Priya), of whom some receive zero under Tier C. Always distinguish eligibility counts from people receiving a positive payment.

8. Make the spreadsheet safer with validation

  • Restrict Attendance to a decimal from 0 to 1, formatted as a percentage, using Data > Data Validation.
  • Restrict Years to a nonnegative number and Sales to nonnegative numeric values.
  • Add an Input check column to flag missing, negative or over-100% percentages.
  • Apply conditional formatting to highlight invalid inputs and ineligible rows. Keep formula-driven cells visually distinct from editable inputs.
  • Retest whenever you change a threshold. A bonus model that works at 2,500 can still be wrong at exactly 2,000 or 3,000.

9. Interview-style questions for Excel practice

Why use IFS rather than nested IF?

IFS represents several threshold/result pairs more readably, although order still matters and a large number of conditions can become hard to audit. An external rate table may be easier to maintain if there are many tiers.

Why separate eligibility, tier, rate and bonus?

Each intermediate column makes a business decision visible and testable. If an output looks wrong, you can identify whether the problem comes from the eligibility rule, the sales threshold, the rate mapping or the amount calculation.

Can I use this for real employee pay?

Not without rewriting it for your approved compensation policy, reviewing data protection and employment requirements, and testing every boundary with controlled inputs. The dataset and numbers are fictional.


Learn more on Course Centrals

Start with Excel IF with practical examples, then study SUMIFS to total eligible amounts by team and COUNTIFS to count employees meeting multiple conditions. Our Excel formulas hub connects the wider set of functions.

Official documentation and fact checking

Verified 14 November 2026. Formula syntax and version compatibility were cross-checked with primary Microsoft documentation. This tutorial and its workbook are original educational material inspired by a broader logical-functions learning topic, not a reproduction of any social-media notes.

Follow Coursecentrals.com on Google
Get more Coursecentrals.com guides, scholarships and learning resources in your Google results.