For a PDF made on a computer, Excel can import its tables directly, without copy and paste: Data, Get Data, From File, From PDF. The import finds the tables, loads them as cells you can sort and sum, and keeps a refreshable query behind them.
What you need
- Excel for Microsoft 365 on Windows
- A digital PDF with a real table, not a scan
- A note of which table and page you need
Step 1: Open the PDF through Get Data
In Excel, go to Data, Get Data, From File, From PDF, pick the file and click Import. The Navigator pane lists the tables and pages Excel found; select the table you need and preview it on the right.
Step 2: Load the table, or transform it first
Click Load to bring the table into a sheet, or click Transform Data to open it in Power Query first, where you can promote headers, set types and remove banner rows before loading.
Step 3: Check the imported rows against the PDF
Count the imported rows against the PDF table, then check that numbers arrived as numbers and dates as dates. Sum one column and compare it with the total printed in the PDF.
Worked example: synthetic PDF with three tables
The table below is a synthetic example. It shows the expected result of importing a PDF table; no PDF was opened and no import was run.
| Check | Count | Result |
|---|---|---|
| Tables found in the PDF | 3 | Table 2 is the one needed |
| Rows loaded from table 2 | 24 | Matches the PDF |
| Amounts loaded as numbers | 23 | Pass |
| Amounts loaded as text | 1 | Convert with VALUE |
Expected result (UNTESTED). table 2 loads with all 24 rows, 23 amounts arrive as numbers and 1 arrives as text and needs converting before it can be summed. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Scanned PDFs have no text to import; use OCR or Data from Picture first.
- Tables that continue across pages are joined into one by default, so check the join point.
- The import is a query, so replacing the PDF at the same path and choosing Refresh All reloads it.
