When converting a supplier PDF price list to Excel, the first thing to verify is the column above each price. In our test, 2 of 4 price lists gave a buyer different answers even though their extracted text was identical. An order for 20 adapters cost $210 on one sheet. On the other, the supplier had left that quantity unquoted.
We moved a single $10.50 price from the 10–49 column to the 50+ column and left the rest of the page alone. The default text extraction from each read ADP-02, then 10.50, then the next product, HUB-03. Even a byte-by-byte comparison of the full text couldn't tell the two pages apart.
A fresh Claude session given the first extract did something a buyer could easily miss. It left the price blank, then explained that $10.50 belonged to the 1–9 tier. That sounded like a good reason to email the supplier. In fact, the supplier had already printed the price for 20 adapters. The mistake was in our conversion.
Which parts of a supplier price list survive extraction?
We tested four one-page price lists that we created ourselves. As of November 26, 2026, our local setup used pypdf 7.1.1 and pdfplumber 0.11.11. Each sheet carried three fictional SKUs in US dollars per unit. We kept the two other products fully priced so there was a plausible row on either side of the adapter. To repeat the checks, use these example filenames for equivalent fixtures or substitute your own local PDF filenames.
- complete.pdf has ruled columns for 1–9, 10–49 and 50+ units. The ADP-02 prices are USD 12.00, 10.50 and 9.00 per unit, respectively.
- middle.pdf keeps the rules and quotes only USD 10.50 in the 10–49 column.
- last.pdf keeps the rules and quotes only USD 10.50 in the 50+ column.
- borderless.pdf removes the rules and keeps USD 10.50 in the same position as middle.pdf .
In Python, run from pypdf import PdfReader and import pdfplumber. Set filename = "middle.pdf" and page = PdfReader(filename).pages[0]. The index 0 reads the first PDF page. Repeat the extraction on every relevant page and record the human-readable page number in Excel.
Run flat = page.extract_text() for the default output and layout = page.extract_text(extraction_mode="layout", layout_mode_space_vertically=False) for the fixed-width output. View the latter in a monospaced editor with spaces preserved. PDF tables can store their contents as positioned text, and layout mode can retain the horizontal spacing that helps you match values to headers. For an image-only PDF, use OCR to get a transcription and verify its alignment on the rendered page. pypdf itself cannot OCR an image-only page. pypdf text extraction documentation
To reproduce the flat-text comparison for the two ruled fixtures, evaluate PdfReader("middle.pdf").pages[0].extract_text().encode("utf-8") == PdfReader("last.pdf").pages[0].extract_text().encode("utf-8"). Our two extracts matched by direct comparison and had the same SHA-256 digest.
For the cell-based view, run with pdfplumber.open(filename) as pdf: table = pdf.pages[0].extract_table(). By default, pdfplumber uses lines or rectangle edges to identify table separators. extract_table() selects the largest detected table. If the page contains several tables, use pdf.pages[0].extract_tables() inside the same with context and match the returned headers to the table you intend to import. pdfplumber table extraction documentation
Default pdfplumber extraction matched the original cells on 3 of 3 ruled pages, including the blanks. With the same data on the borderless page, the default detector returned None. That meant it had found no table. The prices were still on the page. pypdf’s layout output preserved the middle price’s horizontal position on that copy. Open the rendered PDF beside either output and trace the price up to its column header before accepting the mapping.
What should you give AI before it prices an order?
Here is what survived in the structured input from the middle-price page. The header was ["SKU", "1-9 units", "10-49 units", "50+ units"]. The matching row was ["ADP-02", "", "10.50", ""]. On the last-price page the same row became ["ADP-02", "", "", "10.50"]. Counting from the SKU, the third value answers the buyer’s question on both pages. In the second row that value is an empty string.
Send the model the tier headers and their rows together. For cell-based input, keep empty cells in their original positions. For fixed-width input, preserve the spacing. Here’s the exact prompt we used.
> Read this supplier price list representation. The buyer needs 20 ADP-02 units. Return one JSON object with SKU, applicable tier, unit price in USD, extended price in USD, and the reason. If the price cannot be assigned to the applicable tier from the evidence, use null for both prices and specify what to verify. Treat empty cells as unquoted.
We ran five fresh Claude CLI sessions with --model sonnet, one run per input, with the same prompt and no tools.
1. Complete PDF, flat text. The model returned USD 10.50 per unit and USD 210.00 extended for 10–49.
2. Middle PDF, flat text. It returned null for both prices and incorrectly assigned USD 10.50 to 1–9.
3. Middle PDF, extracted table. It returned USD 10.50 per unit and USD 210.00 extended for 10–49.
4. Last PDF, extracted table. It returned null for both prices and correctly explained that USD 10.50 applied to 50+, leaving 10–49 unquoted.
5. Borderless PDF, layout text. It returned USD 10.50 per unit and USD 210.00 extended for 10–49.
The fully priced row was a useful control. Reading three prices in sequence happened to work there. It gave us no assurance that the same process would preserve the location of a single price with blanks on either side. We ran each condition once. That is enough to exhibit the failure, and far too little to estimate how often a model makes it. Check the explanation and the price against the source cells, even when the hold decision or arithmetic looks right.
How do you build an Excel sheet a second buyer can verify?
Create a Source Tiers sheet with one row per SKU and tier. Include the supplier, PDF filename or revision, page number, SKU, product label, original tier label, minimum quantity, maximum quantity, price basis, currency, unit price and source reference. Make the reference specific enough for someone else to find the cell, such as the table heading, SKU and column header.
Keep every tier, including those with blank unit prices. For a verified open-ended tier such as 50+, enter 50 as the minimum and leave the maximum blank. Keep the original 50+ label so a reviewer can tell that the blank upper limit is intentional. Preserve the price basis as printed, such as per unit or per pack, and confirm that the order quantity uses the same basis before multiplying.
Treat Source Tiers as a record of what the supplier printed. If the same SKU appears twice, check whether the second entry belongs to another revision, currency or pack size before combining the rows. A matching product code alone does not settle which price the buyer can use.
Create a Buyer Review sheet with the SKU, source reference, order quantity, applicable tier, currency, unit price, extended price, status and reviewer note. The two synthetic PDFs produce these rows.
- Priced row from middle.pdf . ADP-02 , quantity 20 , tier 10–49 , unit price USD 10.50 , extended price USD 210.00 , status Priced .
- Held row from last.pdf . ADP-02 , quantity 20 , tier 10–49 , unit price blank, extended price blank, status Hold . Reviewer note reads “10–49 unquoted. USD 10.50 applies to 50+. Confirm the 20-unit price with the supplier.”
Which checks should a row pass before you use it in a quote?
Give the reviewer the original page and the order quantity along with the workbook. This checklist lets someone who never saw the AI conversation reproduce the decision.
1. Verify every imported tier against the PDF. Check the SKU, original tier label, inclusive quantity limits, currency, price basis and price cell. Review the blank cells as well as the populated ones.
2. Test the boundaries. In the synthetic lists, 9 belongs to 1–9 , 10 and 49 belong to 10–49 , and 50 belongs to 50+ . Hold the order line if its quantity has no unique matching tier, the alignment is uncertain, or the applicable cell has no price.
3. Calculate the extended price in Excel. After verification, set the status to Priced . In an Excel table with the columns Status , Quantity and Unit Price , use =IF(AND([@Status]="Priced",ISNUMBER([@[Unit Price]]),ISNUMBER([@Quantity])),[@Quantity]*[@[Unit Price]],"") . The empty string keeps the extended-price cell visually blank on held rows.
4. Release priced rows only. Filter approved totals and purchase-order exports by the explicit Priced status. For held lines, ask the supplier to confirm the SKU, requested quantity and applicable unit price, including currency and price basis.
For help drafting that email, see ChatGPT prompts for executive assistants.
When is it correct to fill a blank cell?
We extracted page 2 of the Corbettmaths 2026 school order form with pdfplumber and checked the rendered page separately. The visible Numeracy Book 1 (January to June) label spans the 1–9, 10–49 and 50+ rows. The extracted product label is null on the continuation rows. The rendered page confirms that those rows belong to the same book. Corbettmaths 2026 school order form, page 2
The 10–49 row has its own price of £4.99 per book excluding VAT. Using the dated form as an example, 20 copies would come to £99.80 before VAT, excluding any separate charges. The blank order quantity and extended-price fields are for the purchaser to complete.
A blank continuation label can inherit the product name because the merged cell visibly covers that row. Fill it down only within those confirmed boundaries. A blank supplier unit-price cell leaves that tier unquoted. Keep the price blank and hold any order line that depends on it.
Can you do the import inside Excel?
Power Query is a documented Excel option. The extraction tests above used pypdf and pdfplumber. In Power Query, select the PDF table in Navigator, choose Transform Data, and compare the preview with the original page before loading. Microsoft documents that multi-line rows can be misidentified and describes transformations such as targeted fill-down. Microsoft Power Query PDF connector documentation
If you need fill-down, apply it only to the label column within the product group you confirmed visually. Keep unit-price blanks intact. Load the result into Source Tiers and use the same review and release rules for Buyer Review.
When an order still has a held line, label any total you share as a subtotal of priced lines and name the outstanding SKU. In our adapter example, a supplier can answer one precise question: “Can you confirm the USD unit price for 20 of ADP-02? The price list gives $10.50 at 50+ units and leaves the 10–49 tier blank.” Send that question for the last-price sheet. For the middle-price sheet, the PDF already supplies the answer.
<!-- radar:related-start -->
Related reading:
- How to Verify AI Citations With Crossref and the Original Paper
<!-- radar:related-end -->
