New Tool Radar

AI for Data & Spreadsheets

How to Check a Copilot Formula That Sums a Range in Excel

Check a Copilot-written SUM formula in Excel by proving its range covers every row once and nothing else.

Schematic illustration for How to Check a Copilot Formula That Sums a Range in Excel: three numbered steps - Ask Copilot for the sum; Click the range it used; Add the rows by hand.

Copilot in Excel can write a SUM formula from a plain-language request, and Microsoft's own guidance says to review anything Copilot creates before using it. A SUM that stops one row short, or that includes the header, gives a confident wrong total, so the check reads the range itself.

Prerequisites

  • Excel for Microsoft 365 with Copilot
  • A sheet with a numeric column to sum
  • A copy of the source file, so the original stays untouched.

Steps

  1. Convert the data range to a Table with Ctrl+T so Copilot can see named columns.
  2. Ask Copilot to add a total for the column, and let it place the formula.
  3. Click the formula cell and read the range in the formula bar, checking the first and last rows against the table.
  4. Add the column by hand on a calculator or in a check cell with a second SUM over the same range, and compare the two results.
  5. If the ranges differ, correct the formula range yourself and re-check before sharing the sheet.

Worked example: Fictional stationery order totals

The practice table below is a fictional five-item order. Each amount is quantity times unit price, and the total is the sum to check a Copilot SUM against. 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
Envelopes C5, pack of 100 3 4.20 12.60
Copy paper A4 8 5.75 46.00
Highlighters, pack of 6 5 3.10 15.50
Binder clips, box 6 2.40 14.40
Desk trays 2 11.00 22.00
Total 110.50

Expected result. Five rows, each amount equals quantity times unit price, and the checked total is 110.50. UNTESTED: no Copilot formula was generated for this guide; the table shows the expected values a check should produce.

Limits

  • Copilot works on Tables it can see, so a plain range outside a Table may not be covered.
  • A SUM that includes a total row will double-count, so check the last row of the range.

Sources

See all