Accounting Operations Track 6: Payroll checks with AI before you hit submit

Published by

on

The Pragmatic CFO: practical finance for the AI era

TL;DR A payroll error is cheap to fix before you submit and expensive after. In this lesson the AI checks all 17 people in Larkspur’s South branch register against the HR roster, the approved changes and the prior period. It finds six fixes that take gross pay from 36,399.75 to 34,464.50, two items for a manager’s judgment, and a shared bank account that points to a possible ghost employee.

What you’ll practice

  • Reconciling the payroll register to the HR roster and the approved change log, person by person.
  • Using the prior period and overtime approvals as checks, and separating errors from judgment calls.
  • Deciding what payroll data can go into an AI tool at all.

Time: about 30 to 40 minutes. You need the free Accounting Operations Track workbook (Excel) and any AI assistant that can read an uploaded spreadsheet. Larkspur Supply Co. is a made-up distributor: the employees, pay rates and bank digits are invented, so the file is safe to upload.

This lesson is about checking a register, not payroll tax or legal advice. For withholding, overtime law and final pay rules, ask your payroll provider or employment counsel.

First: what payroll data can go to an AI

Real payroll is some of the most sensitive data a company holds: pay, bank accounts, retirement elections, sometimes garnishments and leave. Use only the AI tool your company has approved for it, under the data zones in the Workbench setup lesson, which also teaches the five-line prompt format used here.

Even in an approved tool, send only what the checks need. Employee IDs instead of names. The last four digits of a bank account, or a token your system assigns, never the full number. No dates of birth or tax IDs: none of these checks uses them.

Four sources, one question each

  • 6_Payroll_Register: what will be paid. 17 people, gross 36,399.75 as entered.
  • 6b_HR_Roster: who works here, at what rate, with what 401(k) election and bank account.
  • 6c_HR_Changes: what changed this period and who approved it.
  • Prior period gross (a register column): what normal looks like.

The period is Sunday, November 1 to Saturday, November 14, 2026, paid Friday, November 20, South branch only. Ten weekdays make 80 regular hours. Larkspur pays salaried staff annual salary divided by 26 and hourly overtime at 1.5 times the rate.

One thing to notice before you start: every row in the register is internally consistent. Rate times hours equals gross on all 17 lines. The errors are in the inputs, which is why checking the math alone finds nothing.

Step 1: Reconcile people, rates and elections

JOB: You are a payroll analyst checking the South branch register before it is submitted.
DATA: Sheets 6_Payroll_Register (17 rows), 6b_HR_Roster (17 rows) and 6c_HR_Changes (5 rows). Period Sun Nov 1 to Sat Nov 14, 2026; pay date Fri Nov 20, 2026.
RULES: Match on Employee ID. Every register row must be on the roster; flag any that is not. Every Active roster employee must be in the register; flag any missing. A terminated employee is paid only through the termination date; a new hire only from the start date (8 hours per weekday worked). Rate used must equal the HR rate, after any approved change in 6c effective in the period. 401(k) % used must equal the HR election. Salaried gross = annual / 26. Hourly gross = rate x regular hours + rate x 1.5 x overtime hours. Do not change anything that is not a mismatch against these sheets.
OUTPUT: One table, every person: ID, on roster (Y/N), status, rate used vs HR rate, hours expected vs entered, 401(k) used vs elected, gross as entered, corrected gross, change, reason. Then the list of fixes only.
PROOF: State 17 register rows and 17 roster rows read. Show gross as entered totals 36,399.75. Show corrected gross = 36,399.75 plus the sum of the changes.

Step 2: Compare with last period and the overtime approval

Some items are not errors against a sheet but still should not go out unread. The prior period and the change log are how you find them.

