Sub topic 12
Refining Gemini Results with Follow-Up Prompts and Manual Edits
This chapter assumes that you can open Gemini in Google Sheets, select cells and ranges, and use simple formulas such as SUM and IF. You should also have a sheet with headers in row 1 and one record per row.
Gemini's first result is a starting point. Treat it as a draft that you inspect, test, and adjust. A useful workflow is:
- Ask for one specific result.
- Inspect the generated table, formula, or chart.
- Describe the exact change you need.
- Apply the revised result.
- Make small manual edits when they are faster or safer.
Write follow-up prompts that name the change
A follow-up prompt works best when it identifies the current result and gives a precise modification. Avoid saying only “fix this” or “make it better.” Name the column, range, condition, or chart element.
For example, suppose Gemini created a spending summary with Category and Total columns. You could ask:
Sort the summary by Total from largest to smallest. Keep the header row, and format Total as currency.If a generated formula includes empty rows as zeroes, ask for the edge-case behavior directly:
Revise the formula in F2 so it returns a blank when D2 is blank. Otherwise, calculate Amount plus 10% tax. Use the result down column F.You can also ask Gemini to explain the change before applying it:
Explain what changed in the revised formula and identify which cells it reads.That explanation gives you a chance to catch an incorrect range or assumption.
Use a refinement cycle
A refinement cycle separates generation from approval. The following pattern applies to tables, formulas, and charts.
Inspect both the content and the structure. For a table, check header names, column order, and whether the number of rows is reasonable. For a formula, check its references and behavior on blank or unusual rows. For a chart, check the selected range, series, axis labels, and title.
Know when to edit manually
Manual edits are often appropriate for small presentation changes. You might rename a header, resize a column, change a chart title, or apply a number format yourself. These actions do not require a new prompt.
Use a follow-up prompt when the change affects logic or many cells. For example, changing a formula from a fixed range to an expanding range is easier to request explicitly:
Update the formula so it includes new rows added below row 50. Keep the same Category condition and leave the result blank when Amount is empty.Use manual editing after Gemini produces a correct formula but places it in the wrong cell. Move or copy the formula only after checking its references. Relative references can change when a formula moves.
| Result type | Inspect first | Manual edit that is usually safe |
|---|---|---|
| Table | Headers, row meaning, and data types | Rename a header or adjust column width |
| Formula | References, conditions, and blank-row behavior | Copy a tested formula to an adjacent cell |
| Chart | Range, series, labels, and title | Change colors, title text, or size |
Preserve a known-good result
Before a major refinement, duplicate the sheet or copy the original formula to a note area. Make one logical change at a time. If the revised result fails a test, return to the known-good version instead of stacking more corrections onto it.
A useful prompt can request a constrained change:
Change only the chart type from column chart to line chart. Keep the source range, series, title, and axis labels unchanged.This reduces unintended changes. After every revision, compare the result with the original requirement and test at least one normal case and one edge case.
Exercise
Gemini created a chart with the correct title but included the Date column as a data series. What follow-up prompt should you write?
Show answer
Ask: “Keep the current title, but use Category as the grouping and Amount as the only data series. Exclude Date from the chart range or series.”