सामग्री पर जाएँ

लेसन 11 · Gemini in Google Workspace

Gemini in Google Sheets

Use Gemini in Sheets to build tables, formulas and charts, apply the AI function to text columns, know its limits and verify results before you use them.

Spreadsheets are a natural fit for AI help. People often know what they want but not the formula for it. In Google Sheets, Gemini offers a side panel and an AI function that you type into a cell. Both need an eligible plan or program, and availability depends on language and admin settings. Facts are as of December 2026.

The side panel

Google's help page lists abilities such as:

  • Creating tables, formulas and charts.
  • Summarizing and explaining a sheet, with analysis and insights.
  • Editing through prompts: conditional formatting, dropdowns, pivot tables, filters, sorting and more.
  • Fixing formula errors.
  • Analyzing large data connected through BigQuery, which needs the right access and a billing project.

It works best with native Google Sheets files, so convert Excel files first. The same page says charts made from ordinary sheet data do not update when that data changes, so check a chart before you share it.

TEXT
Add a column "Margin %" = (Revenue - Cost) / Revenue, formatted as percent.
Then highlight rows where the margin is below 15%.

Make a copy of an important sheet before large edits, and use version history to compare.

The AI function

The AI function applies a prompt to cell data:

TEXT
=AI("Classify this comment as Positive, Negative or Neutral. Reply with one word.", B2)

According to Google's help page, =Gemini() works as an alias. The first argument is the instruction. The optional second argument is a cell or range, and Google recommends passing data that way. Important limits from that page:

  • Output is text only.
  • The function cannot see your whole spreadsheet or other Drive files, so reference the data you need.
  • It cannot be nested inside formulas such as IF.
  • Only the first 350 selected cells with AI functions are generated in one batch.
  • There are short-term and long-term generation limits.
  • You cannot undo or redo a generation, but you can regenerate it.

Because results are generated, regenerating a cell can give a different answer. After you check results that must stay fixed, consider pasting them as values.

Write instructions that produce clean cells

For labels that you will count or filter, force a small vocabulary:

TEXT
=AI("Reply with exactly one of: delivery, billing, quality, other. Comment:", B2)

Then check that the column contains only allowed values. If the AI formula is in column C, an ordinary formula in column D can do it:

TEXT
=IF(OR(LOWER(TRIM(C2))="delivery", LOWER(TRIM(C2))="billing",
       LOWER(TRIM(C2))="quality", LOWER(TRIM(C2))="other"), "ok", "check")

The check lives in a separate cell and contains no AI call, so nothing is nested.

Python Stand-in: validate AI-labeled cells

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Measure accuracy on a sample

Before you rely on labels for thousands of rows, take a random sample, label it yourself and compare. Decide in advance what error rate is acceptable for your use. Read the wrong rows to improve the instruction.

Python Compare AI labels with your own sample

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Six rows are far too few for a real decision. The code only shows the method.

Use formulas for math

AI cells are for language tasks such as classifying, extracting, summarizing and rewriting. For sums, averages and lookups, use ordinary formulas. They are exact, repeatable and do not use AI generation limits. You can ask Gemini to write the formula, and then read it:

TEXT
Write a formula that sums column D where column B is "North" and the date
in column C is in 2026. Explain each part and give a test I can check by hand.

For deeper data work, learning some SQL or Python also pays off.

Trust and data

  • Test a suggested formula on a few rows where you know the answer.
  • Remove personal data you do not need before labeling.
  • If a result affects a person (hiring, grading, credit), do not rely on generated labels. Follow your organization's rules and keep a human responsible.

Prepare the data first

Clean input produces more useful output. Before you ask for formulas or labels:

  1. Put one header row at the top, with short, distinct names.
  2. Keep one kind of value in each column, such as only dates in a date column.
  3. Remove blank rows and totals from the middle of the data.
  4. Check for numbers stored as text.
  5. Keep an untouched copy of the original data on a separate tab.

When you ask the side panel for a change, name the columns and say what should happen to exceptions, for example "Leave Margin empty when Revenue is zero or blank." Then test exactly those rows. Exceptions are where a formula that looks right most often fails.

Write the prompt that you used in a note near AI-generated columns, together with the date and the sample check. A colleague can then see which values were generated, how they were checked and why they should not be treated like typed data.

Common mistake: filling an AI formula down a whole column and reporting percentages without checking a sample. Wrongly labeled rows look exactly like correct ones.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. Which task suits the AI function best?

    Language tasks fit AI cells. Arithmetic belongs to ordinary formulas.
  2. 2. What does Google's help page say about nesting the AI function inside IF?

    Put validation in a separate cell instead.
  3. 3. Why label a sample by hand?

    Sampling tells you the quality of the output on your data.

Summary

  • The side panel builds and edits sheets. Check its changes and charts.
  • The AI function returns text from a prompt and referenced cells, with real limits.
  • Restrict outputs to allowed values and validate them in separate cells.
  • Use formulas for math, and keep humans responsible for decisions about people.

Next: Deep Research

आपकी प्रगति इसी ब्राउज़र में सेव होती है। खाते की ज़रूरत नहीं है।