DaddyNote

UK, Irish and EU money and travel rules, worked through step by step, with the date each figure was checked.

AI how-to notes · 2026-09-18 · last run 2026-09-18 · 한국어 원문

Getting a PDF table into Excel without uploading it anywhere — and why a scan fails

One line summary

Moving a table out of a PDF and into Excel does not require an online converter. Work down this list — the 「데이터 가져오기 > PDF에서」 (Get Data > From PDF) command already sitting in Excel, then opening the PDF in Word, then Python (pdfplumber) if neither worked. On our test table all three methods brought the amounts in as text, so Excel's SUM came out 0. On a scan (a PDF that is really just a photo) two of them got nothing at all, and only Word produced a table — with wrong numbers in it.

Who this is for

Test environment

ItemValue
OSWindows 11 Home (10.0.26200)
ShellGit Bash
Excel16.0 (Build 20326.0)
Word16.0 (Build 16.0.20326)
Python3.12.10
Python packagespdfplumber 0.11.10, PyMuPDF 1.28.0, openpyxl 3.1.5
Test fileA table invented for the test. No company material, no real names

The table we tested with

We built a table in Excel and exported it to PDF. The sheet is 23 rows; drop the title row at the top and the table itself is 22 rows — 1 header row, 20 data rows, 1 total row. We deliberately planted the things that cause trouble in real working tables.

We fixed three things to check the result against: 20 data rows / quantity total 251 / amount total 6,093,800.

The source table exported to PDF, department column merged, totals of 251 and 6,093,800 on the bottom row
The source table exported to PDF, department column merged, totals of 251 and 6,093,800 on the bottom row

From that one table we made two PDFs.

FileHow it was madeSizeCharacters extracted
Text PDFExported to PDF from Excel75,194 bytes686
Stand-in for a scanThe PDF above turned into an image and put back into a PDF6,533,732 bytes0

Open the scan version and one A4 page holds a single 1241×1754 px PNG. That works out to 150 dpi. Not one character can be extracted, and the character boxes pdfplumber counts (chars) come to 0. A PDF from a scanner or a phone may well be in this state. Some devices do recognise the text as they scan, though, so check which kind you were sent by opening it and seeing whether text can be selected.

2026-09-28 addition: checked against official help; not run directly in the GUI

The click-through steps below were checked against Microsoft's official help. Windows, Excel and Word were unavailable for this addition. The row counts, totals and timings later in this article remain the automation measurements from 2026-09-18; they are not new results from these GUI steps.

Excel: from choosing the PDF to loading the sheet

  1. Choose Data > Get Data > From File > From PDF. In the file picker, select the PDF on your computer, then choose Import/Open.
  2. In Navigator, click the Table or Page entries and inspect the preview on the right. A table and its containing page may both appear. Start with a Table whose headers, first and last rows, and column count match the original. If none fits, inspect the Page entries. Select only the content you need; choosing both representations can duplicate it.
  3. Choose Load if the preview is ready. To remove a title row or adjust headers and number types first, choose Transform Data, make the changes in Power Query Editor, then choose Home > Close & Load.
  4. Count the data rows, excluding titles, headers and totals. Check the total row's column positions, plus COUNT and SUM on the amount column. Our test's targets are 20 rows / quantity 251 / amount 6,093,800; use your own PDF's targets for another file.

Sources: Microsoft's PDF connector help for selection and Load/Transform, the Excel team's PDF import announcement for tables and pages, and create, load, or edit a query for loading after edits. If the preview has no usable content, check the scan section below before loading an empty result.

Word: open the PDF, select the table, paste into Excel

  1. In Word, use File > Open > Browse to select the PDF. Accept the conversion notice with OK. Word creates an editable copy and leaves the original PDF unchanged.
  2. Check that the table's text is selectable. A page that became one image cannot be copied as cells this way. In Print Layout view, point at the table and click its four-arrow table move handle at the upper left to select the whole table. You can also select just the rows and columns you need.
  3. Press Ctrl+C. In a blank Excel sheet, select the upper-left destination cell, such as A1, and press Ctrl+V. Check that the destination area is empty first because pasting replaces existing values.
  4. Check that the result occupies cells and that the merged total row has not shifted. Extra paragraph breaks inside Word cells can create extra Excel rows. Reconcile row count, numeric types, quantity and amount totals, then save as .xlsx. If amounts are text, apply the repair in the section below and check the totals again.

