Gemini in Google Sheets: 8 Practice Exercises (With Answers)
8 hands-on exercises for Gemini in Google Sheets on one practice file. Type the prompt, then check Gemini's answer: the Check tab says Correct! or Try again. No Gemini plan? Every exercise also has a formula route that uses the same check.
The practice file. Tabs: START HERE, Exercises (every prompt and formula route), Exercise 1, Clean data, Sales (300 orders), Orders and Check. Answers included: yes, the Check tab marks each one.
Before you start
- A plan with Gemini. Google says Gemini in Sheets requires an eligible Google Workspace or Google AI plan, such as Google AI Pro or Ultra, or Workspace Business or Enterprise Standard and Plus (Google Help). It works in English and 28 other languages (Workspace Updates, 18 Jun 2026). Don't see it? Gemini not showing in Google Sheets: 10 fixes.
- Open the file as a Google Sheet. Upload the .xlsx to Google Drive, open it, then choose File > Save as Google Sheets. Gemini works best on a native Google Sheet.
- Ask Gemini is the button at the top right of the sheet. It opens the Gemini panel, where you paste the prompts below.
No Gemini? Do the "formula route" of each exercise instead. It works on a free Google account (and most of it in Excel), and the Check tab marks it the same way.
Exercise 1: Clean up a messy export
Column A holds a sales export that landed in one column: uneven spacing and regions typed three ways. Split it into six columns and clean up the regions. Prompt:
Split column A into separate columns: Date, Region, Rep, Product, Units, Revenue. Fix the capitalization in Region and format Revenue as dollars
Check it: on the Check tab, exercise 1 turns Correct! when columns A to F hold the 12 rows, every region is in proper case (North, not NORTH) and Revenue in column F totals 16,685.
No Gemini? Do it with a formula
Select column A and choose Data > Data cleanup > Trim whitespace first (the export has double spaces), then Data > Split text to columns, separator: space. In Excel: Data > Text to Columns > Delimited > Space and tick Treat consecutive delimiters as one. Then fix the regions: type =PROPER(B2) in a free column, fill it down to row 13, copy those cells and paste them as values over B2:B13. Delete the helper column.
Solution
Six columns, Date to Revenue, with North, South, East and West spelled the same everywhere. =SUM(F2:F13) gives 16685.
Exercise 2: Ask your data who drives the revenue
Ask Gemini for the top rep and the top product. Then type the names and the two amounts in the yellow cells on the Check tab (rows 2a to 2d). Prompt:
Which rep and which product drive the most revenue? Give me 3 insights
Check it: on the Check tab, rows 2a-2d (top rep, the rep's revenue, top product, the product's revenue).
No Gemini? Do it with a formula
=SUMIF(C2:C13,"Dave",F2:F13) =SUMIF(D2:D13,"Laptop",F2:F13)
Try the other reps and products too, and keep the highest.
Solution
Dave is the top rep with 6750. Laptop is the top product with 12000.
Exercise 3: Let Gemini fix a formula error
Type this broken lookup in I2. It shows a #REF! error. Click the cell, then the Gemini button next to it to fix it, and insert the fixed formula.
=VLOOKUP("Dave", C2:F13, 5, FALSE)
Check it: on the Check tab, exercise 3 turns Correct! when I2 shows Dave's first sale.
No Gemini? Do it with a formula
The range C:F is only four columns wide, so there is no fifth column. Change the 5 into a 4.
Solution
=VLOOKUP("Dave", C2:F13, 4, FALSE)
I2 shows 3600, Dave's first sale.
Exercise 4: The AI function: categorize every product
Type the header Category in G1. Put this in G2 and fill it down to G13. Then read every row. More on the function: AI function not available? 8 fixes.
=AI("Is this product a Computer, Screen or Accessory? Answer with one word", D2)
Check it: on the Check tab, exercise 4 counts the labels in G2:G13.
No Gemini? Do it with a formula
=IFS(D2="Laptop","Computer",D2="Monitor","Screen",TRUE,"Accessory")
Fill it down to G13. The lesson is the same: an AI label is only right if you read it.
Solution
5 x Computer (the laptops), 3 x Screen (the monitors) and 4 x Accessory (mice and keyboards). A label like "Computer." with a full stop does not count: fix it.
Exercise 5: Highlight with a prompt
Ask Gemini to mark the big sales. Then count the green rows and type the number on the Check tab (exercise 5). Prompt:
Highlight Revenue over 1000 in green and bold
Check it: exercise 5 on the Check tab (the number of green rows).
No Gemini? Do it with a formula
Format > Conditional formatting, range F2:F13, "Custom formula is" =$F2>1000, green and bold. Count them with:
=COUNTIF(F2:F13,">1000")
Solution
6 rows. A sale of exactly 1,000 is not "over 1000", so it stays white.
Exercise 6: Summarize 300 orders
The Sales tab has 300 orders from January to September 2026. Ask for a short summary, then type the total revenue, the number of orders and the top region in rows 6a to 6c. Prompt:
Summarize this sales data in 4 bullets: the date range, the number of orders, total revenue, and the region with the most revenue
Check it: on the Check tab, rows 6a-6c.
No Gemini? Do it with a formula
=SUM(F2:F301) =COUNTA(A2:A301) =QUERY(A1:F301, "select B, sum(F) where B is not null group by B order by sum(F) desc")
GROUPBY is Excel-only; in Google Sheets, QUERY (or a SUMIF per region) does the same.
Solution
Total revenue 259175, 300 orders, and East is the top region (69,850).
Exercise 7: Find the outlier
One order is very different from the rest. Let Gemini find and mark it. Type its row number and the total without it in rows 7a and 7b. Prompt:
Find orders that are very different from the rest and highlight those rows in yellow
Check it: on the Check tab, rows 7a-7b.
No Gemini? Do it with a formula
=MAX(E2:E301) =MATCH(MAX(E2:E301),E1:E301,0) =COUNTIF(E2:E301,">20")
MATCH gives the sheet row of the biggest order; COUNTIF shows that it is the only order over 20 units. Then take it out of the total: =SUM(F2:F301)-F<that row>.
Solution
Row 129: 120 office chairs on 14 May (a typo for 12?). Without it, total revenue is 225575.
Exercise 8: Delete blank rows
The order list has 20 orders and 8 blank rows in between. Remove the blank rows without losing an order. Prompt:
Delete all the blank rows in this table
Check it: on the Check tab, exercise 8 turns Correct! when A2:A21 holds 20 orders and no blank cell.
No Gemini? Do it with a formula
Not a formula this time: Data > Create a filter, filter column A on (Blanks), select the blank rows, right-click > Delete selected rows, then remove the filter.
Solution
20 orders, 0 blank rows. The helper cells on the tab say the same: Orders stays 20, Blank rows goes from 8 to 0.
Check your answers
The Check tab has one row per answer: what to check, a yellow cell for your answer where you need to type one, and a result that turns green (Correct!) or red (Try again). Exercises 1, 3, 4 and 8 read the other tabs themselves. The score at the bottom counts your green rows. This is what it looks like with three answers filled in:
| Exercise | What to check | Your answer | Result |
|---|---|---|---|
| 1 | Exercise 1 tab: the 12 rows split into A:F, Region in proper case, Revenue in column F totals 16,685 | (checked in the sheet) | Correct! |
| 2a | Clean data: the rep with the most revenue (type the name) | Dave | Correct! |
| 2b | That rep's total revenue (type the number) | 6500 | Try again |
| … | … | … | … |
| Score | 2 of 14 correct | ||
The check tests numbers in the sheet or the numbers you type, never Gemini's wording: that changes every time you run a prompt.
Watch the tricks first
Exercises 1 to 5 come from this video. The written version is How to Use Gemini in Google Sheets: 7 New Tricks.
Exercises 6 and 7: How to Analyze Data in Google Sheets Using AI (Gemini, 6 Prompts). Exercise 8: Delete Blank Rows in Google Sheets with Gemini (Short).
FAQ
Do I need a paid plan for these exercises?
For the Gemini route, yes: Google says Gemini in Sheets requires an eligible Google Workspace or Google AI plan, such as Google AI Pro or Ultra, or Workspace Business or Enterprise Standard and Plus. Every exercise also has a formula route that works on a free Google account, and it uses the same check cell.
What prompts work best in Google Sheets?
Name the columns you mean, say what you don't want ("Only the chart, no extra text") and ask for a fixed format ("Answer with one word"). Those are our own rules from the prompts on this page. Google's prompt help names four areas: persona, task, context and format.
Can Gemini write formulas in Google Sheets?
Yes. The AI function puts Gemini inside a cell (exercise 4), and the Gemini Fix button repairs a broken formula and explains why (exercise 3). If =AI() gives an error, see AI function not available? 8 fixes.
Why does my check say "Try again" when Gemini looks right?
Gemini can skip a row, write a number as text or put the result in a different column. That is exactly why you check: read every row, fix what is off, and the check cell turns green.
Sources, checked on 30 Nov 2026: Google Help: Collaborate with Gemini in Google Sheets · Workspace Updates, 18 Jun 2026 · Google Help: Learn about prompts for Gemini.
Next
Done all 8? The free Formula Pack is a 3-page cheat sheet of the 2026 functions plus every practice file from the videos.