How to extract invoice data to Google Sheets

Turn invoice PDFs and photos into structured fields and line items for review, reconciliation, or accounts-payable tracking.

Recommended columns: source file, vendor, invoice number, invoice date, due date, currency, subtotal, tax, total, purchase order, item description, quantity, unit price, and line amount.

Start with a consistent sheet structure

OCR is much easier to operationalize when every invoice lands in the same column structure. Decide whether you need one row per invoice, one row per line item, or two linked sheets. A summary sheet works well for payment tracking; a line-item sheet is better for spend analysis.

The free invoice column template builder can generate a starting header row.

Invoice OCR workflow

  1. Collect a clear source. Use the original PDF when possible. For photos, keep the invoice flat, fill the frame, and avoid shadows over totals or line items.
  2. Select spreadsheet extraction. Upload the invoice in Sheets mode. The OCR engine analyzes both table layout and common invoice fields.
  3. Verify identifiers first. Check vendor name, invoice number, purchase order, and dates. These fields drive deduplication and matching.
  4. Review financial values. Confirm currency, subtotal, tax, discounts, shipping, and total against the source document.
  5. Normalize the output. Apply consistent vendor names, date formats, account categories, and number formats before importing into another system.

One row per invoice or one row per item?

LayoutBest forTradeoff
One row per invoicePayment status, due dates, vendor totalsDoes not preserve detailed purchases
One row per line itemSpend analysis, inventory, cost allocationInvoice-level fields repeat across rows
Summary + items sheetsAuditable finance workflowsRequires a shared invoice ID between sheets

Prevent duplicate invoices

Create a unique key from vendor name, invoice number, and invoice date. Before appending a new row, check whether that key already exists. Keep the source filename or a Drive link in the sheet so reviewers can trace each row back to the original document.

Accuracy reminder: always compare extracted payment details and totals with the original invoice before approval or payment.

Related resources

Try invoice OCR

Extract a real invoice into spreadsheet rows and review the result in the browser.