An invoice line item is one billed product or service on an invoice: its description, item reference, quantity, unit, unit price and line net amount. Header fields describe the invoice as a whole (supplier, invoice number, date, currency and totals), so in Excel each line item gets its own row while header fields repeat beside it or live in a linked table.
An invoice can be perfectly readable and still produce the wrong spreadsheet. If your task is to understand purchases by item, a row containing only supplier, invoice number and total does not contain the detail you need.
What is a line item on an invoice?
A line item is one position in the invoice’s item table. One invoice has one header and one or more lines: Peppol BIS Billing 3.0 requires at least one invoice line per invoice (rule BR-16). Each line carries its own identifier, invoiced quantity, line net amount (net of VAT), item information and price details, and can carry its own allowances or charges, such as a line discount.
| Level | Typical fields | Sum it? |
|---|---|---|
| Invoice header | Supplier, invoice number, issue date, due date, currency, PO reference, payment terms | No: one value per invoice |
| Invoice line item | Line number, description, item code, quantity, unit of measure, unit price, line discount, line net amount, tax rate | Yes: the line net amount column |
| Document totals | Sum of line nets, document discounts and charges, total before tax, tax, total including tax, prepaid, amount due | Once per invoice, in a summary |
When you convert PDF invoice line items to Excel, the starting decision is what one spreadsheet row represents. For purchase analysis, it is one invoiced item or service. That decision controls the columns, the checks and how document-level totals are handled.
InvoiceLineLab extracts invoice line items from PDF to Excel or CSV with this split built in: one row per line item, the invoice number and supplier repeated beside it, and the source page next to each row.
How do you separate header data from line data in Excel?
Invoice number, supplier and document currency describe the invoice as a whole. Description, reference, quantity, unit and line amount describe a particular item. Keep both levels, but do not treat them as interchangeable.
In the synthetic example below, the same invoice number is repeated deliberately. If someone sorts the table by description or copies a subset into another workbook, each line still carries its origin.
| Invoice | Description | Quantity | Unit price | Line net | Currency |
|---|---|---|---|---|---|
| EX-026 | Recycled paper | 12 | 8.50 | 102.00 | EUR |
| EX-026 | Printed labels | 3 | 18.00 | 48.60 | EUR |
| EX-026 | Delivery | empty | empty | 9.00 | EUR |
All figures are invented. Paper: 12 × 8.50 = 102.00. The labels carry a 10% line discount: 3 × 18.00 = 54.00, minus 5.40, gives 48.60. The invoice prints delivery as a separate line with a net amount of EUR 9.00; its quantity and unit price are blank in the source and stay blank in the spreadsheet. Sum of line nets: 102.00 + 48.60 + 9.00 = EUR 159.60.
Which columns does a useful line item export need?
Beyond the numeric columns, include a stable source-document identifier and the PDF page. Keep product references as text, particularly when they have leading zeros. Keep the original unit of measure rather than turning a carton into pieces without knowing its contents.
A review column can distinguish “printed value”, “missing” and “needs review”. It should explain the problem instead of replacing uncertainty with a confidence percentage. Fitting the fields into a table does not make an invoice compliant with any e-invoicing rule.
Why doesn’t the sum of line items equal the invoice total?
The sum of line net amounts is not automatically the amount due. Peppol’s document totals separate the sum of invoice line net amounts, document-level allowances and charges, the total before tax, the total including tax, the prepaid amount, a rounding amount and the amount due for payment. Each sits at a different level from the lines. The reconciliation from line items to amount payable walks through those layers.
Keep document totals outside the line sum, or in a separate summary. Repeating the invoice total on every line and summing that column later creates a predictable overcount. A matching sum is one check, not proof that descriptions, references or units are correct. Peppol’s vocabulary is a useful reference for naming columns; it is not a certificate for a PDF extraction.
Flat sheet or two linked tables: which works better?
A flat sheet repeats document context on every line and suits filtering and pivot tables. Two linked tables suit teams that need document totals as well as item detail. In either model, give each source document a stable identifier. Supplier plus invoice number is a useful business reference, but invoice numbers can repeat across suppliers or versions, and a spreadsheet row number changes meaning after sorting.
For synthetic document D-026, the following split keeps the example intact without turning its totals into purchases.
| Document table: one record per source | Value |
|---|---|
| Source document | D-026 |
| Supplier / invoice | Synthetic supplier A / EX-026 |
| Currency | EUR |
| Printed sum of line nets | 159.60 |
| Line table: one record per position | Document link | Net, EUR | Source page |
|---|---|---|---|
| 10 — recycled paper | D-026 | 102.00 | 1 |
| 20 — printed labels | D-026 | 48.60 | 1 |
| 30 — delivery | D-026 | 9.00 | 2 |
The document identifier and printed position together identify a line; the page locates the evidence. If the PDF prints no position numbers, create a clearly labeled internal line number and keep the source order. Never present an internal number as a supplier item code.
How do you test the join before building a summary?
Add fictional document D-027 with one EUR 20.00 line. There are now two document records and four line records. Correct line-net total: 102.00 + 48.60 + 9.00 + 20.00 = EUR 179.60. Joining document context onto the four lines must leave four lines. If the document table accidentally holds two D-026 records, the join doubles its three positions; fix the duplicate document key before aggregating.
Even a correct join repeats the 159.60 header sum on each of D-026’s three lines. Summing that joined header column gives 159.60 × 3 + 20.00 = 498.80, not 179.60. Sum the line-net column for item analysis, or the document summary once per document for document analysis. A pivot table cannot repair a mismatch between what one row represents and what its measure means.
Check that every line has exactly one document link, that every document has its expected positions and that currencies stay separate. If a link fails, keep the row in an exceptions view with its source instead of discarding it. The two-table design is an analytical choice, not a prescribed Peppol export.
What should you review before using the table?
Check the first line, the last line and every page boundary. Then inspect missing quantities, negative amounts and discounts. Verify that a repeated header or subtotal did not become a purchase row, and keep a credit note (credit memo) distinguishable from new purchases.
If the vendor already provides a structured export with the necessary detail, use it: there is no value in rebuilding a table through OCR when a better source exists. The synthetic invoice example shows line notes and source columns on a fictional invoice, and invoice data validation against the PDF lists the checks applied to each row. When a description wraps over several printed lines, see how to rejoin multiline descriptions.
FAQ
What is the difference between an invoice header and a line item?
The header identifies the whole invoice: supplier, number, dates, currency and totals. A line item describes one billed product or service with its own quantity, price and net amount.
Is shipping a line item on an invoice?
It can be either. Some invoices print freight as its own line with a net amount; others add it as a document-level charge below the lines. Record it where the invoice puts it.
Should I repeat the invoice total on every Excel row?
Repeat identifiers such as invoice number and supplier, not amounts. A total repeated on each line is overcounted the moment someone sums the column.
What is an invoice line net amount?
Peppol BIS Billing 3.0 defines the invoice line net amount as the total amount of the line without VAT, including line-level allowances and charges. In practice: quantity × net price, minus line discounts, plus line charges.