Gemini in Google Sheets can create formulas from a plain prompt, such as dividing goals by games, and Google's help page shows exactly that example. A division formula is easy to get backwards, and a zero in the divisor breaks it, so the check tests the formula on values whose answer is already known.
Prerequisites
- Google Sheets with Gemini
- A sheet with two numeric columns to divide
- A copy of the source file, so the original stays untouched.
Steps
- Ask Gemini to create the division formula, naming the two columns in plain words.
- Read the formula Gemini returns and check which column is the numerator and which is the divisor.
- Test the formula on a row whose answer you already know, such as 100 divided by 4 giving 25.
- Wrap the formula in IFERROR so a zero divisor shows a clear message instead of an error.
- Copy the checked formula down the column and spot-check three more rows by hand.
Worked example: Fictional charity fun-run sponsorship
The practice table below is a fictional five-runner sponsorship list. The per-lap column is the total raised divided by laps run, and the total is the sum of the raised column. 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.
| Runner | Raised | Laps | Per lap |
|---|---|---|---|
| Amara | 120.00 | 6 | 20.00 |
| Ben | 90.00 | 5 | 18.00 |
| Clara | 150.00 | 10 | 15.00 |
| Dev | 80.00 | 4 | 20.00 |
| Elena | 110.00 | 5 | 22.00 |
| Total | 550.00 |
Expected result. Five runners, each per-lap value equals raised divided by laps, and the raised total is 550.00. UNTESTED: no Gemini formula was generated for this guide; the table shows the expected values a check should produce.
Limits
- Gemini needs an eligible Google Workspace or Google AI plan, so the feature may not appear on every account.
- A formula that divides by a blank cell returns an error, so guard it or fill the blanks first.
