Power Query Problems

Import and Organize PDF Order Data with Excel Power Query

Huda QurayshiHuda Qurayshi Dec 2, 2026 869 views

Question details

Import order information from a PDF into Excel and organize it into a usable table with Power Query.

Import and Organize PDF Order Data with Excel Power Query
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
A user wants to extract and restructure order data that is scattered or inconsistently formatted in a PDF.
Observed behavior
The desired result is a cleaned Excel table with meaningful headers and order values in the appropriate columns.
Before you start

Check that your Excel version offers the PDF connector under Data > Get Data > From File. If the PDF contains scanned images rather than selectable text, use OCR first and check the recognized text for errors.

Solution 1Recommended

Import and clean PDF tables in Excel Power Query

Use this method when Excel can detect tables or pages in the PDF and the extracted data needs restructuring.

1
Connect to the PDF

In Excel, select Data > Get Data > From File > From PDF, choose the order PDF, and select Import.

2
Preview the data

In the Navigator window, select a detected table or page and review its preview. Select Transform Data to open it in Power Query Editor.

3
Remove unwanted content

Use Home > Remove Rows to remove extra rows, or use a column filter to exclude repeated headers and irrelevant entries. Select unwanted columns and choose Home > Remove Columns.

4
Restructure the columns

Select a column and choose Home > Split Column when values need to be separated. If an order value applies to following rows and their cells are blank, select that column and choose Transform > Fill > Down.

5
Set headers and data types

If the first remaining row contains field names, select Home > Use First Row as Headers. Select each column's data type icon and choose an appropriate type, such as Text, Date, or Decimal Number.

6
Load and verify the table

Select Home > Close & Load to place the results in Excel. Compare the loaded order numbers, quantities, and amounts with the PDF.

Import and clean PDF tables in Excel Power Query
PDF layouts vary: Power Query may detect a page instead of a clean table, so the transformations needed depend on the PDF layout. Review the preview and loaded results for missing or misplaced values.
Free Microsoft Office alternative

Review and organize order spreadsheets with WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with spreadsheets. Open compatible Excel files in WPS Spreadsheet to review and organize order data; it does not fix Excel Power Query or replace its PDF connector.

Review and organize imported order data in WPS SpreadsheetOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface to ease migration from Microsoft OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Where is the PDF import option in Excel?

In supported versions of Excel, select Data > Get Data > From File > From PDF. Availability depends on your Excel version and platform.

Can Power Query extract a table from a scanned PDF?

A scanned PDF may contain images rather than readable text, so the PDF connector may not detect its table. Use OCR to recognize the text first, then check the extracted values before importing.

How do I fill an order number down into blank rows?

In Power Query Editor, select the order number column and choose Transform > Fill > Down. Use this only when the blank rows belong to the order above them.

Can I refresh the imported data when the PDF changes?

If the source PDF remains accessible at the same location, use Data > Refresh All in Excel to rerun the query. Check the results if the PDF layout has changed, because existing transformations may no longer match.

What if Power Query imports repeated page headers as data?

In Power Query Editor, use a column filter to exclude rows containing the repeated header text. Check the preview to make sure the filter does not remove legitimate order rows.