
Let’s say you are working with a sales report in PDF format and you need to sum up a few figures or filter the report by some dimension. You decide to (smartly) use an online PDF to Excel converter rather than type everything out again. You’ve no doubt saved yourself a lot of tedious work, but there’s one thing still worth doing before you start treating those numbers as “final” which is checking the converted data.
To illustrate why, we converted four versions of the same PDF sales report document to excel. The good news is that the results were largely correct but we did find an example where the report total “looked right” even though adding up the values in the individual cells gave a different answer. In this article we’ll show you exactly what happened and how you can detect and resolve exactly that kind of problem in your own documents.
Why PDF tables don’t consistently convert cleanly
So in Excel, any given table will be made up of individual cells. The software understand that say a “quantity” belongs in one cell and a “price” in another. However, your typical PDF will store the text and graphics needed to display the page which means a table might end up looking perfectly organized without actually containing the same cell structure as a spreadsheet.
Text positioned on a page. The converter may need to infer the rows and columns.
| A | B | C |
|---|---|---|
| Item | Qty | Price |
| Lamp | 3 | 24.50 |
Each value in this example belongs to a specific cell. The C2 cell contains the price and can be referenced by a formula.
That’s why, regardless of the tool you use, converting a PDF to Excel is going to entail more than just copying the text from the original document. Whatever conversion software used will need to locate and identify the pieces that belong together before ultimately deciding whether a value should be something like a date, test, or number. Now, it’s true that some PDF files can contain explicit table tags to help this process, but that’s never a guarantee. What’s more, is scanned documents introduce yet another complication because the text may be stored in the document as an image vs actual “readable text”.
How to convert a PDF table to Excel
- Open Soda PDF’s online PDF to Excel converter.
- Start by selecting or droping your PDF into the converter. You should probably hold on to the original PDF document so you can refer back to it.
- Download the converted Excel file, then open it in Excel or any other spreadsheet application.
- Compare the first and last records, then check the columns and recalculate any totals before making changes.
What if the PDF is a scan?
You can test this by selecting a few words in the PDF document. If you find that the text is no selectable it may be an image-only scan. You can use OCR to recognize the text, or use some other conversion option that includes OCR.[1]
Pay extra attention to decimal points, minus signs and characters that look similar, such as the number 0 and the letter O.
What happened when we converted four PDF tables
We wanted to really illustrate this in concrete terms so we went ahead and built a fake sales report with 24 transactions and eight fields per transaction to figure out where and when conversion lost or misrepresented the original data. The report included product codes starting with zeros, refunds, blank region fields, long descriptions and a $1,250.00 item. Then we developed four digital PDF versions using the exact same data, changing only the layout rather than the underlying values.
| PDF layout | Records in separate fields | Correct numeric cells | Sum of line totals |
|---|---|---|---|
| Standard table | 24/24 | 72/72 | $3,422.92 |
| Borderless table | 23/24 | 69/72 | $3,349.42 |
| Grouped headers | 24/24 | 72/72 | $3,422.92 |
| Two-page table | 24/24 | 72/72 | $3,422.92 |
The numeric-cell count covers quantity, unit price and line total. A correct numeric cell should contain the expected value as a number, not text. In our example the “correct” total was $3,422.92 in every version.
1. Product codes changed even when prices were right
Five-character SKU
Stored as a number
All separately extracted SKU values lost their leading zeros. Fortunately that doesn’t throw off the sales total, but it can certainly cause issues if you’re matching the product codes against an inventory list.
2. Removing the borders changed the structure of the result
This was a bit surprising. With the borderless version, the column headings and the first transaction each ended up combined in one cell. Of course the data was still present but it wasn’t really separated into useful spreadsheet fields. Having said that, we found that the other 23 records include actually were separated, with their amounts and quantities recognized.
TX-1001 00124 2026-11-01 Desk lamp 3 $24.50 $73.50 East
The complex table, despite having grouped headers and longer descriptions, recovered all 24 records in separate fields. So a document that looks more complicated isn’t necessarily the one that will cause more trouble.
3. The report total was right, but the total sum was off.
The borderless spreadsheet still displayed the original report total of $3,422.92 at the bottom. However, when summing only the individual numeric amount cells we produced a total of $3,349.42.
Matches the original PDF
Does not include the first transaction
This is an excellent example of why it’s worth spending some time to recalculate totals rather than simply comparing the figure printed at the bottom of the report.
How to check your converted data
In case you’re wondering.. You don’t need to inspect literally every cell in a document if it’s low risk. But if you’re working with inventory, financials, or important data that might feed into another system, then it is worth taking time to perform a few careful checks.
Here’s three short examples based on our test. Consider what could go wrong in each case and then reveal each answer.
Reveal the problem
The leading zeros are gone. A lookup using the original five-character SKU may fail. Restore the code as text using the original PDF or a confirmed fixed-width code format.
Reveal the problem
The first transaction worth $73.50 is in a text cell instead of the numeric amount column. The copied total alone did not detect that structural problem.
Is anything wrong here?
No. The negative value actually survived and was stored as a number in the test. You can check its type with ISNUMBER before relying on an amount that only looks like a number.
A quick checklist
The example formula assumes your amount is in G2. Change the cell reference to match your spreadsheet.
How to fix common conversion problems
| Problem | What to do |
|---|---|
| Product codes lose zeros | Restore them from the source, or use =TEXT(B2,"00000") if you know every code has exactly five digits. |
| Numbers are stored as text | Use Excel’s Convert to Number option where available. Check currency signs and decimal separators first. |
| Several values occupy one cell | Separate the fields manually for a small number of records. For a larger table, try Excel’s PDF import or Power Query if available. |
| Repeated headings or totals | Move the data into one clean table and exclude repeated headers and subtotal rows before calculating. |
| Dates look wrong | Compare with the PDF before changing the date format or re-entering the date. |
| Data is unreadable after scanning | Try a clearer scan and the correct OCR language, then check the results against the source. |
One important caution about the TEXT formula: formatting a value to five characters will only work when you know the intended length. So if some original identifiers had different lengths, recover them from the PDF instead of guessing.[2]
For an alternative workflow, supported versions of Excel can import PDF tables through Data > Get Data > From File > From PDF. The Navigator lets you choose the detected tables, and then transform the data as needed. This can be really helpful when one clean dataset is needed vs a spreadsheet that fully resembles the original page.[3]
Can you recover the original Excel formulas?
Not typically. When a spreadsheet gets exported to a PDF document the “displayed” final result of a formula is usually what gets saved on the page. In fact usually the formula itself (which includes its references to other cells) isn’t going to be part of that exported table.
In our test, the converted workbooks contained the numerical results, but none of the original spreadsheet formulas. If you know that the line total is the quantity multiplied by the unit price, you can create a new formula, such as =ROUND(E2*F2,2), in a clean table where E2 and F2 contain those inputs. For calculations involving hidden data or unknown business rules, ask for the original workbook.
Ultimately, the goal isn’t to get a spreadsheet that looks exactly like the PDF. It’s to get one that contains the information you need and works the way you expect. A quick check of the structure, identifiers and totals will get you much closer to that goal.
Sources
- Soda PDF — PDF to Excel converter. Conversion workflow and OCR availability.
- Microsoft — Keeping leading zeros and large numbers. Text identifiers and restoring known-width codes.
- Microsoft — Import data from data sources (Power Query). PDF import workflow in supported Excel versions.
Test methodology: Four synthetic PDF layouts containing the same 24 records and eight expected fields per record were converted. We compared the unedited output workbooks with the reference data, matching individual records and fields, checking cell types and summing numeric line totals independently of the displayed report total. Whitespace differences and insignificant numeric precision differences were ignored. These results describe the tested files only; the precise conversion interface and settings were not recorded.


