Skip to content
BillToCSV

Home / Formatting

PDF to Excel without losing the bill's layout

For a bill, layout is not how it looks. It is which figure was a quantity, which was a price, which was the line amount, and which was the supplier's own subtotal. Lose that and the spreadsheet has to be rebuilt.

Six ways a bill loses its columns

Each of these is a layout failure rather than a reading failure, and each one is visible in the arithmetic the bill already contains.

What goes wrong in the billWhat it does to the bill
A line item broken in twoA wrapped description becomes a second row with no amount. The line sum then runs short, and the shortfall looks like a missing item.
The subtotal counted as an itemA bill prints its own subtotal under the lines. Read as a line, it doubles the invoice and every total downstream.
Currency mark inside the number£ or $ in front of the value turns the cell into text, and a column of text sums to zero without any warning.
Parentheses read as proseA credit written as (120.00) arrives as a note rather than a negative figure, so the bill totals to more than it should.
Two tax lines mergedVAT and a city tax printed on adjacent rows become one cell, and the tax total no longer matches the bill.
Header repeated mid-documentA second page repeating the column headings is read as a new table, splitting one invoice into two.

What is kept, and how

Structure

  • One row per line item, with quantity, unit price and amount in their own columns.
  • The subtotal, tax and total set aside as their own rows, not counted as items.
  • A description that wraps is joined back to its line; a repeated header is not a second invoice.
  • Numbers arrive as numbers: signs, brackets and currency marks are read, not left as text.

Evidence

  • Every cell keeps the place on the page it was read from.
  • The printed text is kept beside any value that a person corrects.
  • The file can be exported with the confirmed and corrected cells marked, so a reviewer can see what was checked.
  • Nothing is rounded, corrected or completed on the customer's behalf.

The arithmetic check follows from the structure: each line's quantity × unit price against its amount, the items against the printed subtotal, and the subtotal plus tax against the total. A failure is reported with the exact difference, and the line it belongs to.

Where it gives up

A bill with no readable table, a photographed receipt with a crease through the totals, or a hand-written amendment is outside what the reading can settle. Those documents are still converted, and the cells that could not be read are left as found and listed rather than guessed.

If what you need is the invoice matched against the order it answers, that is a different job, and it is on reconciling an invoice against its purchase order.

Questions

What does “losing the format” mean for a bill?

Not fonts and shading. For a bill it means losing the column structure: which figure was a quantity, which was a unit price, which was the line amount, which was the subtotal. Once those are mixed, the bill cannot be checked against itself, and the Excel file has to be rebuilt by hand.

Does the converted file keep merged cells?

A bill's header block is merged on paper so it reads as one block. In the CSV it becomes columns with the same value on each line of the invoice, which is what an import into QuickBooks or Xero expects. A merged cell in a CSV would break the importer.

The supplier's bill has no item table at all. What comes out?

The document is still read: the text is kept, and any figure that looks like a total is reported rather than turned into a line item. A bill that cannot be split into items is a bill somebody has to read, and the tool says so instead of inventing rows.

Can I check the result against the paper?

Yes. Each cell carries the page and the position it was read from, and the result pane opens that region of the original when you select the cell. Confirming or correcting a cell leaves the printed text beside the corrected value, with the time.