New Tool Radar

AI for Data & Spreadsheets

How to Check an AI SUMIFS Formula and Its Criteria in Excel

Check an AI-written SUMIFS formula by proving each criterion includes exactly the rows it should and no others.

Schematic illustration for How to Check an AI SUMIFS Formula and Its Criteria in Excel: three numbered steps - Write the criteria in words; Filter to the same rows; Compare the SUMIFS total.

A SUMIFS that totals sales for one region and one month depends entirely on its criteria, and a criterion that says North when the data says north will match nothing. The check filters the table to the same criteria by hand and compares the hand total with the formula result.

Prerequisites

  • Excel
  • A table with a value column and two or more criteria columns
  • A copy of the source file, so the original stays untouched.

Steps

  1. Write the criteria in plain words: which region, which month, and any other condition.
  2. Filter the table to exactly those criteria and add the values by hand, or with a plain SUM over the filtered rows.
  3. Compare the hand total with the SUMIFS result; they must be identical.
  4. If they differ, check each criterion for spelling, capitalisation and trailing spaces in the data.
  5. Test a second set of criteria the same way before trusting the formula in a report.

Worked example: Fictional regional book sales, November 2026

The practice table below is a fictional five-sale list. The North-region November sales are the first, third and fifth rows, and their total is 86.50. 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 Qty Unit price Amount
North, novel, Nov 2 12.50 25.00
South, novel, Nov 1 12.50 12.50
North, cookbook, Nov 3 15.00 45.00
North, novel, Oct 2 12.50 25.00
North, poetry, Nov 1 16.50 16.50
Total 124.00

Expected result. Five sales add to 124.00, the North November rows add to 86.50, and the SUMIFS result matches the hand total. UNTESTED: no AI formula was generated for this guide; the table shows the expected values a check should produce.

Limits

  • SUMIFS criteria are case-insensitive but space-sensitive, so a trailing space breaks the match.
  • A criterion that matches no rows returns 0 without warning, so always compare against a hand total.

Sources

See all