Home › Guides › Document extraction › Invoice data extraction
How to extract data from invoices into Excel, and what to check
Invoice data extraction turns a stack of vendor invoices into rows you can enter, code, pay and test. Whether it’s done by hand, by software or by a service, the same decisions and the same checks decide whether the rows can be used. This guide starts with what an accounts payable clerk or bookkeeper decides first. Then it covers the fields, the values that go wrong, and how each invoice and the whole batch should tie. The basics come last.
We check all of AI’s work. An AI can read a stack of invoices in minutes, and its mistakes look right: a misread total, an invoice counted twice, or a credit memo entered as a charge. Our invoices and receipts service has AI do the reading, and our own software checks every value against its page before you see it. See real mistakes we found.
1. Decide first: the header, or every line
Most invoice work needs one row per invoice: the vendor, the number, the dates and the amounts, enough to enter the bill and pay it. Job costing, inventory, price checks against a contract and audit testing also need one row per line item. That row has the quantity, the unit price and the amount, and sometimes the item code, the job or the account.
Decide before anything is extracted. Line items take several times the work, and a header-only file can’t be turned into line items later without going back to the invoices. Where both are needed, keep two tables, one row per invoice and one row per line, joined by the vendor and the invoice number.
2. The fields to capture
- Vendor. The name as printed, and the vendor ID from your own list, so that “ABC Supply” and “ABC Supply Co.” are the same vendor.
- Invoice number, invoice date and due date.
- PO number and terms, such as net 30 or 2/10 net 30.
- Subtotal, tax, freight and discounts, each in its own column.
- Total, amount paid and balance due.
- Currency, where any vendor bills in more than one.
- The file and page each invoice came from.
3. Keep each value as printed
- Invoice numbers as text. Stored as numbers, 004512 becomes 4512, and a long number can turn into 4.51E+11. Both break matching against your payables and the vendor’s statement.
- Dates in one known order. 03/04 is 3 April to one vendor and 4 March to another. Work out each vendor’s order from its other dates, and store real dates, not text.
- Credit memos as negatives. A credit memo entered as a positive amount adds to what you owe instead of taking it off, and the total moves by twice its amount.
- Signs as printed. (125.00) and 125.00- are both negative, and both are easy to lose.
4. One invoice, once
An invoice that runs over two or three pages is one invoice, with one total, usually on the last page. A single PDF can hold several invoices, and an email can carry the same invoice as an attachment and again as a reminder. Statements, quotes, packing slips and payment reminders look like invoices, but they aren’t bills to enter.
Before the rows go anywhere, sort by vendor and invoice number and look for the same pair twice. A duplicate is one of the costliest mistakes in payables, because it can be paid twice. Watch for near-duplicates too: the same amount and date, with the invoice number read slightly differently.
5. Tie each invoice to itself
Each invoice should add up on its own:
- The line amounts add up to the subtotal.
- Each line’s quantity times its unit price equals its amount, allowing for rounding.
- The subtotal, plus tax and freight, less discounts, equals the printed total, to the cent.
- The total, less the amount paid, equals the balance due.
An invoice that doesn’t tie has a line missing, doubled or misread. One that ties isn’t proof on its own: a figure made up to fit, or two misread figures that cancel out, will still tie. That’s why the largest amounts should also be found on the page.
6. Tie the batch to something outside it
Totals inside the file only prove that the file agrees with itself. Tie it to something the vendor or your own books produced:
- The vendor statement. For each vendor, the invoices and credits in the batch against the statement for the same period. An invoice on the statement and not in the batch was missed. One in the batch and not on the statement may be a duplicate, or simply on next month’s statement.
- The payables aging. For invoices already entered, the batch total by vendor against the aging, before and after.
- The count. The number of invoices in the batch against the number received.
7. Trace every row to its file and page
Each row should say which file and page it came from. When a vendor questions a payment or an auditor picks a sample, you go straight to the page instead of searching a folder. It also makes the checks above quicker: an invoice that doesn’t tie points to one page, not to the whole batch.
The basics: what invoice data extraction is
Invoice data extraction is taking the information printed on an invoice and putting it into rows and columns, in Excel or in a file your accounting system can import. It replaces typing each invoice in by hand, which is what invoice data entry usually means.
The invoices can arrive as PDFs, scans, phone photos or emails, and each brings its own problems. A PDF may hold the text or only a picture of the page. A photo can be faint, cut off or taken at an angle.
Software, AI or a service
Extraction software and AI tools read invoices quickly, and they tend to do best with clear PDFs in layouts they’ve seen before. The checks above still need doing, because a misread total or a doubled invoice looks the same as a correct one.
A service does the reading and the checking and hands back the rows, so your time goes into coding, approving and paying. Whichever you choose, ask for the file and page on every row, so the work can be tested.
Rather have AI do it, with its work checked before you see it? Our invoices and receipts service puts your invoices in Excel: a row for each invoice, every line item, and totals by vendor and by month. Every value is tied to its page and checked by our own software. Free for now. For what AI gets wrong, see Ten mistakes AI makes reading invoices and documents when nobody checks.