Key Takeaways
- The Sheets AI Assistant suggests formulas using native Google Sheets functions and Flookup custom functions; it does not execute cleaning workflows on your sheet.
- Include ranges, column names and the desired outcome in your prompt to get more relevant formula guidance.
- You can ask follow-up questions in the same session to refine the formula or provide more detail.
- Add your own Google Gemini or OpenAI API key in the AI assistant Settings before your first request.
Ask the Sheets AI Assistant for a formula, then review the suggestion against a known result before applying it.
| Cell | Value |
|---|---|
| A2 | Innovate Corp |
| Sheet2!B2 | Innovate Corporation |
| Sheet2!C2 | Tech |
| B2 result | Tech, 0.48 |
The suggested formula is =FLOOKUP(A2, Sheet2!B2:C100, 1, 2, 0.45, "score"). A threshold is the score a pair must reach before it is treated as a match, and this request uses 0.45.
What you should see: B2 returns Tech with a score of 0.48, so the pair stays visible for review rather than being accepted automatically.
If you know what you want to do in Google Sheets but are not sure which formula to use, the Sheets AI Assistant can help. You describe the task in plain language and the AI assistant suggests a formula, explains how it works and indicates where to place it. You then review and apply the formula yourself.
A Native Formula That Needs No Key
You do not need an AI assistant to write a basic cleaning formula. =PROPER(TRIM(A2)) fixes case and spacing, and =IFERROR(VLOOKUP(A2, Sheet2!B:C, 2, FALSE), "") finds an exact match. Both use built-in functions, so no provider key is involved and the values stay in your sheet.
The AI assistant earns its place when the task combines several functions or uses a Flookup custom function whose signature you do not remember. For a single trim or exact lookup, the native formula is faster to write and easier to check.
What the AI assistant does
The AI assistant covers native Google Sheets functions and Flookup custom functions such as NORMALIZE, FUZZYSIM, FLOOKUP, SHEETMERGE, QLOOKUP, HFLOOKUP, ULIST and DEDUPE. It can combine native and Flookup functions in one formula when that fits the task.
The AI assistant provides guidance and formulas. It does not edit cells, run multi-step workflows or apply changes automatically. For supported large batch jobs, use Data Cleaning Automation.
Open the AI assistant
In Google Sheets, open Extensions > Flookup Data Wrangler > Sheets AI Assistant. The sidebar opens on a prompt box with a Settings link.
Set Up Your Key First
The AI assistant uses your own AI provider account. In the sidebar, open Settings, choose Google Gemini or OpenAI, paste your API key and select Save key. The sidebar status shows when the selected provider is ready to use. Your key is stored in your Google account and is sent only to the provider you choose. Flookup does not supply AI access.
Do this before the first prompt. Without a saved key the assistant cannot return a formula.
Write Effective Prompts
Good prompts describe the task, the data location and the expected result. Include sheet names, ranges or column letters where possible.
- Task: what you want to find, clean, match, compare or deduplicate.
- Ranges: where the source values and lookup or comparison data live, for example
A2:AandSheet2!A2:D. - Outcome: what the formula should return, such as a best match, a similarity score, a cleaned value or a unique list.
If the first suggestion is close but not quite right, ask a follow-up question in the same session. For example, you can ask the AI assistant to ignore blanks, handle text dates or adjust the formula for a different column.
A Worked Prompt and Its Formula
Suppose cell A2 holds Innovate Corp and a master table in Sheet2!B2:C100 holds company names in column B and industries in column C. The requested result is the closest master name with its similarity score, accepting matches from 0.45 upward.
Prompt: “In cell B2, find the closest company name in Sheet2 column B to the value in A2, return the industry from column C and show the similarity score. Use a threshold of 0.45.”
A suitable suggestion is:
=FLOOKUP(A2, Sheet2!B2:C100, 1, 2, 0.45, "score")
The master row reads Innovate Corporation with industry Tech, so the returned result is {"Tech", 0.48}. The four cells and that result are shown at the top of this article. The source cell is the key column, the value used to identify each row, and the score lets you judge the candidate before accepting it.
Other useful prompts follow the same pattern. “Normalise company names in A2:A by removing punctuation” can return a formula using NORMALIZE. “Extract a unique list from C2:C by similarity” can return ULIST. Custom functions documentation gives the exact signatures, which is where you check any suggestion before applying it.
Review and Apply Suggestions
Always review suggested formulas before applying them to important data. Paste the formula in a test column, check a few known cases and confirm that ranges, column indexes and thresholds match your sheet. For fuzzy matching, start with a threshold that fits your data and adjust after reviewing results.
If you need to process a large dataset in scheduled chunks, see Data Cleaning Automation. If you need to pull or write back records from supported sources, use the connectors in Flookup Desktop. The Desktop connectors guide covers the shared rules and the connector reference describes each source.
Frequently Asked Questions
How does the Sheets AI Assistant work?
The Sheets AI Assistant helps you write formulas in Google Sheets. Describe what you want to do and it suggests formulas using native Google Sheets functions, Flookup custom functions or a combination of both, with guidance on how to apply them.
Does the AI assistant change my sheet automatically?
No. The AI assistant provides formulas and placement guidance. You review and apply them in your sheet.
Do I need my own AI account?
Yes. In the AI assistant Settings, choose Google Gemini or OpenAI, paste the API key from your provider account and save it. Flookup does not supply AI access.
You Might Also Like
About the Author
Andrew Apell is the creator of Flookup Data Wrangler and has built data cleaning tools for Google Sheets since 2018. This guide explains how to use the Sheets AI Assistant to get formula suggestions for cleaning, matching and deduplication tasks.
See the Sheets AI Assistant documentation and custom functions documentation for current behaviour and syntax.
Read
Our Story
for the background or
contact the team
with any questions about this post.