How to Import PDF Tables into Excel Without Losing Blank Rows
Question details
The user wants to import a single-column PDF table into Excel while preserving empty rows to prevent subsequent data from shifting upward.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Importing table data from a PDF document into an Excel spreadsheet without altering the original row structure.
- Observed behavior
- Standard PDF import methods automatically remove empty rows, causing the remaining data to shift upward and lose its original alignment.
Ensure you are using a version of Excel that supports Power Query (Excel 2016 or newer) and have the source PDF document saved locally on your computer.
Use Power Query to Import and Transform PDF Data
Power Query gives you precise control over how PDF data is parsed, allowing you to intercept and preserve blank rows before they are dropped by Excel.
When Excel imports data directly, it tries to clean up the dataset by discarding empty rows. By routing the import through Power Query, you can replace 'null' values with a placeholder, securing the structure of your single-column table.
Open Excel, navigate to the 'Data' tab on the ribbon, click 'Get Data', select 'From File', and then choose 'From PDF'. Locate your file and click 'Import'.
In the Navigator window, select the specific table or page that contains your data. Instead of clicking 'Load', click 'Transform Data' to open the Power Query Editor.
In the Power Query Editor, locate the column where blank rows are missing. Blank rows typically appear as 'null'. Right-click the column header and select 'Replace Values'.
In the 'Value To Find' box, type 'null' (without quotes). In the 'Replace With' box, type a space or a distinct placeholder like '[BLANK]'. Click 'OK'.
Once the transformations are applied and the empty rows are secured, go to the 'Home' tab in Power Query and click 'Close & Load' to push the properly formatted data into your spreadsheet.

Easily Convert PDFs to Excel with WPS Office
If manual Power Query transformations are too complex, WPS Office offers a dedicated PDF-to-Excel conversion tool. It intelligently parses document layouts to retain original formatting, including blank rows, without needing advanced data query skills.
- 1. Open the PDF to Excel Tool: Launch WPS Office, navigate to the 'Tools' tab, and click on 'PDF to Excel'.
- 2. Import Your PDF: Click 'Add Files' in the conversion dialog box and select the PDF document containing your tables.
- 3. Customize and Convert: Select your desired output location and format (.xlsx), then click 'Convert'. The file will automatically open in WPS Spreadsheets with your blank rows perfectly preserved.

Frequently Asked Questions
Why does Excel automatically remove blank rows when importing PDFs?
Excel's standard data import tools are designed to clean and consolidate datasets. They often treat completely empty rows as useless null data and drop them to tidy up the table, which unfortunately causes single-column data to shift upward.
Can I restore the deleted blank rows after the data is already loaded into Excel?
No, if the data was imported and the blank rows were dropped during the load process, you cannot automatically restore them. You must either re-import the data using Power Query or manually insert new rows.
Is Power Query available in older versions of Excel?
Power Query is built-in natively under the 'Data' tab (Get & Transform) for Excel 2016 and newer versions. For Excel 2010 and 2013, it was available as a separate free add-in download from Microsoft.
How can I prevent PDF columns from merging during import?
If columns merge unexpectedly during import, use the Power Query Editor. Select the merged column, use the 'Split Column' feature under the 'Home' tab, and specify the delimiter (like a space or comma) used in your PDF data.




