Case 6: Payroll budget with a pay rise and new hires

In the autumn, leadership wants to know what people will cost next year and which open roles the budget can carry. You build the monthly plan with a single formula for the whole grid and then check new hires against the budget that is left.

In short: one cell of the plan is IF(AND(month>=first month,month<=last month),pay*factor,0), and the factor is IF(month>=rise month,1+rise,1). Mixed references (B$1, Staff!$B2) turn it into one formula for 72 cells. For new hires you count months with and without the rise and keep a running total with SUM($G$2:G2).

The situation

A company is planning 2026. A pay rise of 3.5% takes effect in April; in the UK this might be the annual pay award, in the US a company-wide adjustment. The rate and month here are made up. One person leaves after August, one joins in May, and an IT role is filled from October. On top of that there are five open roles, sorted by priority, and a budget that is still free. Finance needs the monthly plan and a clear answer on which roles fit before the budget meeting.

The workbooks sheet by sheet

  • Staff: name, monthly pay, first and last month in the plan (1 to 12). Someone here all year has 1 and 12. The plan works in whole months, as payroll budgets usually do.
  • Settings: the pay rise as a percentage, the month it takes effect, and employer on-costs as a planning rate.
  • Plan: months 1 to 12 in row 1, the people in the same order as on Staff.
  • Roles (task 2): open roles with monthly pay and start month, by priority.

On-costs are a planning rate

Gross pay is not the whole cost. In the UK there is employer National Insurance and pension contributions; in the US the employer's share of Social Security and Medicare, unemployment taxes and benefits. The real amounts depend on thresholds, rates and plan choices and come from payroll. For a yearly budget many companies use a flat uplift. The workbook uses 15% as an example; use the rate your own payroll gives for the previous year.

Task 1: the monthly plan

Task Payroll budget 2026 by month (1 to 12 in row 1). B2: the person's gross pay in that month: 0 if the month is before their first month or after their last month (Staff sheet, same order), otherwise the monthly pay, raised by the percentage from the month the pay rise takes effect. The formula is copied to B2:M7. B8: monthly total (across to M8). N2: yearly total per row (down to N8). B10: employer cost for the year = total in N8 plus on-costs.

ABCDEFGHIJKLMNO
1 Month 1 2 3 4 5 6 7 8 9 10 11 12 Year
2 Price
3 Cole
4 Evans
5 Miller (new)
6 Khan
7 IT role (new)
8 Total
9
10 Employer cost
11
12

Step 1: employed in this month?

A person only costs money in a month that falls between their first and last month: AND(B$1>=Staff!$C2,B$1<=Staff!$D2). B$1 locks the row with the months, Staff!$C2 locks the column with the first month. When you copy to the right only the month moves; when you copy down only the person does. The lesson on absolute references has the details.

Step 2: the pay rise

From the rise month on, pay is multiplied by 1.035, before that by 1: IF(B$1>=Settings!$B$3,1+Settings!$B$2,1). Put together:

=IF(AND(B$1>=Staff!$C2,B$1<=Staff!$D2),Staff!$B2*IF(B$1>=Settings!$B$3,1+Settings!$B$2,1),0)

This one formula in B2 fills the whole grid B2:M7. If the rise moves to another month, you only change Settings!B3.

Step 3: totals and employer cost

Row 8 adds up each month, column N each person, and N8 the whole year. B10 adds the on-costs: =N8*(1+Settings!$B$4).

Task 2: new hires against the budget

For each open role the workbook counts the months in the year from the start month, and how many of those come after the pay rise. The rise applies from the later of the two months: someone who starts in May, with a rise from April, is paid the higher rate from day one.

Task New hires for 2026 in order of priority. D2: months in the year from the start month (start in March = 10). E2: how many of those months are after the pay rise (from the later of start month and rise month, never negative). F2: gross 2026 = months without the rise at the old pay plus months with the rise at the raised pay. G2: with on-costs. H2: running total of employer cost up to this row. I2: "yes" if H2 fits the budget, otherwise "no". Everything down to row 6. B8: the number of roles within budget.

ABCDEFGHIJ
1 Role Monthly pay Start month Months Months raised Gross 2026 Employer cost Running total In budget?
2 Warehouse team lead 4800 3
3 Purchasing assistant 3600 5
4 Developer 5200 7
5 Receptionist 3400 9
6 Financial analyst 4100 11
7
8 Roles in budget
9
10

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

=MAX(0,13-MAX(C2,Settings!$B$3)) counts the months with the rise. The outer MAX stops negative values if a rise only applies next year. The running total =SUM($G$2:G2) grows as you fill down because only its start is locked. As soon as it goes over the budget the answer is "no": the roles from there on do not fit this year unless their start moves.

Common mistakes

Wrong $ signs

=IF(AND(B1>=Staff!C2,… without $ points to Staff!D2, E2 and so on when copied to the right. From column C on the grid is nonsense. After copying, check a cell in the middle, such as H5.

Rise applied to every month

=Staff!$B2*(1+Settings!$B$2) also raises January to March. In the example that is about 1,700 too much.

Running total fully locked

=SUM($G$2:$G$2) stays on the first role, =SUM(G2:G2) moves along and only ever adds one row. Only $G$2:G2 grows.

Months from start counted wrong

=12-C2 forgets the start month itself. Someone who starts in December costs one month, not zero.

How to check your result

  • Task 1: Price costs 4,200 in January and 4,347 from April, 51,723 for the year. The January total is 15,900, September after the leaver 15,214.50. Gross for the year 220,648.50, with on-costs about 253,745.78.
  • Task 2: warehouse team lead 10 months, 9 of them with the rise, 49,512 gross. The running total is 91,218.00 after the second role and 128,353.80 after the third. Two roles fit the budget.
  • Check: the total of column N (without N8) must equal the total of row 8.

The functions in German Excel

EnglishGerman
IF, ANDWENN, UND
MAX, SUMMAX, SUMME
COUNTIFZÄHLENWENN

German Excel separates arguments with a semicolon.

Excel versions

All functions in this case work in every version of Excel. If you plan with dates instead of month numbers, use MONTH() for the month or compare with EOMONTH directly.

Done: all six cases

Once every task is solved, at least 80% of them without showing the solution, you can issue the "Excel for HR" certificate in your course view.

Go to the course view and certificate

Back to the course overview.

Write to us

Choose language

Select your preferred language