JOB: You are the payroll lead reviewing changes from last period before submit.
DATA: The same three sheets. Prior period gross is a column in 6_Payroll_Register.
RULES: Flag any hourly employee whose gross is more than 25% above or below prior period gross. Flag regular hours under 80 for anyone employed the whole period. Where 6c sets an overtime limit, compute hours over the limit and their cost at 1.5x the rate. These are questions, not fixes: do not change hours or pay, and do not guess a reason. Name the person who can answer each one (branch manager, employee's supervisor, HR).
OUTPUT: Table: ID, prior gross, current gross, change, flag, question, who answers.
PROOF: For each flag, show the arithmetic on one line.

Step 3: Check the bank accounts

JOB: You are a payroll control reviewer.
DATA: Direct deposit account (last 4) in 6_Payroll_Register and 6b_HR_Roster.
RULES: Flag any account last-4 used by more than one employee in the register. Flag any register account that differs from the roster. Flag any register person with no HR record. Report the pattern only; do not say who did what or why.
OUTPUT: Table of flags: account last-4, employee IDs, what matches and what does not, prior period gross for each.
PROOF: State how many distinct account last-4 values you read and how many people.

Why the third step matters: in the Association of Certified Fraud Examiners’ Occupational Fraud 2026: A Report to the Nations, the table of asset misappropriation schemes shows payroll schemes in 227 of the cases studied, with a median loss of $63,000, and the report says payroll frauds were detected at a median of 13 months. A ghost employee is paid every period until someone looks.

What a good answer looks like

Show the answer key

Fixes before submit

EmployeeIssueGross change
E-2008 E. WalshRate 26.50 in register, HR rate 24.75. Gross should be 2,054.25.-145.25
E-2014 I. SatoTerminated Nov 6. Pay 40 hours (Nov 2 to 6), not 80: 910.00.-910.00
E-2016 J. Brennan401(k) 0% in register, elected 5% from the first November pay date. Deduct 101.88. Gross unchanged. If last period’s pay date also fell in November, ask HR about a catch-up; we don’t assume one.0.00
E-2019 L. FerraroRate 22.00 in register; approved change to 23.50 from Nov 1. Gross should be 1,880.00.120.00
E-2027 R. VanceNot on the HR roster. Shares bank account ending 5506 with E-2011 G. Petrov. Possible ghost employee: remove and investigate.-1,840.00
E-2031 Q. RoweNew hire, started Nov 9, not in the register. Add 40 hours at 21.00.840.00
Net change-1,935.25

Gross as entered 36,399.75, plus -1,935.25, gives a corrected gross of 34,464.50, still 17 people (Vance out, Rowe in).

Judgment flags, not errors

  • E-2022 N. Osei: 34 overtime hours against 2 last period (prior gross 2,033.50). The HR note approves up to 20 overtime hours while covering for E-2014. The 14 hours over the approval cost 14 x 36.75 = 514.50. Get the branch manager to approve or correct it before submit. Do not change it yourself. The corrected total above leaves Osei as entered.
  • E-2010 F. Abara: 76 regular hours, below 80. Unpaid time off is common; ask for the timecard. Not an error.

Bank accounts: account ending 5506 is used by E-2011 G. Petrov (on the roster) and E-2027 R. Vance (on no HR record). Vance’s prior period gross is also 1,840.00, so the record was paid last period too: the investigation covers past pay dates, not just this one. All other accounts are unique and match the roster.

A thread for lesson 7: vendor V-120 Southside Equipment Repair is paid into an account ending 6107, the same last four as employee E-2016 J. Brennan. You only see it if payroll and vendor bank data are checked against each other.

False positives to avoid: the six other hourly staff with overtime (1 to 6 hours each) are within 25% of last period and need no flag. And Sato’s gross matching last period exactly is the problem, not a reassurance.

Where AI goes wrong on this task

Our view of the usual failure points:

  • Checking only the rows it was given. A check that loops over the register never finds Q. Rowe, who is not in it. The roster has to drive one pass.
  • Trusting the arithmetic. Every line computes correctly. A model asked “is the register right?” may say yes because the math ties.
  • Fixing the judgment calls. Cutting Osei to 20 overtime hours looks helpful and is wrong: the hours may have been worked and need a manager’s decision.
  • Explaining the shared account. “Likely a joint account” or “data entry error” is a guess. The output is the pattern and who should look.
  • Treating a 0.00 change as no change. Brennan’s gross does not move, but the 401(k) deduction of 101.88 does. A total-only check misses it.

What stays with a person

The payroll lead signs off and presses submit. The branch manager approves or corrects Osei’s overtime and confirms Abara’s hours. HR confirms Rowe’s start and whether R. Vance exists. The controller owns the shared account question; keep that circle small until it is resolved. The AI prepares the exception list. It does not contact employees or change the register.

Fixes made now are fixes you do not make at W-2 time; see our year-end close checklist.

Check yourself

Every register row’s gross equals rate times hours. Why is the register still wrong?

Because the inputs are wrong: two rates differ from HR, a terminated employee is paid for the full period, a new hire is missing and one person is not on the roster. Arithmetic checks cannot see input errors.

Why is J. Brennan’s fix 0.00?

The 401(k) election changes the deduction, not gross pay. The register should deduct 5% of 2,037.50, which is 101.88. Net pay falls; gross does not.

Osei has 14 overtime hours over the approval. Why not cut them?

The hours may have been worked. Unapproved is not the same as unworked. The branch manager approves the extra 514.50 or corrects the timecard before submit.

R. Vance’s gross is the same as last period. Why is that not reassuring?

It means the record was paid last period too. A ghost employee looks normal against the prior period by design. The roster and the shared account ending 5506 are what give it away.

F. Abara has 76 hours. Is that an error?

Not on this data. It is below 80 for someone employed the whole period, so it is a question for the timecard, often unpaid time off. Do not change it.

Your turn: try it on your own data

Export your register before submit, your HR roster and this period’s approved changes, with prior period gross. Replace names with employee IDs and keep bank digits to the last four. Only use your company-approved tool for payroll data, and check the data zones in the Workbench setup lesson first. Set your own variance threshold and run all three steps every pay period, not just when something looks off.

Next: Accounting Operations Track 7: Clean up the vendor and customer master with AI

Sources

New here? Start here to find the best guide for your job, or use the free finance templates, the CFO metrics library and the CFO moves tracker.