Key Takeaways
- The AI assistant turns a plain-language request into a formula you can inspect and test on five rows.
- Similarity functions score near matches, so names that differ by case or suffix can be grouped with a threshold you choose.
- The assistant suggests formulas in the sidebar; it never edits the sheet for you.
- You still decide which pairs describe the same supplier before anything is merged.
Five supplier names become two clean names, and a second prompt adds a similarity score against a master list.
Enter a header in A1 and the five values in A2:A6. Ask the AI assistant for a formula that trims and deduplicates them.
Enter a header in A1 and these five values in A2 to A6. The first three describe one supplier; the last two describe another.
| Cell | Input in column A |
|---|---|
| A2 | Acme Freight Ltd |
| A3 | ACME FREIGHT LIMITED |
| A4 | Acme Freight |
| A5 | Voss and Daughter |
| A6 | voss and daughter |
What you should see: Two distinct supplier names appear in column C, and the scored match returns a region with the score. A threshold is the lowest similarity score at which two values count as the same record.
This page shows one complete pass: five supplier names go in, a prompt returns a formula and two clean names come out. A second prompt adds a similarity score against a master list.
Worked Example: Five Supplier Names
The Prompt and the Returned Formula
Open Extensions > Flookup Data Wrangler > Sheets AI Assistant and type this question:
In A2:A6, supplier names differ by case, spacing and legal suffix. Remove the words LIMITED and LTD, put each value in title case and return only the distinct results.
The AI assistant returns a native Google Sheets formula and a note to place it in an empty column:
=UNIQUE(TRIM(PROPER(SUBSTITUTE(SUBSTITUTE(A2:A6, " LIMITED", ""), " LTD", ""))))
Pasted into C2, it produces two rows:
| Cell | Output in column C | Input rows behind it |
|---|---|---|
| C2 | Acme Freight | A2, A3, A4 |
| C3 | Voss and Daughter | A5, A6 |
The formula is ordinary Sheets syntax, so you can read every step. That is the point of the AI assistant: it proposes a formula for your layout and you check it before applying it.
Add a Scored Match to a Master List
Cleaning removes surface differences. It does not tell you whether Caesar Freight is a misspelling of a supplier already in the master list. Put the master list in D2:E4:
| D: master name | E: region |
|---|---|
| Acme Freight | North |
| Caesar Freight | South |
| Voss and Daughter | East |
Ask a second question in the same session:
For each cleaned name in C2:C3, find the closest name in D2:D4 and return the region from column E together with the similarity score. Use a threshold of 0.75, the lowest score at which a pair counts as a match.
The returned formula uses a Flookup custom function:
=FLOOKUP(C2, $D$2:$E$4, 1, 2, 0.75, "score")
Filled down beside the two cleaned names, it returns the region and a score. An exact string scores 1.00:
| Cleaned name | Returned region | Score |
|---|---|---|
| Acme Freight | North | 1.00 |
| Voss and Daughter | East | 1.00 |
Argument order and threshold behaviour are documented on the custom functions page. Change the threshold on a small sample before you apply it to a long list: a lower value returns more distant pairs and more false ones.
What AI Data Cleaning Means Here
Two capabilities are often grouped under this label. One is an assistant that turns a plain-language request into a formula, as in the first prompt above. The other is a similarity function that scores how close two values are, as in the second prompt. An exact formula answers whether two strings are equal; a similarity score answers how close they are, which is what catches typos and suffix variants.
The assistant runs in the sidebar and suggests formulas for you to review. For a repeated job that needs batch processing and a review trail, use Data Cleaning Automation instead.
Where Human Review Stays
A suggested formula can point at the wrong range or use a rule that does not fit your data. Check it on the five rows above before you fill a long column. With similarity matching, read the borderline band by hand: a threshold that is too low joins unrelated suppliers and one that is too high misses the pairs you wanted.
The assistant uses your own Google Gemini or OpenAI key, saved in the sidebar Settings. Flookup does not supply AI access. The prompt text and the selected range are sent to the provider you choose, and the returned formula appears in the sidebar for you to apply. For setup and current behaviour, see the Sheets AI Assistant documentation.
Frequently Asked Questions
What is AI data cleaning?
In a spreadsheet, AI-assisted cleaning usually means two things: a chat assistant that turns a plain-language request into a formula, and similarity functions that score how close two values are. You review and apply the result.
What does an AI data cleaning tool do in Google Sheets?
The Sheets AI Assistant suggests native formulas and Flookup custom functions for cleaning, lookup and matching. It does not change the sheet. The custom functions then score similarity or return near matches for you to inspect.
Is AI data cleaning better than manual cleaning?
It depends on the dataset. For five tidy rows, direct editing is faster. For a list where names appear in several spellings, similarity scoring finds pairs an exact formula misses, and a person still decides which pairs to merge.
Can I do AI data cleaning in Google Sheets?
Yes. Open Extensions, then Flookup Data Wrangler, then Sheets AI Assistant, describe the task and review the returned formula. The AI assistant uses your own Google Gemini or OpenAI key.
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.
The Flookup features mentioned here are set out in the documentation.