# How should a small company connect invoices, payments, leads and quotes in Google Sheets so nothing gets entered twice?

> Give every lead, quote, invoice and payment one ID and one home tab, link the rest with lookups, then automate one workflow at a time with approval steps.

Updated: 2026-11-04

A lot of small companies already run their back office in Google Sheets. Leads sit in one tab, quotes in another, invoices come from separate software, and someone matches bank payments by hand.

The problem is rarely the spreadsheet. It is the same customer, amount or status being typed in three places, so the copies drift apart and nobody trusts any of them.

## How should a small company connect invoices, payments, leads and quotes in Google Sheets so nothing gets entered twice?

Treat the spreadsheet like a small database first, and automate second. Each fact gets typed once, in one tab, and every other tab points to it by ID.

Then add automation one workflow at a time, in the order the data flows. A person approves anything that touches money or a customer before it counts.

This page is general information, not tax or accounting advice. Your accountant or another qualified professional should confirm how payments, partial payments and records must be handled in your books.

## Step 1: Write down the flow before you automate

Spend a week noting where each piece of information starts and where it gets copied. A simple list is enough:

- Where a lead first arrives, such as a web form, phone call or email.
- Who turns a lead into a quote, and where the quote lives.
- What happens when a quote is accepted, and who creates the invoice.
- How payments are spotted, matched and marked as paid.
- Where costs, supplier invoices and documents end up.

Note roughly how long each step takes. That tells you which workflow is worth automating first, and which ones a formula can fix.

## Step 2: Give every record one ID and one home

Each type of record gets its own tab and its own ID column. Other tabs store the ID, not a retyped copy of the details.

- **Leads** have a Lead ID.
- **Quotes** have a Quote ID and store the Lead ID.
- **Invoices** have an Invoice ID and store the Quote ID.
- **Payments** have a Payment ID and store the Invoice ID.
- **Costs** have a Cost ID and store the supplier and job.

Two built-in Sheets features do most of the work:

- **Dropdowns from a range.** Google Sheets can build a dropdown from a list of cells and reject entries that are not on the list. Use it so people pick a Lead ID or status instead of typing one.
- **XLOOKUP.** It returns a value from another column based on where a match was found. Use it to pull a client's name and email into the Quotes tab from the Lead ID.

Keep status columns to a short fixed list, such as New, Quoted, Accepted, Invoiced and Paid. Free-text statuses are where duplicates and lost leads hide.

## Step 3: Automate in the order the data flows

Each workflow depends on the IDs created by the one before it. Building in this order means nothing new has to be retyped later:

1. **Lead intake.** Send your web form straight into the Leads tab. Google Forms can save responses to an existing spreadsheet.
2. **Quote status.** New quotes take a Lead ID from the dropdown, and the lead's status updates from the quote.
3. **Invoice from an accepted quote.** When a quote is marked Accepted, create a draft invoice row with the Quote ID and amount filled in.
4. **Payment matching.** Import the bank statement into a Payments tab and suggest a match to an open Invoice ID. A person confirms it.
5. **Costs and documents.** Capture supplier invoices and file them with a Cost ID and job.

If one later workflow eats far more time than the rest, it is fine to start there. Just set up the IDs from Step 2 first.