Sources: Microsoft's Edit a PDF, select and copy a table, copy a Word table into Excel, and PDF conversion limitations. We have not established that clipboard copying gives the same result as reading the table through COM below.

Method 1 — Excel's Get Data > From PDF (start here)

In the Excel ribbon: 데이터 > 데이터 가져오기 > 파일에서(F) > PDF에서(P). On an English install that path reads Data > Get Data > From File > From PDF.

The Excel Data tab with Get Data - From File - From PDF unfolded
The Excel Data tab with Get Data - From File - From PDF unfolded

We confirmed on screen only that the menu is there; for the measurements we ran the Power Query expression this feature uses and counted the result.

let Source = Pdf.Tables(File.Contents("...\P1_원본표.pdf"), [Implementation="1.3"]),
    Tb = Table.SelectRows(Source, each [Kind] = "Table"),
    First = Tb{0}[Data]
in First

What came back was 23 rows × 6 columns. The first row is the placeholder header Column1–Column6, and the original table sits underneath it.

Method 2 — Opening the PDF in Word

Word converts a PDF into an editable document when it opens it. In the PDF we tested, the table came through as a single Word table. We drove Word through automation (COM), read that table, and saved what we read to an Excel file to take the measurements.

The text PDF took 45.7 seconds to open, and Word found 1 table (22 rows × 6 columns).

Original : 합계 |      |      | 251       |     | 6,093,800
Result   : 합계 | 251  |      | 6,093,800 |     |

Give the total row a look after you convert. The 20 data rows are fine; it is only the last line that shifts.

Method 3 — pdfplumber (for the same layout, over and over)

If Python is installed and the same form of PDF arrives every month, this is the comfortable route. For a one-off, start with method 1.

pip install pdfplumber openpyxl
import pdfplumber, openpyxl

with pdfplumber.open(r"C:\path\myfile.pdf") as pdf:
    table = pdf.pages[0].extract_table()

wb = openpyxl.Workbook()
ws = wb.active
for row in table:
    ws.append(["" if v is None else v for v in row])
wb.save(r"C:\path\result.xlsx")

From the text PDF it took 22 rows × 6 columns straight across, and not one of the 132 cells differed. Of the three methods it stayed closest to the original (pdfplumber 0 cells, Excel 2, Word 3). It kept the total row in its proper columns, too.

["합계", null, null, "251", "", "6,093,800"]

Merged department cells arrive as null (blank). 16 of the 20 data rows had an empty department. That matches what you see on screen, so it isn't wrong, but if you plan to sort or pivot you will need to fill each blank with the value above it.

The trap all three share — amounts arrive as text

We opened the three converted files and checked the data type of the amount column.

MethodFirst amount cellTypeNumeric cells out of 20Result of Excel SUM
Excel From PDF258,000text00
Opened in Word258,000text00
pdfplumber258,000text00

The 258,000 inside a PDF is a run of characters with a comma in it. In this test all three methods handed it over as text, exactly as it was. Total it and you get 0, and because it looks like a number on screen it is easy to miss. COUNTA, which counts non-empty cells, returns 20, while COUNT, which counts numeric cells, returns 0.

The converted result. SUM on the amount column is 0; SUM on the column with commas stripped is 6,093,800
The converted result. SUM on the amount column is 0; SUM on the column with commas stripped is 6,093,800

The fix is simple.

  1. Select the quantity, unit price and amount columns
  2. Press Ctrl+H and replace , with nothing

Those two steps were the whole repair in our measurements. The moment the commas went, Excel took the values as numbers on its own.

Before        : F2 = '258,000' (text)   SUM(F2:F21) = 0        COUNT = 0   COUNTA = 20
Commas gone   : F2 = 258000 (number)    SUM(F2:F21) = 6093800
Then Text to Columns over F2:F22 : SUM(F2:F21) = 6093800, COUNT = 20, SUM(D2:D21) = 251

If a green triangle stays in the corner and a cell keeps behaving as text after the commas are gone, select that column and press Finish right away in 데이터 > 텍스트 나누기 (Data > Text to Columns; 「마침」 is the Finish button). We then had automation do the same thing (Range.TextToColumns) and confirmed 20 numeric cells and the quantity total of 251.

