How to Automate Timesheet Reconciliation at a Staffing Firm

Hours a client never approved come back after the invoice as a credit memo, the document that takes money back off the bill. AI agents compare your timesheets with every client's approved hours before payroll locks and hand payroll the gaps.

On this page
  1. Step 1: Count Every Row Before Comparing Anything
  2. Step 2: Map Each Client's Columns Once
  3. Step 3: Pair Every Worker's Week and Compare in Code
  4. Step 4: Read the Gaps Largest First
  5. Step 5: Catch the Rows That Don't Pair Cleanly
  6. Step 6: Set Aside What Only Looks Wrong
  7. Step 7: Put the Invoice and the Deadline Beside the Gaps
  8. The Hours You Miss Cost More Than the Hours You Spend Comparing
  9. Qvery's Agents Run the Comparison Before Every Cutoff
  10. Your Payroll Lead Brings Three Weeks That Already Closed
  11. Frequently asked questions

A staffing firm pays its workers for the hours on its own timesheets and bills each client for the hours that client approved. Most weeks those are the same hours. When they differ, the firm has usually paid for hours it cannot bill.

The approved hours sit in the client's vendor management system (VMS), the portal where its managers approve temporary workers' time. One client runs SAP Fieldglass, the next Beeline, a third its own portal, and each one exports a spreadsheet in its own layout.

So somebody in payroll lays every one of those files beside the firm's own export, worker by worker, before payroll locks the week's timesheets and they become final. What slips past shows up after the invoice.

The client pays only the hours it approved, and its portal will not reopen a week it was already billed for. The fix is a credit memo: money taken back off an invoice for hours the worker has already been paid.

AI agents do that comparison now, on every export, before each cutoff.

At Qvery, we help staffing firms stop giving back billed hours, with custom AI agents that match each week's timesheets to client-approved hours and list every gap before payroll locks.

Below, we run that comparison on a staffing firm that does not exist. Copperline Staffing Partners is an invented 240-person light industrial and clerical firm in Columbus, Ohio, and its files are the same sample the free check further down this page reads.

They hold three weeks of timesheets from its back office system, the approved hours of three clients in three layouts, the export notes and payroll rules, one client's invoicing terms, the invoice register, the credit memos since August and one client's dispute email.

Its own rules say payroll compares the files by hand, about two working days a week across three people. At a payroll clerk's pay with benefits, that is some $31,800 a year of comparing, and the firm has still issued 14 credit memos since August, each one after the invoice it corrects.

$9,562.50withheld by one client for 212.5 hours it never approved
288approved hours nobody paid or billed
7worker-weeks entered twice
All 31gaps on the disputed invoice visible before it went out
Qvery's run on the sample files of Copperline Staffing Partners, an invented firm, November 2026

Seven steps follow, each with the screen our run produced. After step 7 you can run the same check on your own export.

This compares hours and approvals before payroll and billing close the week. It does not work out pay, decide what to bill, or say whether a paycheck meets wage law.

Step 1: Count Every Row Before Comparing Anything

The agents start with arithmetic nobody argues with: how many rows each file holds. A totals row read as a worker, or a sheet cut off in the export, would spoil every line after it.

Step 1 sheet: the timesheet export's 524 rows read as 523 worker-weeks with the totals row left out, the three clients' rows, and the hours tied to the export's total of 19,376.7.
Every file counted before anything is paired, with the totals row set aside and the hours tied out.Screenshot by Qvery, captured from our run of the agents' method on the sample files.

The firm's export holds 523 worker-weeks (one worker's hours for one week on one assignment, a row each) and one totals row, which the agents leave out; the three clients' files hold 527 rows between them.

Every row keeps its file, sheet and row number from here on, so any line payroll gets later points back to the exact cell a person would open.

Step 2: Map Each Client's Columns Once

This is the one step a model does. No two clients write a week the same way:

  • Fieldglass writes the week ending as 10/31/2026 and drops the leading zeros from worker codes, so 00412 arrives as 412.
  • Beeline writes the week beginning, a Sunday, so its week ends six days later, and gives hours in hours and minutes: 38:30 is 38.5.
  • Larkin's portal gives one total a week with no overtime column, and keeps rejected timesheets on a second sheet.
  • Fieldglass says Approved and Pending Approval where Beeline says Accepted and Awaiting: two clients' words for the same two states.

