How to Extract Data From PDF to Excel (Invoices & Tables)

Extract data from many PDFs into one Excel sheet: combine a folder of PDF tables with Power Query, or pull invoice numbers, dates and totals with Claude or ChatGPT.
The template
Copy prompt
Open every PDF invoice in [folder]. For each one, add a row to [Invoices.xlsx] with invoice number, invoice date, supplier, currency, subtotal, tax and total. Skip files already in the sheet. If a field is missing or unreadable, leave it blank and list the file for me.
Advanced computer use agent
Production-grade reliability
Transparent Execution

Why extract data from PDFs

One PDF is a conversion; fifty is data entry. Accounts payable, expense reports and supplier statements all mean typing the same five fields from every document into a spreadsheet. Excel can pull tables out of a folder of PDFs, and AI assistants can read fields that aren't in a table.

Quick answer: For tables, put the PDFs in one folder and in Excel for Windows select Data > Get Data > From File > From Folder > Transform Data, filter to .pdf files, then Home > Combine Files and pick the table to use. Power Query stacks the same table from every PDF into one sheet. For fields like invoice number, date and total, upload the PDFs to Claude or ChatGPT and ask for one row per invoice, then check totals.

Let Sai handle your repetitive work

Delegate to Sai

How to Extract Data From PDF to Excel (Invoices & Tables)

Which way should you use?

What you needMethodBest forLimits
One table from one PDFGet Data From PDFA single report or statementOne file at a time
The same table from many PDFsPower Query From Folder + Combine FilesMonthly statements with one layoutLayouts must match
Fields such as invoice number, date, totalClaude or ChatGPT file uploadMixed suppliers and layoutsUpload limits per chat; check every total
A table in a scan or photoExcel Data from PicturePaper documentsOne image at a time
Invoices that keep arrivingAI computer agent (Sai)Weekly or monthly runs from email or a portalReview new layouts
From an invoice PDF to one spreadsheet row: invoice number, date, supplier, subtotal, tax and total

Method 1: Combine the same table from a folder of PDFs

  1. Put the PDFs in one folder with nothing else in it.
  2. In Excel for Windows, select Data > Get Data > From File > From Folder and choose the folder.
  3. Select Transform Data. In the Power Query Editor, filter the Extension column to .pdf.
  4. Select the Content column, then Home > Combine Files.
  5. In Combine Files, pick a sample file and the table to extract, then select OK.
  6. Select Home > Close & Load.

Microsoft's PDF connector documentation recommends the Folder connector for importing many PDFs at once.

Method 2: Extract fields with Claude or ChatGPT

  1. Upload the PDFs to a chat. ChatGPT allows up to 10 files per conversation; Claude accepts files up to 30 MB each.
  2. Ask: "Make one row per invoice with invoice number, date, supplier, subtotal, tax and total, and give me an Excel file."
  3. Open the file and check row counts and a few totals against the PDFs.

Claude's help uses "Extract all the data from this PDF into an Excel spreadsheet" as an example; ChatGPT's data analysis accepts PDF uploads.

Method 3: Copy fields by hand with a template sheet

For a handful of invoices, set up a sheet with one column per field and data validation for dates and amounts, then type or paste each invoice's values into one row.

Hand recurring invoices to an AI computer agent

Sai is an AI computer agent that works in the apps on your computer, like a person, and asks before critical steps.

Accounts payable scenario: weekly invoices. Every Friday Sai saves invoice PDFs from the AP inbox into the week's folder, adds one row per invoice to the tracker, and flags any invoice whose total doesn't equal subtotal plus tax.

Freelancer scenario: expense receipts. Sai downloads receipts from three supplier portals at month end and fills the expense sheet your accountant uses.

Pros: the same fields, checked the same way, every week. Cons: supplier portals with sign-in or 2FA need you to log in once; review new supplier layouts.

What are the limits?

  • Power Query returns the tables it finds; values printed outside a table, such as an invoice number in the header, may not come through.
  • Different layouts in one folder produce mixed columns; group PDFs by layout.
  • AI extraction can misread numbers; compare totals before you pay or file anything.

Sources: Microsoft Learn – Power Query PDF connector; Microsoft – Import data from a folder with multiple files; Claude – Create and edit files; OpenAI – Data analysis with ChatGPT. Steps checked on December 3, 2026.

Scale invoice entry with Sai

List the fields
Name the columns you need: invoice number, date, supplier, subtotal, tax, total.
Test on a week of invoices
Check every total against the PDFs on the first run.
Run it every Friday
Schedule it for the AP inbox or folder each week.

Stop doing repetitive tasks. Let Sai handle them for you.

Sai is your AI computer use agent — it operates your apps, automates your workflows, and gets work done while you focus on what matters.

Try Sai

FAQS