WALIWAYAI INSTITUTE

An educational initiative of Tragro

Practice exercise / Tutorials

Can AI spot the mistakes in this spreadsheet?

Seven rows are enough to test whether an assistant checks the business meaning of a sheet as carefully as its arithmetic. Try the exercise, then compare the result with the answer key.

Waliway AI Institute

Published

5 min read · estimateSources checked

Exercise time is additional. Prepared .

In this guide
  1. The register and its rules
  2. The answer is USD 8,350
  3. Make the checks visible in the sheet
  4. Judge the assistant by what it preserves
  5. Related reading

A suspiciously large number is easy to notice. A repeated invoice is harder: it could be an accidental import, a second legitimate line, or an entirely different supplier using the same invoice number.

This exercise uses a fictional invoice register. There are no real companies, payments or model results here. The complete challenge is below, so you can attempt it yourself or paste it into an assistant without uploading a business file.

The register and its rules

Each row represents one invoice line. An invoice can contain several lines. Invoice numbers are unique within each supplier, not across all suppliers. Within this register, the combination of supplier, invoice number and line number identifies one payable line.

All prices are in US dollars per tonne. Quantities may be tonnes (t) or kilograms (kg). There are no taxes, discounts, freight charges, credits or part-payments. The entered amount should equal the line quantity converted to tonnes, multiplied by the quoted price.

For the duplicate in this fictional exercise, the source invoices confirm that one payable line was imported twice. Those facts matter: a real register would need its source documents before you could make the same decision.

To reproduce the sheet, place these seven headers in columns A–G, with the first data line in row 2 and the last in row 8.

Invoice Line Supplier Quantity Unit USD per tonne Entered USD
INV101 1 Cedar 2 t 900 1800
INV101 1 Cedar 2 t 900 1800
INV101 2 Cedar 1 t 950 950
INV102 1 Delta 1500 kg 1000 1500000
INV103 1 Cedar 3 t 900 2600
INV104 1 Elm 0.5 t 1200 600
INV101 1 Delta 1 t 800 800

The register's footer uses =SUM(G2:G7).

Ask the assistant to identify incorrect amounts, distinguish duplicate lines from legitimate repeats, inspect the total's range and calculate the corrected payable total. Require row references and arithmetic. Tell it to preserve all original rows and propose corrections separately.

Pause here if you want to try the challenge before reading the answers.

The answer is USD 8,350

Rows 2 and 3 contain the same Cedar invoice line. Under the stated rules and source confirmation, retain one payable amount of USD 1,800 and exclude the duplicate from the corrected total. Do not exclude both rows merely because both are flagged.

Row 4 is valid. It shares Cedar's invoice number but has a different line number. Row 8 is also valid: Delta can issue its own INV101. Removing every repeated invoice number would wrongly discard legitimate amounts.

Row 5 has a unit error. Its 1,500 kg is 1.5 tonnes, giving 1.5 × 1,000 = USD 1,500, not USD 1,500,000.

Row 6 has an arithmetic error: 3 × 900 = USD 2,700, not USD 2,600. Row 7 is correct at 0.5 × 1,200 = USD 600.

Finally, the footer omits row 8. Its present result is USD 1,507,750. Extending it to include all seven input lines gives USD 1,508,550, which still includes the duplicate and incorrect amounts. Fixing the range alone does not fix the register.

The corrected total is:

1,800 + 950 + 1,500 + 2,700 + 600 + 800 = USD 8,350.

This is why “the formula adds up” is an incomplete check. You need the right rows and the right values inside them.

Make the checks visible in the sheet

Add a column H named Quantity in tonnes. In H2 enter the formula below and copy it through H8:

=IF(E2="t",D2,IF(E2="kg",D2/1000,NA()))

The final NA() makes an unexpected unit visible as an error. Quietly treating an unknown unit as tonnes would create a confident-looking amount without a basis.

In column I, Calculated USD, enter =ROUND(H2*F2,2) in I2 and fill down. In column J, Difference, use =G2-I2. A zero means the entered amount agrees with this calculation; it does not prove that the source price or quantity is correct.

In K2, flag repeated combinations with:

=COUNTIFS($A$2:$A$8,A2,$B$2:$B$8,B2,$C$2:$C$8,C2)>1

Copy the formula through K8. Microsoft's COUNTIFS documentation explains how the function counts rows meeting multiple criteria. Here, all three identifiers must match. Both members of the duplicate pair will be flagged, which makes K a review signal rather than a deletion instruction.

Add column L, Decision. For this exercise, enter Exclude in L3 and Keep in every other data row. The corrected total is:

=SUMIF($L$2:$L$8,"Keep",$I$2:$I$8)

These formulas use English Excel function names and comma separators. Spreadsheet settings may use different separators or localised names. The checks are intentionally fixed to this seven-row exercise; extend their ranges when adding records.

Judge the assistant by what it preserves

An answer deserves credit for keeping Cedar's second line and Delta's separate invoice, as well as finding the large error. Flagging everything unusual would produce plenty of activity while damaging the register.

For a real review, retain the original values and record who accepted each proposed correction. A duplicate flag is a reason to inspect an invoice, a credit note or an import log. It is not evidence that a supplier has been paid twice.

Also ask what the assistant could inspect. Pasted values reveal different things from a workbook with formulas, hidden rows and multiple sheets. If you supply only a screenshot, do not assume the assistant has audited the formulas behind it.

The strongest result is a short, traceable correction record: these rows repeat one payable line; this quantity needs conversion; this multiplication is wrong; this range misses a row. Each finding should survive inspection without relying on the assistant's confidence.

Source note: Microsoft's COUNTIFS reference supports the multiple-criteria check. The register, business rules and answer key are an original fictional exercise; no model performance is claimed.

Related reading