How to Fix Power Query Errors When Converting PDF to Excel
Question details
The user is experiencing data loss and structural issues when using Power Query to import multi-page PDF documents into Excel spreadsheets.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Importing hundreds of PDF pages with complex visual layouts into Excel for data consolidation and analysis.
- Observed behavior
- The imported tables contain missing names and financial amounts, inconsistent column alignments, and records that are improperly split across multiple rows.
Before transforming your data, ensure you have the latest version of Excel installed, as Microsoft frequently updates Power Query's PDF extraction engine. Keep the original PDF open as a visual reference while cleaning your data.
Apply Manual Data Transformations in Power Query Editor
Use Power Query's built-in transformation tools to clean up complex PDF layouts by removing repetitive headers, filling down missing values, and merging split columns.
PDF files are designed for printing and visual layout, not for structured data storage. Because of this, Power Query often misinterprets invisible margins and page breaks as new columns or blank rows. You must manually instruct Power Query on how to clean these artifacts.
Open the Power Query Editor and check the 'Applied Steps' pane on the right. Review the 'Navigation' step to ensure you selected 'Table' elements rather than 'Page' elements, as Tables generally have better structural recognition.
To remove repetitive PDF page headers or footers, click the drop-down filter arrow on the primary column and uncheck the text values that correspond to the unwanted header/footer text.
For missing names or amounts caused by vertically merged cells in the PDF, select the affected column, go to the 'Transform' tab on the ribbon, click 'Fill', and select 'Down'.
If records are split across multiple columns due to varying page widths, select the columns while holding the 'Ctrl' key, right-click the header, and choose 'Merge Columns'. Select an appropriate separator (like a space or comma) if needed.
Before loading the data into Excel, click the data type icon on the left side of each column header and select the appropriate format (e.g., Text, Whole Number, Currency) to prevent calculation errors.

Convert Complex PDFs to Excel Effortlessly with WPS Office
Skip complex Power Query data cleaning by using the dedicated PDF to Excel converter in WPS Office. It accurately recognizes tables and complex page layouts, minimizing split records and missing data straight out of the box.
- 1. Open PDF in WPS Office: Launch WPS Office and open the multi-page PDF file containing your tabular data.
- 2. Select PDF to Excel: Navigate to the 'Tools' tab on the top ribbon and click on the 'PDF to Excel' button.
- 3. Adjust Conversion Settings: In the prompt, choose the specific pages you want to convert and verify that the output format is set to an Excel spreadsheet (.xlsx).
- 4. Convert and Edit: Click 'Convert'. The newly converted file will automatically open in WPS Spreadsheet, with your tables neatly formatted and ready for immediate analysis.

Frequently Asked Questions
Why does Power Query split my PDF tables into multiple columns?
PDFs are visual documents. If a PDF has invisible borders, misaligned text, or varying column widths across different pages, Power Query interprets these visual inconsistencies as new columns. You can resolve this by using the 'Merge Columns' feature in the Power Query Editor.
How can I prevent missing data when importing PDFs to Excel?
Missing data often occurs when a PDF spans multiple pages with repetitive headers, or when cells are merged. Ensure you are importing the 'Table' elements rather than 'Page' elements in the Power Query Navigator, and utilize the 'Fill Down' tool under the Transform tab to populate empty rows.
Can I automate the removal of PDF headers across hundreds of pages?
Yes. You can filter out header rows in the Power Query Editor by unchecking the specific header text from the column's filter dropdown. This creates an Applied Step that will automatically filter out those headers across all imported pages from that PDF.
Does WPS Office offer a better way to convert PDFs to Excel?
WPS Office includes a specialized, built-in PDF to Excel conversion tool designed to accurately detect tables and maintain formatting natively. This often requires significantly less manual cleanup and data transformation compared to a standard Power Query import.




