Convert PDF to Excel with Formulas in the Total Rows
PDFxlsx converts PDF tables to Excel and writes a SUM formula into a total row when the figures above it add up to the printed total. When they do not add up, the cell keeps the number from the PDF. So a corrected amount in your sheet changes the total, and a total that never matched is never silently replaced.
XLSX only. Starter is $49 a month and every plan includes this.
Drop your PDF here or click to browse
PDF files up to 50MB
When a total becomes a formula
The converter does not trust a label alone. A row is only turned into a formula after four checks pass, and each check exists to stop the file from showing a number the document never printed.
| Check | Rule in the converter | If it fails |
|---|---|---|
| Label | First non empty cell starts with Total, Subtotal, Grand total, Sum, Net, Net change, Net total or Balance | Row stays plain values |
| Number block | At least 2 numbers directly above, in the same column, with no gap | Printed value kept |
| Arithmetic | The block adds up to the printed total, within 1.5 cents | Printed value kept |
| Earlier total | A subtotal above ends the block, so a grand total never counts it twice | Block stops at the subtotal |
The result is a cell such as =SUM(C2:C7) in the total row, with the numbers above stored as real values with a number format.
Worked example with a vendor invoice
A vendor invoice lists five line amounts of 1,250.00, 480.50, 99.99, 2,310.00 and 75.25, and prints a Total of 4,215.74. They add up, so the Total cell in the XLSX holds =SUM over the five rows and shows 4,215.74. You then find that line three should be 109.99. You type it, and the total moves to 4,225.74 without any other edit.
| Case | Printed total | Sum of rows above | Total cell in XLSX |
|---|---|---|---|
| Rows add up | 4,215.74 | 4,215.74 | SUM formula, shows 4,215.74 |
| Discount line outside the block | 4,000.00 | 4,215.74 | Plain value 4,000.00 |
| Only one number above | 75.25 | 75.25 | Plain value 75.25 |
The second row is the reason for the arithmetic check. Replacing 4,000.00 with a computed 4,215.74 would change a figure on your client's document. The formula appears only where the document itself agrees with the sum. For the full list of layouts that convert, see invoice PDF to Excel and financial report PDF to Excel.
What else the Excel file contains
Real numbers and dates
Amounts and dates are stored as values with a number format, so SUM, pivots and filters work on them straight away. Other formulas you need, such as a running balance, you add yourself.
Clean structure
One worksheet per table, a bold header row, sized columns and merged header cells where the PDF spans them. Fonts, colors and page layout of the PDF are not copied.
Your column layout
Plus and above can rename and reorder columns with a saved template, and the total formula follows the mapped layout. See custom column mapping.
Who it is for and who it is not for
It fits when
You convert invoices, statements or reports and then correct a few amounts by hand. Bookkeepers, accounts payable clerks and analysts get totals that recalculate instead of staying frozen at the printed figure.
It does not fit when
You expect the original formulas of an Excel file that was printed to PDF. Those do not exist in the PDF. There is also no formula for percentages, balances or cross sheet links, and CSV carries no formulas. Check the converter roundup if you need a different tool.
Plans are on the pricing page. Official reference for the function: Microsoft documentation of SUM.
Formula questions
Only one kind. When a table has a total row and the figures above it add up to the printed total, the XLSX cell holds a SUM formula over those rows. Everything else is stored as a real number or date. A PDF holds no formulas, so none can be recovered from it.
The cell keeps the number printed in the PDF. No formula is written, so a discount, a correction or a line outside the block never gets replaced by a figure the document did not show.
The first non empty cell of the row must start with Total, Totals, Subtotal, Sub-total, Sub total, Grand total, Sum, Net, Net change, Net total or Balance. Polish labels such as Razem, Suma and Ogolem also count.
No. CSV is one flat table of plain text, so the total stays as the printed number. SUM formulas exist only in the XLSX file.
Yes, even when a column template drops or moves the label column. The total row is recognized on the table before the template is applied, and the SUM is placed in the mapped layout. Custom column mapping is included from Plus.
More PDF to Excel options
Fast PDF to Excel Converter with Priority Processing
Fast PDF to Excel converter where paid plans go ahead of free accounts in the queue. Text PDFs finish in about a second at the median. Starter is $49 a month.
FeaturesSecure PDF to Excel Converter for Financial Documents
Source PDFs are encrypted with AES-256 and deleted within 24 hours of conversion. What PDFxlsx stores, what it shares for scans, and what it does not hold.
FeaturesConvert Multi Page PDF to Excel as One Sheet or Per Page
Convert a multi page PDF to Excel as one merged table or one worksheet per page. Statements and ledgers that run across pages arrive ready to filter.
FeaturesConvert PDF with Merged Cells to Excel with Spanning Headers
Convert a PDF with merged cells to Excel and keep grouped headers as real merged cells over the right columns. Numbers and dates arrive as cell values.
Get totals that recalculate in Excel
Create a free account, run the demo on one of your PDFs, then pick the plan with enough conversions for your month.