PDF tasks · Data
Pull a table out of a PDF into an Excel spreadsheet
The numbers you need are sitting in a PDF table, and retyping them is slow and error-prone. If the PDF was made from a spreadsheet or a report writer, Excel can usually pull the table straight in. Start with Excel's own import, use Acrobat's export if you have it, and keep copy and paste as the fallback for small tables. Whichever route you take, leave a few minutes to clean the result — no converter gets every header and number right.
What you need
- The PDF, and a sense of whether it is real text. Open it and try to select a single number in the table. If you can highlight digits, the PDF holds text and the routes below have something to work with. If the whole page selects as one picture, it is a scan — see the note on scanned PDFs under When it goes wrong.
- Excel on Windows for Route 1. The From PDF import described by Microsoft in Import data from data sources (Power Query) is a Windows Excel feature in recent versions, including Microsoft 365. If you do not see From PDF in your copy, use Route 2 or 3 rather than hunting through menus.
- A blank workbook to land in. Import into a new workbook first. Once the table is clean you can copy it into the workbook where it belongs, instead of untangling a messy import among formulas you care about.
You have Excel for Windows and a text-based PDF: Route 1. You have Acrobat and want the whole document converted at once: Route 2. The table is small, or the other routes are not available: Route 3.
Route 1: Excel Get Data From PDF
This is the route to try first because it costs nothing extra and the file never leaves your machine. Excel uses Power Query to read the PDF, lists the tables it finds, and loads the one you pick onto a sheet. It also keeps a connection to the PDF, so a refreshed version of the same report can be re-read later.
- Start the import. In a blank workbook, go to Data > Get Data > From File > From PDF. Select your PDF and choose Open.
- Pick the table in the Navigator. Excel shows what it found: tables it recognized, and pages you can bring in whole. Click each candidate and look at the preview on the right. Pick the table that matches the one in the PDF — names are generic, so judge by the preview, not the label.
- Load it, or clean it first. Select Load to put the table straight onto a new sheet. If the preview already shows a stray title row or split headers, select Transform Data instead, tidy the table in the Power Query Editor, then choose Close & Load.
- Check the result against the PDF. Compare the first, middle and last rows, and one column total if the PDF prints one. Imports fail quietly at page breaks, so the rows where one PDF page ends and the next begins deserve a close look.
Route 2: Acrobat Export PDF to Excel
If you already have Adobe Acrobat, its export is a solid second route, especially when you want every table in the document, not just one. Adobe documents the current flow in Convert PDFs to Excel and XML formats in Acrobat. Note that the free Acrobat Reader on its own does not include this export — it is a feature of the paid Acrobat app.
- Open the PDF in Acrobat. Open the file in Acrobat, not in a browser tab or a preview pane, so the full tools are available.
- Start the conversion. Select Convert from the bar at the top, choose Microsoft Excel, then XLSX, and select Convert to XLSX. In older layouts the same job lives under an Export PDF tool: choose Spreadsheet, then Microsoft Excel Workbook, then Export.
- Save the workbook. Choose a folder and name, and save. Acrobat writes a new .xlsx file; your PDF is unchanged.
- Open it and sort out the sheets. Acrobat may place tables on more than one sheet, or split one long table across sheets. Gather the rows you need onto one sheet before you start cleaning, and delete the spare sheets only once you are sure nothing is missing.
Route 3: copy, paste and Text to Columns
For a short table this old route is still the fastest, and it works with nothing more than a PDF reader and Excel. It is also the messiest, so treat it as a way to get the text into Excel, with the split and tidy-up still to come.
- Copy the table. In your PDF reader, select the table rows — or the whole page if selecting just the table is fiddly — and copy with Ctrl+C.
- Paste into a blank sheet. Paste into cell A1 of a new sheet. Sometimes you get lucky and the columns land separately. More often each row arrives as one long line of text in a single column.
- Split the lines into columns. Select the pasted column, then go to Data > Text to Columns. Choose Delimited, then tick the separator your lines actually use — commonly Tab or Space — and watch the preview before you select Finish. Microsoft walks through the wizard in Split text into different columns with the Convert Text to Columns Wizard. Work on a copy of the pasted column, because the split overwrites the cells to the right.
Clean up the imported table
- Fix merged and multi-row headers. PDF tables often stack two header rows or merge cells across columns. Converters guess, and the guess is often a blank cell, a header repeated as data, or two headings jammed into one cell. Retype a single clear header row, delete title and blank rows above it, and only then format the range as a table or start filtering.
- Watch for numbers stored as text. Imported figures may look like numbers but refuse to add up. Clues are values aligned left, a total that ignores them, or a small warning marker on the cell. Select the column, and if Excel offers to convert to number, accept it — or retype the worst column by hand on a small table. Check currency symbols, spaces inside numbers and trailing minus signs, which are common reasons a value stays text.
- Check dates and totals last. Dates can arrive in the PDF's display order rather than as real dates. Sort or filter the date column once: real dates sort cleanly, text dates often do not. Finish by comparing a printed total from the PDF against a quick SUM of your column.
End state
- One Excel sheet holds the table, one row per record, with a single clear header row.
- Numbers behave as numbers: a test total in Excel matches the total printed in the PDF.
- First, middle, last and page-break rows have been compared against the PDF and match.
- The original PDF is unchanged and kept alongside the workbook.
When it goes wrong
- From PDF is missing from Get Data. Your version of Excel likely does not include the connector — it is not in every edition or platform. Do not install add-ins at random to chase it; use the Acrobat export or the copy-and-paste route instead.
- The Navigator shows pages, not tables. Excel could not see a clean grid. Bring in the page, then clean it on the sheet, or switch to Route 2 — Acrobat sometimes reads a borderless table that Power Query passes over.
- Nothing imports sensibly at all. The PDF is probably a scan: a picture of a table, not text. None of these routes can read a picture reliably. Run the PDF through OCR first — Acrobat and most scanner software offer a recognize-text step — save the recognized version, and then import from that file. Expect to proofread OCR output closely, especially digits.
- Rows repeat at every page break. The PDF prints its header row at the top of each page, and the import faithfully brought every copy. Filter the table, find the repeated header rows in the data, and delete them.
- The PDF is password-protected. If it is yours, open it with the password and save an unprotected copy for the import. If an organization sent it protected, ask them for the figures as a spreadsheet rather than working around their protection.
Related document tasks
-
Convert an Excel spreadsheet to a PDF that fits the page
Export a wide spreadsheet straight to PDF and you usually get four pages: two columns on the first, the rest stranded on the others, and no headings on any page but the first.
-
Create a Google Docs document from a table pasted out of a PDF
Create a Google Docs document from a table pasted out of a PDF: try the direct paste, clean up what lands in one column, rebuild the table properly with Insert Table, or open the PDF with Google Docs when the table is large.
-
Add a table to a PDF form as fillable rows in Acrobat
Add a table to a PDF form as fillable rows in Acrobat: draw the grid, put one uniquely named text field in each cell, multiply the first row with Create Multiple Copies, align the columns, and add a totals field that calculates.
-
Fix words split across lines with stray hyphens after copying from a PDF
You paste three pages out of a PDF and every second line ends mid-word — “informa-” on one line, “tion” on the next — because the PDF stored the printed hyphenation, not the words.
Sources
- Microsoft Support, Import data from data sources (Power Query) — the Data > Get Data > From File > From PDF steps, the Navigator, and Load versus Transform Data.
- Adobe, Convert PDFs to Excel and XML formats in Acrobat — the Convert to XLSX flow and workbook settings in Acrobat.
- Microsoft Support, Split text into different columns with the Convert Text to Columns Wizard — splitting pasted text by delimiter into separate columns.