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

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.

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.
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.”
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.
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:
Pair on three keys
Worker code, week ending and assignment, so a worker on two assignments is two weeks, not one.
Compare regular and overtime apart
With no tolerance and no rounding of the agents' own, so equal totals cannot hide a different split.
Read a pending approval as undecided
It carries no approved hours, which is not the same as zero hours approved.

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 gap | In the sample | Who settles it |
|---|---|---|
| More hours than the client approved | 51 worker-weeks; the 31 Glenmark weeks ending 31 October hold 212.5 hours, all paid | Billing, with the client's approver |
| Approved in your export, still pending at the client | 14 Glenmark worker-weeks for the week ending 7 November, 512 hours | Payroll chases the approver before the cutoff |
| Rejected at the client, paid by you | 5 worker-weeks: 3 Tallgrass, 2 Larkin ("Timesheet signed by the wrong supervisor") | Payroll, with the site's supervisor |
| Same total, different overtime | 8 Glenmark worker-weeks: 40 regular and 4 overtime against 44 regular | Billing; 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.

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.
| The rows | In the sample | What the agents do |
|---|---|---|
| Approved at the client, missing from your export | 9 Tallgrass worker-weeks, 288 hours nobody paid and nobody billed | List each with its Beeline row |
| In your export twice | 7 worker-weeks: 4 exact repeats, 3 at 36 against 40; 268 hours in second rows | Put both rows side by side and add up neither |
| On a different assignment code | 6 worker-weeks on WO-2201 in the export and WO-2204 at the client, same hours | Ask 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.

Piotr BabelPartner @ QveryTwo 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.

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.

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 | Short weeks | What a run at that moment shows |
|---|---|---|
| Before the Monday 10:00 payroll lock | 11 | The gap, with both numbers |
| Between the lock and Wednesday's 12:00 invoice | 16 | At the lock, a pending approval; before the invoice, the gap |
| After the invoice went out | 4 | A 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
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.
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 @ QveryA 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.

What they touch is short, and it is agreed in writing before they read a file:
| The agents | Your payroll and billing team |
|---|---|
| Read your back-office export, each client's approved hours and the rules you name | Correct timesheets in your back office and void the duplicate entry |
| Compare every worker's week and list each gap with its rows | Chase pending and rejected approvals with the client's approvers |
| Run before the payroll lock and again before invoicing | Decide what to pay, what to bill and what to credit |
| Show worker codes, never phone numbers or home addresses | Decide 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.