PLAIN-ENGLISH EXPLAINER

How to Clean Up Data with Gemini in Google Sheets

The data isn't wrong. It's just never been organized by someone who had the time to do it properly.

If you have inherited a spreadsheet full of inconsistent formatting, unclear structure, or data that needs a formula you don't want to write by hand, Google Gemini in Google Sheets can build that formula, format a range, and turn a messy table into something usable. This guide covers opening Gemini in a spreadsheet, building formulas and tables from your existing data, formatting a specific range correctly, who actually has access to the feature, and what to double-check before you trust the result.

To clean up data with Google Gemini in Google Sheets, open your spreadsheet and click the Ask Gemini button at the top right. Gemini in Google Sheets can create tables, create formulas, and summarize your files from Drive, and it can generate a formula that looks up a value in a range and returns a result from another column, or apply formatting to a specific range, such as currency formatting to a column. Access depends on your account: the feature requires an eligible Google Workspace or Google AI plan.

Published

Key Takeaways

  • You open Gemini in Sheets by clicking the Ask Gemini button at the top right of a spreadsheet.
  • Gemini can build formulas directly, including a lookup formula that finds a value in one range and returns a result from another column.
  • You can ask Gemini to format a specific range, such as applying currency formatting to a column, instead of formatting cells by hand one at a time.
  • Access depends on your account: Gemini in Sheets requires an eligible Google Workspace or Google AI plan.
  • Conversations with Gemini in Sheets are not saved to Gemini Apps Activity, which is a separate question from whether your organization can see the spreadsheet itself.

Copy and Paste

Prompts You Can Use Today

Turn a messy range into a working formula

Looking at this table, build a formula that looks up each customer name in the first range and returns the matching account manager from the second range, and explain what the formula does so I can check it against a row I already know the answer for.

Name the exact ranges you mean rather than describing the table in general terms, so Gemini builds a formula against the right columns.

Format a specific range instead of the whole sheet

Apply currency formatting to the column that contains the transaction amounts in this range, without changing the formatting of any other column in the sheet, so the rest of the table stays exactly as it is.

Being specific about which range to format keeps Gemini from reformatting columns you did not ask about.

Get oriented in a spreadsheet you did not build

Summarize what this spreadsheet contains, what each column appears to represent based on the data in it, and whether you notice any rows where the data looks inconsistent or incomplete compared to the rest of the table.

A good first move whenever you open a spreadsheet someone else built and need to understand it before cleaning anything up.

Build a table from raw, unstructured data

Using the data in this range, create a table that organizes it into clear columns with headers, and tell me if any row doesn't fit the structure you chose so I can look at it separately before relying on the table.

Useful when a range of data was pasted in without consistent structure and needs to become an actual table.

WHAT GEMINI ACTUALLY DOES HERE

The core moves for organizing a messy spreadsheet

Building formulas, turning raw data into tables, and formatting a range correctly, all from one panel.

Lives behind one button

You open a spreadsheet and click the Ask Gemini button at the top right, which opens the panel where every example in this guide happens.

Builds formulas, not just suggestions

Gemini in Google Sheets can create tables, create formulas, and summarize your files from Drive, working directly against the data already in your spreadsheet.

Can look values up across ranges

It can create formulas and fill ranges, including an example that finds a value in a range and returns a result from another column.

Formats a range on request

You can ask Gemini to format a specific data range, such as applying currency formatting to a column, instead of reformatting cells by hand.

OPENING GEMINI IN A SPREADSHEET

Where to find it, and what it can already see

You open a spreadsheet and click the Ask Gemini button at the top right. That one click opens a panel next to your sheet where you describe what you need in plain language, the same way you would describe a cleanup task to a colleague sitting next to you.

Because the panel sits next to the actual spreadsheet, Gemini is working against the real data already in your tabs, not a copy or an export you have to prepare first. This matters for cleanup tasks specifically, since most of the value comes from Gemini seeing the actual inconsistencies in your real data rather than a simplified description of them.

A good first move in any spreadsheet you did not build yourself is asking a general orientation question before you ask for any specific fix. Understanding what each column represents and whether anything already looks inconsistent gives you a baseline to judge later suggestions against, rather than cleaning up a table you do not yet understand.

Once you have that baseline, the rest of the cleanup work generally falls into two categories: building a formula that calculates or looks something up correctly, and formatting a range so it reads clearly and consistently. The next two sections cover each one.

BUILDING FORMULAS FROM YOUR DATA

Turning a described calculation into a real formula

Gemini in Google Sheets can create tables, create formulas, and summarize your files from Drive, which covers a lot of the manual work that usually goes into cleaning up a spreadsheet: writing a lookup, building a calculated column, or pulling scattered data into one organized table.

One of the most useful patterns is asking for a formula that looks up a value in a range and returns a result from another column, which is the same underlying task as a manual lookup formula, except you describe what you want in plain language instead of remembering the exact syntax yourself.

The quality of the result depends on how specifically you describe the ranges involved. Naming the exact columns you mean, rather than describing the table in general terms, keeps Gemini from guessing which range you are actually referring to, especially in a sheet with multiple similar-looking columns.

Once a formula comes back, treat it the same way you would treat a formula a colleague handed you: check it against a row where you already know the correct answer before you trust it across the rest of the table. This single check catches most mismatched-range mistakes before they spread.

