Table structure

Convert PDF with Merged Cells to Excel with Spanning Headers

PDFxlsx converts a PDF with merged cells to Excel and writes spanning headers back as real merged cells. A grouped header such as Q1 over Jan, Feb and Mar stays one band over three columns, and the numbers underneath arrive as numeric cells.

Starter is $49 a month, Plus $99, Pro $199. Yearly billing is about half per month. The free account demo converts 3 files with the first 10 rows.

Uploading your PDF…

Drop your PDF here or click to browse

PDF files up to 50MB

What happens to a merged cell

A PDF has no merged cells, only lines drawn around text. PDFxlsx reads the lines of a ruled table and notices a cell whose edge runs across several columns or rows. That range is written to the workbook as a merge.

Case in the PDFIn the XLSX
Header band over several columnsOne merged header cell over those columns.
Label spanning several rowsOne merged cell down those rows.
Range would hide a figureNo merge. The cells stay separate and every value stays visible.
Table without ruled bordersConverted without merges.
CSV outputFlat plain text, no merges.

You can undo any merge in Excel, see Microsoft's guide to merging and unmerging cells. Merges apply to tables read from a text layer with a visible grid. Totals that add up get a SUM, see the formulas page, and tables that run over pages are joined as described on multi page conversion.

A worked example, a quarterly operating statement

Take a ruled operating statement. The header has Q1 spanning January, February and March, then Q2 spanning April, May and June. A converter that ignores the grid puts Q1 above January only, and Q2 lands in the wrong column. The workbook reads like a table that lost its header.

PDFxlsx writes two merged header cells, each three columns wide, with the month names in the row below and the amounts as numbers under them. Someone who opens the file sees the same grouping the PDF showed. A pivot or a SUM over a month column works without touching the header.

The example is illustrative and not a measured result for a particular document. Scanned pages go through recognition and have no reliable grid, so check the headers on a scan. See OCR PDF to Excel.

Limits to know before you buy

Ruled tables only

The merge comes from drawn cell borders. A table laid out only with spaces has no grid to read, so its headers are not merged.

Merges never hide data

A range is merged only when all cells except the top left one are empty. Otherwise the cells stay apart.

Not a visual copy

Fonts, colours and page layout are not copied. The workbook has one sheet per table, a bold header row, sized columns and real number and date cells.

PDF only, 50 MB

Files must be PDFs up to 50 MB. For many files use batch conversion on Plus.

Who it is for and who it is not for

It fits when

You are an accountant, analyst or lender who receives ruled financial reports with grouped headers and needs the Excel file to keep that structure. Starter at $49 a month covers one person, Plus at $99 adds batches, team seats and column mapping.

It does not fit when

Your PDFs are scans or tables without borders and you need merged bands rebuilt, or you want a flat CSV with merges. Both give a plain table.

Pro at $199 adds the PDF to Excel API. Mapping is described on custom column mapping. All plans are on the pricing page.

Merged cell questions

Upload the PDF to PDFxlsx. When a table has ruled cell borders, a header or cell that spans several columns or rows is read from the grid and written to the XLSX as a merged range. Tables without ruled borders convert without merges.

Yes for ruled tables with a text layer. The merge is applied only when every other cell in the range is empty, so a merge never hides a figure. If a range would hide data, the cells stay separate and the data stays visible.

No. CSV is one flat table of plain text and has no concept of merged cells. Use XLSX when the spanning header matters.

Merged cells block sorting, filtering and pivot tables in Excel. PDFxlsx keeps merges mainly for header bands, and you can unmerge a range in Excel with one click when you want a flat table.

Yes. With a custom column mapping on Plus and above, merged ranges are moved together with the columns they belong to, and a range that no longer fits is dropped rather than corrupted.

Convert your next ruled report on a paid plan

Create a free account, run the demo on one of your reports with grouped headers, then pick the plan with the monthly conversions your work needs.