New Tool Radar

AI for Data & Spreadsheets

How to Check AI-Extracted Quantities and Units Against the Source

Check AI-extracted quantities and units against the source so kilograms are never added to litres in your totals.

Schematic illustration for How to Check AI-Extracted Quantities and Units Against the Source: three numbered steps - List quantity and unit; Check unit per row; Recompute the total.

An extraction that reads 5 kg as 5 L looks correct in the numbers column and is wrong in the real world. Quantities only mean something with their unit attached, so the check reads the number and the unit together, row by row, against the source.

Prerequisites

  • The source document
  • The extracted sheet with quantities
  • A copy of the source file, so the original stays untouched.

Steps

  1. Add a unit column next to every quantity column if the extraction merged them into one cell.
  2. Read each quantity and its unit in the sheet against the same row in the source.
  3. Flag any row where the unit differs, such as kg against g, or L against ml, and correct it from the source.
  4. Convert all quantities to one unit before summing, and record the conversion in a note on the sheet.
  5. Recompute the total in the single unit and compare it with any total printed in the source.

Worked example: Fictional catering order quantities

The practice table below is a fictional five-item catering order. The amount is the quantity in kilograms, and the total is their sum. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.

Item Quantity Unit Kg
Flour 10 kg 10
Sugar 5000 g 5
Butter 4 kg 4
Rice 12 kg 12
Eggs 360 each 0
Total 31

Expected result. Five quantities checked, each unit matches the source, and the converted total is 31 kg plus 360 eggs, which cannot be added together. UNTESTED: no AI extraction was run for this guide; the table shows the expected values a check should produce.

Limits

  • Quantities with different units must never be summed in one column.
  • A quantity stored as text, such as 5 kg in one cell, will not add into a SUM.

Sources

See all