We gave two models, a small one and a larger one, the firm's export notes, its payroll rules and the headings and first rows of every file.

Each said which column holds the worker, the week, the assignment, the hours and the status, and how that file writes them. Neither compared a single hour, and they agreed on every column.

Step 2 sheet: each export's worker, week and hours columns, its date and hours format and status words, and the client named Tallgrass in the mapping and Tallgrass Packaging in the export.
One row per export: which heading the agents read as which field, how each file writes its dates and hours, and the client named two ways.Screenshot by Qvery, captured from our run of the agents' method on the sample files.

People who do this comparison by hand in a spreadsheet land on the same moves:

Tips from Reddit

How payroll people compare two reports by hand

Data types of the lookup value must match the values you are looking up.. including leading zeros.

r/excel · Mar 2024 ↗

I’ve been playing around with Macros as of late and have figured out one coding that will highlight differences between the “past sheet” and “current sheet,” and another that will give me a list of employee IDs at the bottom of the “current sheet” if they are on the “past” but not “current.”

r/Payroll · Aug 2026 ↗

So you could set it up that it will do “group by” using every column and then have it count how many rows it combined for that. Anything with a number greater than 1 would be a duplicate.

r/Payroll · Aug 2026 ↗

Step 3: Pair Every Worker's Week and Compare in Code

Once the columns are mapped, the arithmetic belongs to code, so it gives the same answer every week. Three rules decide what counts as the same week:

  1. Pair on three keys

    Worker code, week ending and assignment, so a worker on two assignments is two weeks, not one.

  2. Compare regular and overtime apart

    With no tolerance and no rounding of the agents' own, so equal totals cannot hide a different split.

  3. Read a pending approval as undecided

    It carries no approved hours, which is not the same as zero hours approved.

Step 3 sheet: 503 pairs by client, 362 matching and 141 differing, 11 rows in one file, 7 entered twice and 6 code mismatches, with every client row accounted for.
503 worker-weeks paired across three clients, and where each one went.Screenshot by Qvery, captured from our run of the agents' method on the sample files.

Of the 503 pairs, 362 match exactly and stay in the workbook so anyone can see what agreed. The other 141 go on payroll's list, largest first. The 11 rows with no partner, the 7 weeks entered twice and the 6 code mismatches get their own lists in step 5.

Check that it worked: every row lands somewhere. The 527 client rows are 503 pairs, 11 rows with no partner, 7 doubled weeks and 6 code mismatches; nothing is left over on either side.

Step 4: Read the Gaps Largest First

Set the 63 rounding rows aside for step 6, and the other 78 differences fall into four kinds. Each comes back with both numbers and both row numbers, so payroll can open the two cells and see it.

The four kinds of gap in the sample, and who settles each
The gapIn the sampleWho settles it
More hours than the client approved51 worker-weeks; the 31 Glenmark weeks ending 31 October hold 212.5 hours, all paidBilling, with the client's approver
Approved in your export, still pending at the client14 Glenmark worker-weeks for the week ending 7 November, 512 hoursPayroll chases the approver before the cutoff
Rejected at the client, paid by you5 worker-weeks: 3 Tallgrass, 2 Larkin ("Timesheet signed by the wrong supervisor")Payroll, with the site's supervisor
Same total, different overtime8 Glenmark worker-weeks: 40 regular and 4 overtime against 44 regularBilling; the client's terms bill overtime at time and a half

The last kind is the one a person comparing totals never sees. Both files say 44 hours, so the week looks settled, but the firm paid four of them as overtime and the client approved none, and its terms bill overtime above 40 hours at one and a half times the rate.

Step 4 sheet: the kinds of difference with their worker-weeks and hours, and the six largest hour gaps with export and approved hours and their source rows.
Each kind of difference with its count, then the largest hour gaps with both values and the rows they came from.Screenshot by Qvery, captured from our run of the agents' method on the sample files.

The fix happens where it always did: payroll and billing correct their own systems, and the client's approver corrects the portal.

