How to Extract Tables From a PDF

Illustration of a table being lifted out of a PDF page into a spreadsheet grid

A table in a PDF looks perfectly tidy. Then you copy it into a spreadsheet and get a long jumble of numbers squashed onto one line. How cleanly you can get a table out depends on two things: how the PDF was made, and which method you use.

There are three realistic options. Here's when each one makes sense.

Before anything else: can you select the numbers?

All three methods need a PDF with real text in it. Click on a single number in your PDF reader. If you can select just that number, you're fine; statements, invoices and reports exported from software almost always work like that.

If clicking selects the whole page as a picture, it's a scan. Then the table first has to be turned into text with OCR software, because none of the methods below can read text out of an image.

Option 1: Copy and paste

This is fine for one small table you need once.

Select the table in your PDF reader, copy it, and paste it into Excel or Google Sheets. If everything lands in a single column, split it: in Excel use Data › Text to Columns, in Google Sheets Data › Split text to columns.

No extra tools, which is nice. The catch is that the cell boundaries often get lost, numbers may paste as text that won't add up, and a table that runs over five pages means doing it five times.

Option 2: Excel's own PDF import

If you have Microsoft 365 on Windows and you get the same report every month, this one is handy.

Go to Data › Get Data › From File › From PDF. Excel shows you the tables it found; pick one and load it, tidying it up in Power Query first if you want. The real advantage is repeatability: when next month's PDF arrives, you just refresh.

On the downside, it isn't in every version of Excel or on every platform, and tables without lines sometimes come in as one wide column.

Option 3: A PDF to Excel converter

For whole documents, tables spread over several pages, bank statements, or if you don't have a recent Excel, a converter is usually the quickest route.

Upload the PDF to the PDF to Excel converter and download the spreadsheet. Each page becomes its own worksheet, so you just delete the sheets and rows you don't need. It works in any browser. Tables with lines are copied cell by cell, merged cells included, and columns without lines (the usual bank statement layout) are separated by how the text lines up. Numbers become real numbers, with currency signs, thousands separators, percentages and amounts in brackets all understood.

The trade-off: any text outside the tables comes along too, and an unusual layout can put the odd value in the wrong column, so give the result a quick look. There's a full walkthrough in how to convert PDF to Excel online.

Which one should you use?

Your situation Use this
One small table, once Copy and paste
Same monthly report, Microsoft 365 on Windows Excel's PDF import
A statement, or several tables over many pages PDF to Excel converter
A table without lines, columns just lined up PDF to Excel converter
A scanned PDF OCR software first, since none of these can read images

Cleaning up afterward

Whichever route you took, a few minutes of checking now saves headaches later.

Compare the totals with the ones printed in the PDF. That's the quickest way to know the numbers are right. Then delete the header rows that repeat at the top of every page.

Dates usually arrive as text. Excel's Text to Columns lets you tell it what format each date column is in, and then it converts them properly.

Watch out for descriptions that wrapped onto two lines in the PDF. They can turn into two rows; join them where needed.

And keep leading zeros. A product code like 00451 should stay text. The converter already keeps it as text; if you're pasting, format the column as text before you paste.

A few quick answers

Can I pull out just one table from a long PDF?

With the converter you get every page on its own sheet, so keep the one with your table. With Excel's import, you pick the table before loading.

Why won't my pasted numbers add up?

They were pasted as text, which happens a lot with currency signs and thousands separators. A converter that understands number formats avoids it. Otherwise, Data › Text to Columns converts them.

Can I get the formulas out?

No. A PDF only contains the calculated results, so you get values, and you add formulas again yourself.

The short answer

Copy and paste for a quick, small table. Excel's import for the same report every month. A converter for statements, long tables and tables without lines. And whichever you use, check the totals before you trust the numbers.

← All articles