Two related jobs have their own pages. For sending statements and invoices to your accountant each month, see [automating monthly documents for your accountant](https://tommorri.com/answers/automate-monthly-documents-for-accountant).

For turning PDFs and scans into clean fields, see [automating data entry into a system with no API](https://tommorri.com/answers/automate-data-entry-old-erp-no-api).

## Step 4: Choose a script, a workflow tool or an agent

All three can work with Sheets. Pick by who will maintain it.

**Google Apps Script.** Installable triggers can run a function when a form is submitted, when a cell is edited or on a schedule.

Google lists a script runtime limit of 6 minutes per execution. Total trigger runtime also has a daily cap, which is lower on a gmail.com account than on Google Workspace.

**A workflow tool such as n8n.** Its Google Sheets node can append rows, update rows, and "append or update" a row if it already exists. It suits teams who prefer a visual flow to code.

**An AI agent.** Useful where the input is messy, such as reading an email to work out which quote a customer means. Keep it on suggestions, and let fixed rules and a person decide what gets saved.

Many teams use more than one. Formulas handle lookups, a script or workflow tool moves rows, and an agent only drafts where judgment is needed.

## Step 5: Make retries safe

Automations fail and get re-run. Build them so running twice does not create two invoices.

- Before adding a row, check whether its ID already exists, and update instead of appending.
- In Apps Script, LockService can stop two runs from changing the same sheet at the same time.
- Keep a Log tab with the time, record ID, action and result of every automated change.
- Apps Script emails a failure summary when a trigger fails, so send those alerts to someone who will read them.

## Step 6: Test on a copy, then add approval points

Build and test on a copy of the spreadsheet with sample rows. Move to the live file only when every step runs twice without creating a duplicate.

Decide where a person must approve before anything counts:

- Payment matches that are partial, unclear or for a different amount.
- Any invoice before it is sent to a customer.
- Write-offs, refunds and changes to an amount already invoiced.

Protected ranges help keep formula and ID columns safe from accidental edits. Google notes that protection is not a security measure, so only share the file with people you trust.

## When Sheets stops being enough

Watch for signs that the setup has outgrown a spreadsheet:

- Scripts regularly hit their runtime limits.
- Several people edit the same rows and overwrite each other.
- Your accountant needs a full ledger that Sheets cannot give them.

At that point, invoices and payments usually belong in accounting software, with Sheets kept for leads, quotes and reports.

## Comparison

| Approach | Good for | Main limit |
| --- | --- | --- |
| IDs, dropdowns and lookups only | Stopping retyping between tabs | Someone still moves each record along by hand |
| Google Apps Script | Teams with someone comfortable reading code | Runtime limits per run and per day |
| Workflow tool such as n8n | Visual flows across several apps | Another tool to host, pay for and maintain |
| AI agent with approval steps | Messy emails, documents and matching suggestions | Needs a person to confirm anything that counts |
| Accounting software for invoices and payments | Growing volume and a full ledger | Moves part of the data out of Sheets |

## Where it fits

If you want the whole flow mapped before anyone writes a script, you can describe the task at tommorri.com and get a mapped agent workflow you can run yourself on points.

For a production build, a 30-minute call scopes a custom system with agents wired into the tools you already use, such as your existing sheets.

It does not replace your accountant or your accounting software, and it does not give tax advice. There is no public price menu. If IDs, dropdowns and a few lookups already stop the double entry, you do not need it.

## FAQ

### Should I use Google Apps Script or a tool like n8n?

Use Apps Script if someone on the team can read and fix code, since it lives inside Google already.

Use a workflow tool if you prefer visual flows or need to connect several apps outside Google.

### How do I stop an automation from creating duplicate rows?

Give every record an ID, and check for that ID before adding a row.

Update the existing row instead of appending, and log every change so a re-run is easy to spot.

### Can AI match bank payments to invoices for me?

It can suggest matches, especially when a payment reference is messy or partial.

Have a person confirm each match before an invoice is marked paid, and ask your accountant how partial payments should be recorded.

### Which workflow should I automate first?

Usually lead intake, because every quote, invoice and payment later points back to a Lead ID.

If another step eats far more time, start there, but set up the ID columns first.

### Do I need to leave Google Sheets to do this?

Not at the start. Sheets, Forms and Apps Script can carry a small back office a long way.

Move invoices and payments into accounting software when volume, several editors or your accountant's needs outgrow a spreadsheet.

## Sources

- [Google Docs Editors Help: Create an in-cell dropdown list](https://support.google.com/docs/answer/186103) - dropdowns from a range, entries not on the list are rejected
- [Google Docs Editors Help: XLOOKUP function](https://support.google.com/docs/answer/12405947) - returns values from a result range based on where a match was found
- [Google Docs Editors Help: Choose where to save form responses](https://support.google.com/docs/answer/2917686) - Google Forms responses saved to an existing spreadsheet
- [Google Docs Editors Help: Protect, hide and edit sheets](https://support.google.com/docs/answer/1218656) - protected sheets and ranges, protection is not a security measure
- [Apps Script: Installable triggers](https://developers.google.com/apps-script/guides/triggers/installable) - form submit, edit and time-driven triggers, failure summary emails
- [Apps Script: Quotas for Google Services](https://developers.google.com/apps-script/guides/services/quotas) - 6 minute script runtime per execution, daily trigger runtime caps for consumer and Workspace accounts
- [Apps Script: Class LockService](https://developers.google.com/apps-script/reference/lock/lock-service) - prevents concurrent access to sections of code
- [n8n Docs: Google Sheets node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/) - append row, update row, and append or update row operations

https://tommorri.com/answers/plan-back-office-automation-google-sheets-small-company
