Extract invoice data into a sheet with ChatGPT
The struggle: You retype invoice fields into a spreadsheet, and one typo throws off the books.
What you end up with: A table of invoice details with every uncertain field marked, plus a check that the lines add up to the totals.
Upload invoices in small batches and ask for fixed fields, with UNCLEAR for anything not readable. Arithmetic checks catch misread amounts. A person checks every row before it goes in the books.
Tools: ChatGPT. Level: Free to start. Time: 30 min for a batch.
Use it if
- You receive PDF or photo invoices
- You retype them into a sheet
- You want a first draft table to check, not a finished ledger
Skip it if
- Your accounting software already reads invoices for you
- You want it to pay or approve invoices
What you need first
- A ChatGPT account with file uploads and data analysis (limits vary by plan and are not published)
- Invoices as PDFs or clear photos
- Before you upload money data, check Settings > Data controls > Improve the model for everyone and switch it off if you want
The method
Decide the fields and batch size (ChatGPT: Chat)
Write the fields you need: supplier, invoice number, date, due date, net, tax, total, currency. Collect 5 to 10 invoices per batch. On copies, black out bank account and card numbers and any personal data. You will check payment details on the originals yourself.
You get: A field list and a small batch.
Tip: Work on copies, so the originals stay untouched for the later check.
Upload the batch (ChatGPT: File uploads)
Click the plus in the message box, attach the invoices and paste the prompt. Read the table beside the invoices on screen.
Prompt to copy:
Read each attached invoice and return one table row per invoice with: file name, supplier, invoice number, invoice date, due date, net amount, tax amount, total, currency. If a field is missing or hard to read, write UNCLEAR, never guess. Do not combine invoices. Add a notes column for anything odd, such as a credit note or wording that says payment details have changed.
You get: A draft table of the batch.
Tip: Photos should be flat and well lit to read well.
Check the arithmetic (ChatGPT: Data analysis)
Ask ChatGPT to check net plus tax equals total on every row, and to list duplicate invoice numbers by supplier. Open any flagged invoice yourself.
Prompt to copy:
For the table above, check on every row that net plus tax equals total. List rows that fail with the difference. Also list duplicate invoice numbers per supplier. Return the corrected table only after I confirm the failing rows. If a row is UNCLEAR, leave it.
You get: A list of rows that fail the maths or look duplicated.
Tip: Reading errors often show up as a total that does not add up.
Verify and enter it yourself (ChatGPT: Chat)
Compare every row with its invoice, not just a sample, and fix the UNCLEAR ones. Check payment details on each original against what you already have on file for that supplier. Then enter or import the table into your books yourself.
You get: A verified table in your books.
Tip: If bank details changed on an invoice, call the supplier on a known number before paying.
Where this goes wrong
- Misread digits are the main risk. Check every row against the invoice, especially amounts and dates.
- A changed bank detail on an invoice is a common fraud sign. Check it with the supplier.
- Tax treatment is for your accountant, not ChatGPT.
- Have a qualified person check this before you sign, file or send it.
Sources
- ChatGPT Help Center: Uploading files and audio
- ChatGPT Help Center: Data analysis with ChatGPT
- ChatGPT Help Center: Data controls
More like this
- Sort a year of bank lines into categories
- A polite late payment email ladder
- Your spreadsheets, explained and charted
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.