Before payroll is approved, someone has to answer one question: what changed since last month, and why? A wrong bank account, an allowance that was never stopped, someone paid twice, or a leaver still on the payroll. These are the errors a month-to-month comparison catches.
This guide shows you how to compare two months of payroll in Excel and find every change, every new starter and every leaver in a few minutes.
What a payroll comparison should tell you
- Every employee whose pay changed, and by how much
- Which changes are large enough to need a second look
- Who is new on the payroll this month
- Who was paid last month but not this month
- Whether the totals reconcile
Step 1: Export both months with an employee number
Export last month’s and this month’s payroll reports to Excel and paste each onto its own sheet, named Last and This. Make sure both have the employee number in column A, the name in column B and gross pay in column C.
Always match on employee number, never on name. “Chipo Marufu” in one month and “C. Marufu” in the next would look like a leaver and a new starter.
Step 2: Build the comparison sheet
On a third sheet called Compare, copy the employee numbers and names from This into columns A and B, and this month’s gross pay into column D. Put your threshold for a large change (for example 5%) in J1.
Bring in last month’s pay
In C2, look up each employee in last month’s payroll:
=IFERROR(INDEX(Last!C:C,MATCH(A2,Last!A:A,0)),"New")
MATCH finds the employee number in last month’s list, and INDEX returns the gross pay from that row. If the number is not found, IFERROR shows New. The 0 at the end of MATCH means exact match. Without it Excel may return the wrong person’s pay.
Calculate the change and flag it
In E2, F2 and G2:
E2: =IF(C2="New","",D2-C2)
F2: =IF(C2="New","",E2/C2)
G2: =IF(C2="New","New starter",IF(ABS(F2)>$J$1,"Check","OK"))
ABS ignores the plus or minus sign, so a 20% drop is flagged just like a 20% increase. Format column F as a percentage and copy the row down.
The finished comparison
Out of six people, only three need attention. Nyasha Dube’s pay rose 10.0% and Chipo Marufu’s fell 20.0%, so both are flagged Check. Tatenda Gumbo’s 4.0% increase is below the threshold. Simba Banda is a new starter.
Step 3: Find the leavers
Employees who were paid last month but not this month do not appear on the Compare sheet, because it is built from this month’s list. To find them, add this formula next to last month’s data on the Last sheet, in D2:
=IF(ISNA(MATCH(A2,This!A:A,0)),"Not paid this month","")
In our example this flags Farai Ncube (E006), whose last month’s pay was 850. Confirm that every name flagged here has an approved termination.
Step 4: Reconcile the totals
The final check is that the movement between the two months is fully explained. Last month’s total, plus new starters, minus leavers, plus changes for continuing staff, must equal this month’s total:
Investigating the flagged lines
A flag is not an error, only a question. Common legitimate reasons for a change include a salary increase or promotion, overtime, a one-off bonus or back pay, unpaid leave, or a change in allowances. For each Check line, note the reason and the supporting document. That note becomes your audit trail.
Run the same comparison on net pay and on each major deduction for a fuller picture.
Common mistakes to avoid
- Matching on names. Spelling differences create false new starters and leavers. Use the employee number.
- Approximate lookups. VLOOKUP or MATCH without the exact-match setting (FALSE or 0) can quietly return another employee’s pay.
- Ignoring leavers. A comparison built only from this month’s list will never show someone who dropped off. Run Step 3 as well.
- Employee numbers stored as text in one month and numbers in the other. They will not match. Make both the same format first.
- Flagging only increases. Large decreases matter too. They can mean a missed allowance or an incorrect deduction.
Skip the setup: use our ready-made analyser
The Payroll Variance Analyser does the comparison, the leaver check and the reconciliation in one file. Paste both months and every change is flagged. Every formula is explained inside.
Get the Payroll Variance Analyser Get the full HR & Payroll Analysis Toolkit ($35)
Next steps
A clean comparison depends on clean data. If your exports are messy, start with How to clean an employee list in Excel. Find more ready-made tools in Excel for Professionals.