Check that it held: next week's run. A gap settled this week does not come back, and one that comes back was settled in only one of the two files.

Step 5: Catch the Rows That Don't Pair Cleanly

The costliest rows in this sample have no partner on the other side, or two on the same side.

Rows with no partner, or two, and what the agents do with them
The rowsIn the sampleWhat the agents do
Approved at the client, missing from your export9 Tallgrass worker-weeks, 288 hours nobody paid and nobody billedList each with its Beeline row
In your export twice7 worker-weeks: 4 exact repeats, 3 at 36 against 40; 268 hours in second rowsPut both rows side by side and add up neither
On a different assignment code6 worker-weeks on WO-2201 in the export and WO-2204 at the client, same hoursAsk payroll which code stands

The agents list the doubled rows next to each other and stop there.

The firm's rules say a corrected timesheet gets a second entry and the first one is voided, and they leave blank who voids it. Until someone owns that line, the agents can say the week is in the export twice, never which row stands.

Step 5 sheet: 11 approvals with no worker in the export, 9 at Tallgrass and 2 at Larkin, and 7 worker-weeks entered twice in the export with both rows' hours.
Rows with no partner on the other side, and the worker-weeks entered twice, side by side.Screenshot by Qvery, captured from our run of the agents' method on the sample files.
Piotr BabelPartner @ Qvery

Two rows for one worker's week look like an easy call: one says 40, the other 36, so the 36 must be the correction. Sometimes it is the other way round, and the rules here leave blank who decides. So the agents put both rows on the list with their row numbers and stop. A guess at that point becomes a paycheck someone has to fix later.

Step 6: Set Aside What Only Looks Wrong

Three kinds of flag in this sample are working as intended, and the agents say so instead of listing them as faults:

None of those is a mistake, and each one points at a decision the firm's own rules never made.

"A difference of up to ____ hours is accepted without chasing," the rules say, with the number left blank. Three rounding rules meet in one comparison, the firm's tenth, Glenmark's nearest quarter hour and Beeline's cut to the quarter, and somebody has to pick the one it runs on.

Step 6 sheet: 63 rounding differences, 2 seasonal Larkin approvals and dropped leading zeros, then the payroll rules' blank tolerance, blank voider and rounding rule.
What the agents set aside, and the three blanks the firm's rules leave for payroll to fill.Screenshot by Qvery, captured from our run of the agents' method on the sample files.

The agents keep the rounding rows on their own count instead of hiding them. Once payroll writes a tolerance into the rules, the next run applies it before anything is compared.

Step 7: Put the Invoice and the Deadline Beside the Gaps

Hours turn into money only where a file states the rate or the amount, and three files in the sample do.

Invoice 26-1172 billed Glenmark for 2,990 hours for the week ending 31 October; Fieldglass approved 2,777.5. Glenmark is withholding the difference, 212.5 hours or $9,562.50 at $45 an hour, and its portal will not reopen the invoiced week.

The credit memo is due Wednesday, 18 November. The register and the credit memos add the history: 14 credits since August, $29,298.80, every one dated after its invoice.

Step 7 sheet: invoice 26-1172 with 2,990 hours billed against 2,777.5 approved, $9,562.50 withheld with a credit memo due 18 November, and 14 credit memos since August by reason.
The disputed invoice, the amount withheld and its deadline, and the credits since August by reason.Screenshot by Qvery, captured from our run of the agents' method on the sample files.

The approval times say when the agents should run. Across the two weeks its file covers in full, Glenmark approved 95 of 160 timesheets after the Monday 10:00 lock. Here is when the 31 short weeks on that invoice were approved:

When the client approved the 31 short weeks on invoice 26-1172
When the client approvedShort weeksWhat a run at that moment shows
Before the Monday 10:00 payroll lock11The gap, with both numbers
Between the lock and Wednesday's 12:00 invoice16At the lock, a pending approval; before the invoice, the gap
After the invoice went out4A pending approval, so billing knows before it invoices

So the agents run twice a week. At the lock, payroll gets the gaps and the pending approvals while there is still time to chase them. Before the invoices, billing sees what the clients approved since Monday, and every hour still unapproved, before it bills a week the client's portal will close.

