Google Sheets + Apps Script automation

Weekly billing for a cleaning company, in one click

The office used to spend Monday morning turning a messy export from their scheduling app into client invoices and cleaner pay. This sheet does it in about ten seconds, and lists anything a person should double-check instead of guessing.

Working demo · fictional company “Brightside Cleaning Co.” · 4 weeks, 300 job rows
1

Paste the weekly export

The raw export goes into a tab called Raw Jobs, exactly as it comes out of the scheduling app. Real exports are messy: repeated rows, missing rates, blank hours, client names typed different ways, mixed date formats.

Raw Jobs tab with the unedited export from the scheduling app
2

Click Billing → Run weekly billing

The script cleans the data, applies the company's price list and pay rules, and rebuilds the output tabs from scratch. Each client gets a weekly total, ready to copy into an invoice.

Client Invoices tab with weekly totals per client
3

Check the short review list

Nothing is silently fixed. Every problem the script found is listed with what it did about it, so the office checks a handful of rows instead of all of them.

Needs Review tab listing each issue and the action taken
4

Read the weekly summary

Billed, paid out, gross margin and open issues per week. A summary also arrives by email, so the owner sees it without opening the sheet. It can run by itself every Monday at 7am.

Summary tab with billed, paid, margin and issues per week

What it catches

Problem in the exportWhat the script doesIn demo
Same job exported twiceKeeps the first, removes the copy4
Hourly job with no rateUses the client's price list and says so5
Completed job with blank or zero hoursHolds it back from billing and pay until confirmed5
Client name spelled differentlyMatches it to the price list name7
Date in MM/DD/YYYY formatReads it correctly5
No-showBills and pays $0, flags for follow-up4

Checked to the cent

Every total in the sheet was compared with a separate calculation written in Python from the same rules. All four output tabs (client invoices, cleaner payouts, review list, weekly summary) match exactly.

Built to be safe

  • The summary email only goes to the sheet owner.
  • Running it twice gives the same result; output tabs are rebuilt, never appended to.
  • The raw export and price lists are only read, never changed.
  • No add-ons or paid tools: it lives inside the client's own Google account.

The weekly email

Under the hood

Google Apps Script on a normal Google Sheet: one menu, a few tabs, an optional weekly trigger. Billing rules live in plain tabs (Rates, Cleaner Pay), so the owner changes a price in the sheet, not in code.

Read the script