Power Query: import a PDF bank statement into Excel
The From PDF route step by step, which Excel versions have it, a fix for each common breakage, and how to check the result against the closing balance.
To import a PDF bank statement into Excel with Power Query, choose Data > Get Data > From File > From PDF, pick the transaction table in the Navigator and select Transform Data. It works on text-based PDFs in Excel for Microsoft 365 on Windows. It won't read scans, and bank layouts usually need the fixes below.
Which Excel versions have From PDF in Power Query?
From Microsoft's version table, checked in November 2026:
| Excel | From PDF |
|---|---|
| Microsoft 365 on Windows | Yes. It needs .NET Framework 4.5 or later. |
| Office 2016 or 2019 on Windows | Not ticked in the table |
| Excel 2021 or 2024 on Windows | Not stated: the table has no column for them, so look under Get Data > From File |
| Microsoft 365 on Mac | Not listed among the Mac data sources |
| Excel for the web | Only for files in SharePoint or OneDrive for work or school |
| Android and iOS | No: Power Query isn't supported |
Import a PDF bank statement with Power Query: the From PDF route
- Select Data > Get Data > From File > From PDF, choose the statement and select Open.
- In the Navigator, click through the entries until you find the transactions. Select Transform Data rather than Load.
- If the headers are sitting in the first row, select Use First Row as Headers on the Home tab.
- Filter out repeated headers and any brought-forward lines.
- Set the types: right-click a column, then Change Type > Using Locale, with date and decimal formats that match the statement.
- Select Close & Load.
Similar tables on consecutive pages are combined automatically by default. That's the MultiPageTables option, and it won't always catch everything on a real statement.
What breaks on bank statements, and the fix
| Breakage | What you see | Fix |
|---|---|---|
| Multi-line descriptions | Extra rows holding only text | Mark where each transaction starts, fill down, then group and join the text, as Microsoft suggests |
| Debit and credit in separate columns | Two amount columns full of blanks | Money in minus money out, treating blanks as 0. In M, any sum with a null gives null |
| Page headers | "Date" rows and "carried forward" lines mid-table | Filter them out by text |
| Year missing from dates | "15 Jan" | Add the year from the statement, and step back a year if the result falls after the statement ends |
| Date printed once per day | Blank dates on later rows | Fill down, which only fills nulls, so turn empty text into null first |
| Summary boxes | Tables that aren't transactions | Keep only tables with the right column count |
In the Advanced Editor, this query does all of that. The headers here are fictional, so rename them to match your statement. It assumes five columns and an amount on the first line of each wrapped description.
let
StatementEnd = #date(2026, 1, 31),
Source = Pdf.Tables(File.Contents("C:\Statements\2026-01.pdf")),
Tables = Table.SelectRows(Source, each [Kind] = "Table" and Table.ColumnCount([Data]) = 5),
Rows = Table.PromoteHeaders(Table.Combine(Tables[Data]), [PromoteAllScalars = true]),
Clean = Table.SelectRows(Rows, each [Date] <> "Date"
and not Text.Contains(Text.Upper([Description] ?? ""), "BROUGHT FORWARD")
and not Text.Contains(Text.Upper([Description] ?? ""), "CARRIED FORWARD")),
Nulls = Table.ReplaceValue(Clean, "", null, Replacer.ReplaceValue,
{"Date", "Description", "Money Out", "Money In", "Balance"}),
Numbered = Table.AddIndexColumn(Nulls, "Row", 0, 1),
Keyed = Table.AddColumn(Numbered, "Txn", each
if [Money Out] <> null or [Money In] <> null then [Row] else null),
Filled = Table.SelectRows(Table.FillDown(Keyed, {"Date", "Txn"}), each [Txn] <> null),
Merged = Table.Group(Filled, {"Txn"}, {
{"Date", each List.First([Date])},
{"Description", each Text.Combine(List.RemoveNulls([Description]), " ")},
{"Money Out", each List.First([Money Out])},
{"Money In", each List.First([Money In])},
{"Balance", each List.First([Balance])}}),
Typed = Table.TransformColumnTypes(Merged,
{{"Money Out", type number}, {"Money In", type number}, {"Balance", type number}}, "en-GB"),
Signed = Table.AddColumn(Typed, "Amount", each ([Money In] ?? 0) - ([Money Out] ?? 0), type number),
Dated = Table.AddColumn(Signed, "Posted", each
let d = Date.FromText([Date] & " " & Text.From(Date.Year(StatementEnd)),
[Format = "d MMM yyyy", Culture = "en-GB"])
in if d > StatementEnd then Date.AddYears(d, -1) else d, type date)
in
Table.SelectColumns(Dated, {"Posted", "Description", "Amount", "Balance"})
If your bank prints the amount on the last line of a wrapped description, fill Txn upward instead and take List.Last. If a page's table has a different column count, this drops it, which the closing-balance check below will expose. If your dates already include a year, replace the Dated step with a plain date conversion.
Combining several PDFs from a folder
Microsoft says to use the Folder connector for multiple PDFs.
- Put one account's statements in a folder, all from the same layout.
- Select Data > Get Data > From File > From Folder and pick the folder.
- Select Transform Data, filter Extension to
.pdf, then use Combine on the Content column. - Put your cleaning steps in the Transform Sample file query, which applies them to every file.
Every file is processed according to the example file you chose, so a table that holds transactions in January may not hold them in a month with a longer summary page. StatementEnd also changes per file, so name files by period and work it out from the file name. Then check each statement separately. The combining guide covers overlaps and missing months.
Check the result against the closing balance
Load the query to a sheet with Posted, Description, Amount and Balance in columns A to D. Put the statement's printed opening balance in G1 and closing balance in G2, then:
=ROUND(G1+SUM(C2:C500)-G2,2)
Anything other than 0 usually means a row is missing, repeated, misread or has the wrong sign. On a fictional statement, 1,000.00 + 2,500.00 - 400.00 - 50.00 = 3,050.00, so the result is 0. To find the row, put =ROUND(D2+C3-D3,2) in E3 and fill down. The first non-zero result is where to look.
A zero proves the amounts. It doesn't prove dates or descriptions, so read the rows around each month end against the PDF. Recheck after every refresh too, because a new month's layout can break silently.
Scanned PDFs: Power Query has no OCR
The Pdf.Tables options cover page ranges, multi-page tables and border lines, with nothing for OCR. A Microsoft employee answered in 2020 that the connector "doesn't support importing data from embedded images". If you can't highlight the text in the PDF, it's a scan, so ask the bank for a digital copy or run OCR first. The general PDF to Excel guide compares the other routes.
Stuck with a scan, a Mac or a layout that won't reconcile? Convert one statement free, up to 10 pages with no account. NoRekey reads scans through OCR, and the Excel export is checked against the opening and closing balances, with rows that don't reconcile flagged. Dates still need your eye.
Frequently asked questions
Can Power Query read a PDF bank statement?
Yes, if the PDF contains real text and your Excel has the PDF connector, which Microsoft's table shows for Microsoft 365 on Windows. Use Data, Get Data, From File, From PDF. Expect to tidy wrapped descriptions, separate debit and credit columns and repeated headers before the figures agree with the closing balance.
Why is From PDF missing from Get Data in Excel?
Your version probably doesn't include it. Microsoft's table ticks the PDF connector for Microsoft 365 on Windows, not for Office 2016 or 2019, and it isn't among the Mac data sources. It also needs .NET Framework 4.5 or later. On the web, it only reaches files in SharePoint or work OneDrive.
Does Power Query work with scanned bank statements?
No. Power Query's PDF connector has no OCR option, and a Microsoft employee has confirmed it doesn't import data from embedded images. If you can't highlight the text in your PDF, it's a scan. Get a digital copy from the bank, or run the file through OCR before you import it.
How do I fix multi-line descriptions in Power Query?
Add a column that marks each row with an amount as a new transaction, fill it down over the text-only rows, then group by it and join the descriptions with Text.Combine. Microsoft suggests Table.FillDown and Table.Group for this. Afterwards, check the total against the closing balance to confirm no row was lost.
Statements in, clean books out.
NoRekey converts bank statement PDFs to CSV, Excel, OFX and QFX — every conversion balance-checked. Free to try.
Convert a statement free →How to convert a bank statement PDF to Excel
Choose a bank export, PDF table importer or statement converter, then test dates, signs and balances using a downloadable fictional statement and expected CSV.
How to combine multiple bank statements into one Excel file
Merge monthly statement PDFs into one spreadsheet, retain the source of every row, and check accounts, currencies and overlaps before importing.
Why scanned bank statements go wrong, and how to prove the numbers anyway
OCR reads a 1 as a 7, drops a decimal point, and loses the minus sign on a refund — and none of it looks wrong on screen. The specific ways scanned statements fail, why "99% accurate" is the wrong measure, and the arithmetic check that helps reveal them — plus the errors a matching total can still miss.