Your own timesheet export and one client's approved hours are enough to see where your weeks differ.

The Hours You Miss Cost More Than the Hours You Spend Comparing

At the sample firm's own effort, payroll spends about $31,800 a year on the comparison, figured at the federal survey's pay for payroll and timekeeping clerks at staffing and employment firms, $26.76 an hour in May 2025, with benefits added.

Say your firm invoices 1,500 worker-weeks a month, about 350 workers out each week, and 2% of them go out with hours the client never approved or approved hours never billed, $250 a week on average. That is $90,000 a year at stake.

If payroll catches half of it before the invoice today, $45,000 goes back on credit memos or into write-offs.

With the agents catching 90% before the invoice, $9,000 still slips through and $36,000 a year stays on the invoices. After about $395 a month to run them, that is $31,260 a year, and every $10,000 of build is earned back in 3.8 months.

Every figure in that example is an assumption; put your own in:

Timesheet Reconciliation ROI Calculator

What Unmatched Hours Cost You, And What The Agents Catch

Every worker's week you bill a client for: one timesheet per worker, week and assignment. The example's 1,500 is our assumption for a staffing firm with some 350 workers out each week.
Worker-weeks billed with hours the client never approved, or approved hours left off the invoice. The example's 2% is our assumption; in APQC's open benchmark the median company processes 96.0% of time records error-free the first time.
The hours in the gap at your bill rate. The example's $250 is our assumption; in the post's sample run, the 31 worker-weeks one client withheld averaged 6.85 hours, $308 at its $45 rate.
Of that money, the share your payroll team finds and settles before billing closes the week; the rest comes back as a credit memo or a write-off. The example's 50% is our assumption.
The agents compare every worker's week across every client's export before payroll locks and again before invoicing, and your payroll and billing team decides every row. An approval that lands after the invoice still waits on the client. The example's 90% is our assumption.

Recovered Per Year

$31,260

$36,000 more caught a year, after $4,740 to run the agent

Unmatched Worker-Weeks A Year
360
Agent Running Cost (Estimate)
$395 a month
Payback Per $10,000 Of Build
3.8 months

On these numbers, the agent stops $36,000 a year from slipping through, $31,260 after its own running cost, and every $10,000 of the build is earned back in 3.8 months.

Example numbers. Type over them with yours.

The calculator leaves out the payroll team's two days a week, which come back on top. Hours like those are worth the most when they go to work the firm would otherwise hire someone for.

Vlad ShvetsPartner @ Qvery

A credit memo is the most expensive way to find out a client approved fewer hours than you paid. By then the worker has the money, the client's portal will not reopen the week, and the margin on those hours is gone. Every gap found before Wednesday's invoice is a call to a site manager instead of a refund, which is why the agents run before the lock and again before the invoice.

Qvery's Agents Run the Comparison Before Every Cutoff

The agents we build for a staffing firm's payroll start when the week's exports land in the folder or inbox you choose.

Where your back office or a client's VMS can send its file on a schedule, they pick it up themselves. They map each client's layout once, with your payroll lead, then pair every worker's week across every export and compare in code.

By the Monday lock, payroll has the list: every gap with both numbers and both rows, the pending and rejected approvals by client, the rows only one file holds and the doubled entries in pairs. Before Wednesday's invoices the agents run again, so billing sees what came in since.

Timesheets and each client’s approved hours go to AI agents that map each layout, pair every worker’s week and list every gap; payroll and billing decide each row.
The AI agents compare every week; your payroll and billing team decides every row, and nothing in payroll or an invoice changes until they do.Illustration by Qvery, drawn for this article.

What they touch is short, and it is agreed in writing before they read a file:

What the agents touch, and what stays with your payroll and billing team
The agentsYour payroll and billing team
Read your back-office export, each client's approved hours and the rules you nameCorrect timesheets in your back office and void the duplicate entry
Compare every worker's week and list each gap with its rowsChase pending and rejected approvals with the client's approvers
Run before the payroll lock and again before invoicingDecide what to pay, what to bill and what to credit
Show worker codes, never phone numbers or home addressesDecide every row on the list