FORMATTING A RANGE CORRECTLY

Getting consistent formatting without doing it cell by cell

A spreadsheet can have perfectly correct data and still be hard to read, because the formatting is inconsistent: some numbers display as currency, others as plain numbers, and a few as text that looks like a number but behaves differently in a formula.

You can ask Gemini to apply formatting to a specific range, such as applying currency formatting to a column, and it applies that formatting across the range you named rather than requiring you to select each cell manually. This is a small thing individually, but it adds up across a spreadsheet with many columns that have drifted out of consistent formatting over time.

Being precise about the range matters here just as much as it does for formulas. Describing the exact column or range you want formatted keeps the change contained to that part of the sheet, instead of risking a broader reformat that touches columns you did not intend to change.

After a formatting request, scan the range you asked about to confirm it now matches what you expected, especially if the column mixes genuinely numeric values with entries that were typed in as text. Formatting that looks correct at a glance can still behave differently in a formula if the underlying values were never real numbers to begin with.

WHO CAN ACTUALLY USE THIS

Access depends on the kind of account you're on

Work, school, and personal accounts reach Gemini in Sheets through different paths.

Requires an eligible plan

Gemini in Sheets requires an eligible Google Workspace or Google AI plan. Which plans qualify can change, so check your account's current access if you don't see Ask Gemini.

A trusted-tester program exists too

Google also runs a trusted-tester program for some accounts, a separate path from the standard plan requirement.

Privacy stays consistent either way

Conversations with Gemini in Sheets are not saved to Gemini Apps Activity, regardless of which path gave you access to the feature.

WHAT TO CHECK BY HAND

Where this breaks down, and what stays on you

A formula or a formatting change from Gemini is a strong first attempt, not a guaranteed-correct one. The single most important habit is checking a new formula against at least one row where you already know the right answer before you let it run across an entire column of real data.

If you don't see the Ask Gemini button at all, the most likely explanation is access rather than a bug: the feature requires an eligible Google Workspace or Google AI plan, so check whether your account currently has one before assuming something is broken. Google also runs a separate trusted-tester program for some accounts, so a colleague on what looks like the same plan as you can sometimes have access you don't yet, simply because they were added to that program first.

Formatting requests deserve their own quick check too, particularly on columns that mix real numbers with values that were typed in as plain text. A range can look correctly formatted while still behaving incorrectly in a formula that references it, so a glance at how the formatted column behaves in a calculation is worth the extra minute.

Used well, cleaning up data this way turns a tedious, error-prone manual task into something you describe once and then verify, rather than something you do cell by cell from scratch. The verification step is what keeps that trade a genuine time save instead of a new source of quiet mistakes in a spreadsheet other people rely on.

This matters most for the spreadsheets that outlive the person who first built them, the ones that get copied, extended, and handed off long after the original structure made sense to whoever set it up. A formula you can explain, and a formatting choice you deliberately verified, are both far easier for the next person to trust and extend than a column of numbers nobody can account for.

A clean spreadsheet is only useful if the formulas are actually right

Getting Gemini to build a formula or reformat a range in seconds is the easy part. Knowing how to describe a range precisely, and how to check the result before it feeds a decision, is what actually makes the spreadsheet trustworthy. The first week of Nightschool AI's Gemini course is built around real spreadsheet tasks like this one.

Frequently Asked Questions

How do I open Gemini in Google Sheets?

Open a spreadsheet and click the Ask Gemini button at the top right. That opens the panel where you can ask Gemini to build formulas, create tables, or format a range of your data.

Can Gemini actually write a formula for me, or just explain one?

It can write one directly. Gemini in Google Sheets can create tables, create formulas, and summarize your files from Drive, including a lookup formula that finds a value in a range and returns a result from another column.

Can I ask Gemini to format a specific range instead of the whole sheet?

Yes. You can ask Gemini to apply formatting to a specific data range, such as applying currency formatting to a column, and it stays limited to the range you named rather than reformatting the entire sheet.

Who has access to Gemini in Google Sheets?

Gemini in Sheets requires an eligible Google Workspace or Google AI plan. If you don't see Ask Gemini, check whether your account currently has one.

Is it safe to clean up sensitive company data with Gemini in Sheets?

Conversations with Gemini in Sheets are not saved to Gemini Apps Activity, but that is a question about activity logging, not about your organization's own data handling rules, which you should still follow for sensitive spreadsheets.

How do I check if a Gemini-built formula is actually correct?

Test it against at least one row where you already know the correct answer before trusting it across the rest of the column. This catches most mismatched-range or logic mistakes before they spread through the whole table.

Can Gemini turn messy, unstructured data into an organized table?

Yes. Gemini in Google Sheets can create tables from your existing data, and describing the range you want organized, along with any inconsistent rows you have already noticed, helps it build a table you can trust.

Stop reformatting the same columns by hand every time

A precise range, a quick formula check, and the rest of your spreadsheet stays trustworthy.

Nightschool AI is an independent learning platform and is not affiliated with, endorsed by, or sponsored by Anthropic. Claude is a trademark of Anthropic, PBC. Looking for Anthropic's official Claude Academy? It's at academy.claude.com.