Skip to content
mentoor

Topic 5 of 5 · 5 min read

Formula errors AI assistants make

Goal: Find the wrong range, reference or date handling in an AI-written formula before it is copied down a whole column.

Before you copy an AI-written formula down a column, read it for five known faults: the wrong range, the wrong kind of reference, numbers stored as text, date format confusion and hard-coded values.

Check yourself · 1 of 3

A lookup formula works in the first row, but halfway down the column it returns errors. Which fault fits best?

Choose one answer

Why it matters

An assistant can write a formula that is valid, runs without errors and is still wrong. Once it is filled down 5,000 rows, the fault is in every row and nobody sees it. These five faults come up again and again, so a short checklist catches most of them.

The five faults

  1. Wrong range. The formula adds D2:D100, but your data runs to row 480. Or it includes the header row or the totals row. Click into the formula and look at the highlighted range.
  2. Relative versus absolute references. A reference like B2 shifts when you copy it down. A reference like $B$2 stays fixed. A tax rate in $F$1 must be locked; a lookup table that slides down one row per line returns wrong matches or errors halfway down.
  3. Numbers stored as text. Values imported from a file or system may look like 1,250 but sit in the cell as text. Sums skip them. Comparisons fail. Look for left-aligned numbers or a small warning marker.
  4. Date formats. 03/04/2025 is 3 April in many countries and 4 March in the US. A formula that parses dates from text can swap day and month without a warning for any day under 13.
  5. Hard-coded values. The assistant writes *0.2 for the tax rate inside the formula. When the rate changes, nobody knows where to update it. Ask for the rate to live in a labelled cell.

Before and after

Before (AI formula): =SUM(D2:D100)*0.2

After: =SUM(D2:D480)*$G$1, with the tax rate 0.2 typed in G1 and labelled "Tax rate".

The first version ignores rows 101 to 480 and buries the rate. Both faults give a total that looks fine.

What goes wrong

  • You test only the first row. The first row is right, row 300 uses the wrong lookup row because a reference was not locked.
  • You trust the explanation. The assistant says "this sums all sales", and the range still stops early.
  • Mixed fixes. Fixing one fault by hand while accepting a regenerated formula that brings another back.

After fixing, test the first row, the last row and one in the middle, with answers you worked out yourself. Keep the checklist next to your sheet.

Examples

A lookup that slides

AI formula in E2: =VLOOKUP(A2,G2:H50,2,FALSE)

Copied down, the table range becomes G3:H51 in row 3, G4:H52 in row 4, and so on. By row 49 the table no longer contains the first products. The fix is to lock the table: =VLOOKUP(A2,$G$2:$H$50,2,FALSE).

A total that skips text numbers

A sum over column D gives 41,200. The manual check on the same column gives 47,800. The difference is 6,600: eleven cells such as '600' are stored as text and left aligned. Convert them to numbers, and the sum matches.

Key points

  • A valid AI-written formula can still have the wrong range, so click into it and read the highlighted cells.
  • Lock fixed cells with dollar signs; unlocked references slide when you copy a formula down.
  • Numbers stored as text are skipped by sums and fail comparisons.
  • Dates such as 03/04/2025 can swap day and month, and no error shows.
  • Keep rates and limits in labelled cells, not typed inside the formula.
  • Test the first, middle and last row, not only the first.

Common mistakes

  • Filling a formula down the column after checking only the first row.
  • Reading the assistant's explanation instead of the actual cell references.
  • Leaving rates, limits and thresholds typed inside the formula.
  • Assuming that a date which looks right was read in the right order.

Check yourself · 2 of 3

A sum of a column gives less than a manual total. Several cells are left aligned. What is the most likely cause?

Choose one answer

Check yourself · 3 of 3

Why ask the assistant to keep a tax rate in its own labelled cell and not write 0.2 inside the formula?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic