Sub topic 11
Checking Results Against Your Data
This chapter assumes you can use cells, rows, columns, and ranges in Google Sheets. You should also know simple formulas such as SUM and IF, and you should have access to Gemini in Sheets.
Gemini can suggest a formula, table, or chart quickly. A suggestion is not proof that the result is correct. Check the output against the source data before you use it for a report or decision.
Start with a small test case
Test a generated formula on a few rows where you can calculate the answer yourself. A small test makes errors easier to find.
Suppose your sheet has this data:
| Date | Category | Description | Amount | Paid By |
|---|---|---|---|---|
| 2026-01-03 | Groceries | Market | 40 | Ana |
| 2026-01-05 | Travel | Bus pass | 25 | Lee |
| 2026-01-08 | Groceries | Bakery | 15 | Ana |
If Gemini suggests this formula for the total spent on groceries, enter it in an empty cell:
=SUMIF(B2:B4, "Groceries", D2:D4)Calculate the same result manually: 40 + 15 = 55. The formula should return 55.
A useful check compares the formula result with an expected value:
=IF(SUMIF(B2:B4, "Groceries", D2:D4)=55, "Check passed", "Check failed")This test does not prove that every future row will work. It does show that the formula matches the current data and criteria.
Check the formula's meaning
Read the formula from the inside out. For SUMIF, identify these parts:
B2:B4is the range that contains the condition."Groceries"is the condition.D2:D4is the range to add.
Check that the ranges have matching rows. If the condition range is B2:B100 but the amount range is D2:D50, later rows may be ignored or produce confusing results.
Ask Gemini to explain the formula in plain language before applying it:
Explain this formula. Identify the condition range, the condition, the value range, and any rows it excludes: =SUMIF(B2:B4, "Groceries", D2:D4)Do not accept an explanation that does not match the actual cell references. The formula itself is the source to inspect.
Verify totals and missing data
Compare a generated summary with a direct total. For example, this formula adds every amount:
=SUM(D2:D4)The result should be 80. If a category summary adds to a different number, investigate before changing the formula.
Common causes include:
- Amounts stored as text instead of numbers.
- Blank or misspelled category values.
- A range that stops before the last row.
- Filters or hidden rows that you did not intend to exclude.
- A formula that treats blank rows differently from your expectation.
For a larger sheet, ask Gemini to state its assumptions:
Check this formula for missing rows, text amounts, blank categories, and header-row handling. Explain each risk and suggest a test case.Check generated charts
Verify a chart in three stages:
- Confirm that the chart uses the intended range, such as
A1:E50. - Confirm that the category column supplies labels and the amount column supplies values.
- Compare one or two chart values with the source cells or a summary formula.
If a chart shows totals by category, create a small summary table first. Then compare each chart bar with the corresponding summary value. A chart can look reasonable while using the wrong series, including a date or identifier column.
Revise instead of starting over
Use a follow-up prompt that names the exact problem:
The total is missing rows 51 through 60. Update the formula to use rows 2 through 60, keep the header out of the calculation, and explain the change.After Gemini proposes a change, repeat the small test and the independent comparison. Manual edits are often faster for a simple range correction, but record what you changed so another person can understand the sheet.
Exercise
Your source data has amounts in D2:D20, but Gemini creates a formula using D2:D10. What should you do first?
Show answer
Compare the formula with the actual data range, update it to include the intended rows, and test the revised result against a manual or independent total.