What happens with a scanned PDF

This is where the three methods part company.

pdfplumber — finds 0 tables. 0 characters on the page, 0 character boxes, 1 image. With nothing to move, it wrote no Excel file either.

Excel's From PDF — the query registers, then stops on refresh.

[Expression.Error] 열거형에 요소가 너무 적어 작업을 완료할 수 없습니다.

That reads "there weren't enough elements in the enumeration to complete the operation". Our expression takes the first of the results classified as a table (Tb{0}[Data]), so it appears to mean there was nothing to take. We did not print the intermediate results to check.

Word — this is the dangerous one. Word opens the file in 1.7 seconds and produces a table (22 rows × 6 columns). Text came out of a PDF with no text layer in it. The numbers, though, are wrong.

ItemOriginalWhat Word read
Data rows that still have a row number2017
Quantity total251190
Amount total6,093,8005,122,000
Cells differing from the original—14 of 132
Word's reading of the scan. 14 cells marked red differ from the original
Word's reading of the scan. 14 cells marked red differ from the original

Here are the 14 wrong cells exactly as they came out.

row  1 col 3: '품목'          -> ''
row  2 col 1: '1'             -> ''
row  2 col 2: '총무팀'        -> '종무팀'
row  7 col 2: '영업팀'        -> '영업 팀'
row  9 col 4: '11'            -> ''
row 11 col 4: '18'            -> ''
row 12 col 1: '11'            -> ''
row 15 col 1: '14'            -> ''
row 16 col 4: '10'            -> ''
row 18 col 3: '청소용 물티슈' -> '정소용 물티슈'
row 20 col 3: '커피 원두 1kg' -> '커피 원두 Ikg'
row 22 col 2: ''              -> '251'
row 22 col 4: '251'           -> '6,093.800'
row 22 col 6: '6093800'       -> ''

Six number cells in the body were emptied outright (seven if you count the amount in the total row), and the total amount had its comma turned into a period, giving 6,093.800. In the Korean text, 총무팀 (general affairs) was read as 종무팀, 청소용 (cleaning) as 정소용, and the digit 1 as the letter I.

A table being produced and the numbers being right are two different things. If you have converted a scan, check the row count and the totals against the original without exception.

A scan needs text recognition (OCR)

The results above are the reason. This scanned PDF holds not one character, just a single photograph. To move the table you first have to go through the step of looking at the shapes in that photo and guessing the characters — text recognition, OCR.

Word produced a table with text in it in 1.7 seconds. What recognition happened inside it we did not check. But as the result shows, this kind of work is guessing. The same Word missed only 3 of 132 cells on the text PDF and 14 on the scan, and got the amount total wrong by more than 15%.

If you have to deal with a scan, this order is the safer one.

  1. Ask whoever sent it for a PDF with text in it, or the Excel file
  2. If that fails, run OCR — then reconcile the row count and the totals against the original
  3. If money is in the table, put the time for a line-by-line visual check into the schedule

Results — what to use when

SituationMethodWhy
PDF with text, a one-off jobExcel 데이터 > 데이터 가져오기 > 파일에서 > PDF에서 (Data > Get Data > From File > From PDF)Excel is all you need, and only 2 of 132 cells came out different (the total row)
PDF with text, and the body needs editing too, not just the tableOpen the PDF in Word, then move the table to ExcelIt becomes a document you can work on. The columns do shift on the merged total row
Several PDFs in the same layout every monthpdfplumberAll 132 cells matched. It holds column positions, which suits repeat processing
Amount and quantity columns, whichever methodAfter converting, strip the commas with Ctrl+H (Text to Columns if that fails)In this test all three methods delivered the numbers as text. Leave it and SUM is 0
Tables with departments or items merged verticallyAfter converting, fill the blanks with the value aboveA merged cell puts text only in the first row and leaves the rest empty (16 rows out of 20)
Scans and photo PDFsAsk for the file again first; failing that, OCR plus a full checkpdfplumber found 0 tables, Excel errored, and Word's total came to 5,122,000 instead of 6,093,800
Company materialAll three are procedures for opening a file on your own PCThere is no step that uploads anything to a conversion site

What failed

What we did not test

Related notes