Fix and Build Spreadsheet Formulas With Gemini in Google Sheets
For Virtual Assistants ·
What This Does
CRM and tracking spreadsheets accumulate messy data and half-built formulas that eat time to fix by hand. Gemini in Google Sheets writes and explains formulas in plain language, and can clean up, sort, or restructure data on request, replacing a search for formula syntax with a direct answer inside the sheet itself.
Before You Start
- You are working in a native Google Sheets file, not an uploaded Excel file. If the client sent an .xlsx file, save it as Google Sheets first (File > Save as Google Sheets) since Gemini works best on native files
- Your account has an eligible Google Workspace or Google AI plan. If you do not see an "Ask Gemini" button at the top right of the sheet, the feature is not enabled on your account, and you will need to check with whoever manages the Workspace subscription
- You have a clear idea of what the formula or cleanup should accomplish before you start typing
Steps
1. Find the AI feature
Open the spreadsheet and click Ask Gemini at the top right of the screen. A side panel opens with suggested prompts or an open text box for your own request. From any cell, you can also jump straight into formula generation by typing "=" and pressing Ctrl+Alt+G on Windows or ChromeOS, or Cmd+Ctrl+G on a Mac.
2. Tell it what you need
Describe the formula in plain English, referencing your actual column names or letters. "Create a formula that sums column D where column B equals 'Closed Won'" works better than a vague request. For cleanup tasks, describe the end state: "sort this by client name, then remove duplicate rows based on email address."
3. Review and use the result
Gemini shows the formula or result in the side panel before it touches your sheet. Click Insert to add it to the selected cell, or Retry to get a different version if the first attempt is not quite right. Check the output against a row or two you already know the answer for, since a formula that looks reasonable can still reference the wrong range.
Real Example
Scenario: A client tracking sheet lists leads with a status column, and you need a running count of how many leads are in each stage without building a formula from scratch.
What you type/do: Click Ask Gemini, then type: "Create a formula that counts how many rows in column C say 'Contacted', 'Proposal Sent', and 'Closed Won' separately."
What you get: A COUNTIF formula for each stage, explained in plain language, with the option to insert all three directly into a small summary table at the top of the sheet.
Tips
- Use named ranges for the columns you reference most often. formulas built around a named range stay readable months later, when Gemini's phrasing has faded from memory
- Ask Gemini to "explain this formula" on anything you did not write yourself, especially formulas left behind by a previous VA or the client, before you build on top of it
- Insert generated output into the sheet as you go. the conversation history disappears if you reload the browser or close the spreadsheet
Before pasting client financial figures, customer lists, or other sensitive data into a prompt, check what the client's own data policy allows you to describe to a third-party AI feature, even one built into the spreadsheet tool they already use.
Tool interfaces change. If a button has moved, look for similar AI/magic/smart options in the same menu area.