Multiline invoice descriptions in Excel

Rejoin invoice descriptions split across Excel rows after PDF import: group fragments under one item key, carry each amount once and check the line total.

See the PDF-to-Excel example

When an invoice description wraps over several printed lines, a PDF import often turns each visual line into its own Excel row, with blank quantity and amount cells under the real item. Fix it by giving every fragment a reviewed item key, joining the confirmed continuation text into one description and keeping the quantity, price and amount exactly once.

The target is one row per invoiced item, not one row per line of text. The reverse mistake is just as costly: gluing the next item onto the current description. The examples here are synthetic and describe a review method, not a measured result of any extraction engine.

Why does an invoice description split across rows?

A PDF stores positioned text, not table cells. A supplier can print an item name, material, pack size and reference on four lines; a generic table import sees four lines of text and makes four rows. Usually only one of them carries the quantity and amount, so the others look like empty items.

Printed textQtyPriceNet (EUR)
Archive boxes414.0056.00
Natural board, pack format
Supplier ref BX-010
Recycled A4 paper128.50102.00

The two middle lines look like continuation text, and the next populated quantity and amount suggest a new item. That is evidence to review, not a rule: a service can legitimately have no quantity, and some layouts print the amount on the last line of the block rather than the first.

Each fragment belongs to one invoice line item, so the column design comes first: see invoice line items versus header fields for the one-row-per-line layout these steps aim for.

How do you merge multiline descriptions into one row?

  1. Keep the source order. Work on a copy, add the document, the page and a visual-row index before any sort, and keep each raw fragment in its own column.
  2. Give each fragment a role. Item start, confirmed continuation, or unresolved. Remove headings and page furniture from the grouping input, but log why they were excluded.
  3. Fill down an item key, not the numbers. Number each item start (for example fictitious INV-A / item 1) and fill that key down to its continuations only, within one document. A product code alone is not a safe key: the same product can appear on two genuine lines.
  4. Join the text by key. Concatenate the description fragments of each key in visual-row order with a readable separator, such as a comma and a space. In a spreadsheet’s query editor this is a group-by on the key with a text combine; with formulas it is a join over the rows sharing the key.
  5. Take the numbers from the row that printed them. Quantity, unit price and amount are carried once per item, usually from the item start, or from the last line when the layout prints them there.

For the block above, the reviewed record is:

Source visual rowReviewed groupRetained informationAmount carried into the final item
1: Archive boxesItem 1Name, quantity 4, price 14.00EUR 56.00, once
2: Natural board, pack formatItem 1Description continuationNone added
3: Supplier ref BX-010Item 1Supplier reference, also copied to a reference columnNone added
4: Recycled A4 paperItem 2Name, quantity 12, price 8.50EUR 102.00, once

Final rows: “Archive boxes, natural board, pack format, supplier ref BX-010”, 4 × 14.00 = 56.00; “Recycled A4 paper”, 12 × 8.50 = 102.00. Line total: 56.00 + 102.00 = EUR 158.00. “None added” describes the continuation’s role; it never means replacing an unknown printed amount with zero.

InvoiceLineLab extracts invoice line items from PDF to Excel or CSV with wrapped descriptions kept together as one row per item, and the source page beside each row so you can check the grouping against the PDF.

Why must you never fill down the amount column?

A fill-down copies a value into the blank cells below it. It does not know whether a row is a continuation. If you fill the 56.00 amount into both continuation rows of the example, the sum becomes 56.00 + 56.00 + 56.00 + 102.00 = EUR 270.00 instead of EUR 158.00. Fill the quantity down as well and 4 archive boxes become 12.

Limit any fill-down to the reviewed item key and stop it at document boundaries. A grouping step does not guarantee output order either, so keep the visual index and restore the order explicitly when you assemble the text and the final rows.

How do you tell a continuation from a new item?

Use several anchors together: a product reference, a quantity, a right-aligned amount, a separator line. Indentation alone is weak evidence: product descriptions can be indented, and service lines may not follow the item pattern.

Keep useful detail in the description. “Archive boxes” and “Archive boxes, natural board, pack format” may be different purchases. A repeated invoice header, page number or subtotal is layout, not part of the product name. If two groupings remain possible, keep both options visible with the missing anchor noted; a plausible sum does not choose between them.

When a description crosses a page break, review the end of one page and the start of the next together. A repeated column heading between the two halves must not split the item or join the description. Keep both page references on the item; repeated headers and carried subtotals on multipage invoices covers the boundary rows themselves.

Can a native PDF import still be a good starting point?

Yes, as long as you treat it as raw material. A native PDF table import gives a working table to review, and the key-and-join steps above work on it when the layout is regular. Import options vary by spreadsheet version, so check the actual output rather than assuming one sequence works everywhere.

A text import needs usable text in the item area. If the page is a scanned image, assess text recognition separately: a blank import does not mean the invoice has no items.

How do you check the merged result?

Count the item blocks on the PDF, then compare with the number of rows after merging. Check the boundary between two similarly named items, the start of each page and every service line with a blank quantity. Then look for descriptions that swallowed an invoice header or a total.

Amounts alone are not enough. Two different items can cost the same, and a wrong merge can leave the sum unchanged. Keep descriptions and source pages visible next to the numeric checks. The synthetic invoice example shows prepared line notes on a fictional invoice, and invoice data validation against the PDF describes the row checks.

FAQ

Why does my invoice description split across rows in Excel?

Because the PDF stores each printed line of text separately, and the import turns each one into a row. Usually only one row of the block receives the quantity and amount.

Can I just delete the rows with no amount?

No. Those rows usually hold part of the description, a size or a supplier reference. Join their text to the item first, then remove the empty rows.

Is filling down the quantity and amount a safe shortcut?

No. It multiplies the amount by the number of fragments. Fill down only a reviewed item key, then take the numbers from the row that printed them.

What if a service line has no quantity at all?

Keep it as its own item with the quantity left blank and flagged. A missing quantity does not make the line a continuation of the item above.

Sources and further reading

Get started with InvoiceLineLab

Enter your work email to get access to InvoiceLineLab. No account or payment is created at this stage.

Submitting sends your email and visit context to our publisher’s infrastructure, named on the Privacy page. No account, payment or automatic email is triggered. Privacy.