They never change payroll or an invoice, never work out pay or say whether a paycheck meets wage law, and never say a worker, a recruiter or an approver got it wrong. We name every outside service that touches the files and where each keeps them, and the lists go to payroll and billing only.

Your Payroll Lead Brings Three Weeks That Already Closed

You bring last month's exports: the back-office file, each client's approved hours, the notes or the person who knows what every column means, the payroll rules and the credit memos that followed.

We map each client's layout with your payroll lead, run the agents on weeks payroll has already closed, and set their list beside what payroll caught by hand and the credits that came after. Any rule the two disagree on, a rounding rule or a blank tolerance, gets settled in that round.

Then the agents move to the live week and run before each cutoff, with a first working result in two weeks once the files flow. From then on we count two things every week: the hours of comparing handed back to payroll, and the gaps settled before the invoice instead of after it.

Frequently asked questions

What is a VMS, and why doesn't its invoice match the hours we paid?

A vendor management system is the client's portal where its managers approve temporary workers' hours, and the client pays against what it approved. You pay from your own timesheets, so the two drift: a late approval, a split shift entered as one block, overtime counted differently, a wrong assignment code, a week keyed twice. Both numbers on each gap usually show which.

Does it work with our back office and our clients' VMS?

It reads the files those systems already export: submitted hours from your back office, approved hours from each client's VMS or portal as a spreadsheet or CSV, each layout mapped once with your payroll lead. Approved hours sent as a PDF or by email can be read in a build too.

What happens when a client changes its export?

The new layout gets mapped again before anything is compared. A client file where most rows suddenly pair with nothing comes back as one question to your payroll lead, the rule our first run taught us. A column the agents cannot map is listed as unmapped and left out.

Does it chase approvals or write to our clients?

No. The agents list every pending and rejected approval by client, worker and week, with the rows, so the chase starts from a list instead of from a search. Your payroll specialists send the messages and talk to the site managers, as they do today. The agents send nothing outside your firm.

Can it show what each gap is worth in dollars?

The free check reads hours and approvals only. In a build we add the rates you choose, from your register or your rate cards, so each gap also shows its worth on the invoice, and on the paycheck if you want that. Starting with hours gets the first build running sooner.

Does it decide whether a correction is paid now or on the next payroll?

No. It makes no statement on what a worker is owed, when a correction must be paid, or whether pay is complete under wage and hour rules. Those calls belong to your payroll team and whoever advises it on the law. The agents tell payroll where the hours differ, early enough to decide.

What if a client approves hours after the invoice went out?

Then those hours were pending on the list when billing invoiced, so billing knew which weeks the client had not decided, and your rules say whether unapproved hours get billed. When the approval lands, the next run shows the week settled or as a gap with both numbers.

Do our clients have to change anything?

No. Nobody at the client logs in to anything new, and its managers keep approving hours the way they do today. The agents read the export your team already downloads from each client's VMS or portal.

How large can the exports be?

The free check reads a timesheet export and one client's approved hours of up to 5,000 rows each, every file under 25 MB. A build reads every client's export each week. The comparison itself is code, and it ran this sample's three weeks and three clients in under a second.

Who sees our workers' hours and data?

Before the build we agree in writing what the agents may read and name every outside service that touches the files, and where each keeps them. The agents read the hours and approval columns only. Their lists show worker codes, never phone numbers or home addresses, and go to payroll and billing alone.

How is this different from payroll reconciliation?

Payroll reconciliation usually means checking the payroll register against the general ledger and the bank after payroll runs. This is earlier and narrower: your timesheets against the hours each client approved, before payroll locks and before the invoice goes out, so fewer corrections reach the register at all.

Keep Reading

What a Recorded Interview Can Prove About a Finalist

The signs of a fake interview are real and none of them is proof. A recording keeps the voices, the seconds and the words, and never the reason behind them.

How AI Agents Review Interviews for Signs of Fraud

A recruiter senses a finalist had help on the call and has only a hunch. This walks one finalist’s interviews through AI agents that list what to ask.

Why VMS Invoices Don’t Match the Hours You Paid

A staffing firm’s paychecks and its clients’ VMS invoices run on different rules. What the gap costs a firm your size, and how to find it before the invoice.