Collaborate with Gemini in Google Sheets

With Gemini in Google Sheets, you can:

  • Create tables.
  • Create formulas.
  • Generate data analysis and insights.
  • Build charts and graphs.
  • Summarise your emails and files from Drive and Gmail.

Feature availability

Get started with Gemini in Sheets

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
  3. In the side panel, select a suggested prompt or write your own prompt. Select a suggestion
    1. Select from the list of suggestions.
      • To get more options, select More suggestions.
    2. At the bottom, in the prompt box, replace the example text with the information that you want.
    3. Press Enter.
    Enter a prompt in Gemini
    1. At the bottom, in the prompt box, enter a prompt.
    2. Press Enter.
  4. Optional: To remove your history, click More options More and then Clear history.

Tip:

  • To avoid losing your history, insert generated output in the spreadsheet. You lose your conversation history when:
    • You reload your browser.
    • You close and reopen the spreadsheet.
    • Your computer goes offline.
  • Gemini in Sheets can currently only reference one range at a time. To get the best results when generating output, make sure that your cursor is placed in a cell within the range of data that you want Gemini to use in its response.

Explore Gemini in Sheets

Action

Description

Ask Gemini

Open Gemini.

More options More

Clear your recent Gemini history and ask for more suggestions.

Expand

Make Gemini larger.

Collapse

Return Gemini to its original size.

Close Close

Close Gemini.

Clear history

Remove all generated text and images that you did not insert into the document yet.

More suggestions

Find more suggestions from Gemini.

More image suggestions

Find more suggestions of images from Gemini.

Insert

Insert generated text into your spreadsheet.

Insert image

Insert a generated image into your spreadsheet.

Copy

Copy a suggestion.

Retry

Generate a different response from Gemini.

Retry with Google Search Search on Google for more information about your question or request.

View more

View more of the response from Gemini.

View less

Minimise the response from Gemini.

Good suggestion

Give positive feedback about a response from Gemini.

Bad suggestion

Report an issue with a response from Gemini.

Show code Show code used to generate the output.
Hide code Hide code used to generate the output.

Things to ask Gemini in Sheets

Summarise spreadsheet with Gemini

When you open a spreadsheet that has data, in the side panel, you'll find a summary of your spreadsheet.

You can:

  • Show the whole summary of the suggested content by clicking View more.
  • Send feedback about the suggested text by clicking Good suggestion or Bad suggestion .

You can also ask Gemini to:

  • Help you understand your spreadsheet better. Examples of prompt:
    • 'Summarise this spreadsheet.'
    • 'Explain this spreadsheet like I'm five years old.'

To summarise a spreadsheet, you can use these shortcuts:

  • For Mac: Press+ Ctrl + N
  • For Windows: Press Ctrl + Alt + N
Create tables with Gemini

You can use Gemini to create tables in Sheets.

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
  3. In the side panel, select a prompt or create your own. Examples of prompt:
    • 'Create a table for a full-day team event.'
    • 'Create a trip plan for a holiday in a national park.'
    • 'Create a social media tracker for marketing.'
  4. Press Enter.
  5. (Optional):
    • To add the table to your spreadsheet, click Insert .
    • To see a different version, click Retry .
    • To refine before inserting a table, you can add follow-up prompts. Examples of prompt:
      • 'Add another five rows of different activities.'
      • 'Add details on cost.'
    • To send feedback about the suggested table, click Good suggestion or Bad suggestion .
Create formulas with Gemini

You can use Gemini to generate formulas in Sheets.

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
    1. You can also start from any cell and enter =.
    2. Then use a shortcut:
      • For Windows and Chrome OS: Ctrl + Alt + G
      • For macOS: + Ctrl + G
  3. In the side panel, create your own prompt using references from your sheet or generic cell names. Examples of prompts:
    • 'Create a formula that divides goals by games.'
    • 'Create a formula to find cell C1 in range D:G and output value in column G.'
  4. (Optional):
    • To add the formula to your spreadsheet, click the cell in which you'd like to insert this formula, then click Insert .
    • To see a different version, click Retry .
    • To send feedback about the suggested table, click Good suggestion or Bad suggestion .
Create images with Gemini

You can ask Gemini to generate images in Sheets.

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
  3. In the side panel, create your own prompt.
    • Example: 'Create an image of a dog with glasses.'
  4. On the image that you like, you can hover over to:
    • Insert an image: Click Insert .
    • Find similar images: Click Generate more .
  5. You can also:
    • Find more images: At the bottom, click Generate more .
    • Change your prompt: Click Edit prompt edit.
    • Send feedback about the generated images: At the bottom, click Good suggestion or Bad suggestion .
Generate data analysis and insights with Gemini

You can use Gemini to answer questions about the data in your sheet.

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
  3. In the side panel, create your own prompt with references from your sheet or generic cell names. Examples of prompts:
    • 'Identify trends in this table.'
    • 'How can I show regression and prediction of this data?'
    • 'What analysis can you help me perform with this sheet?'
    • 'Help me understand month-to-month food prices.'
Build charts and graphs with Gemini

Important: This feature is currently only available via Gemini Alpha and Workspace Labs programmes.

You can use Gemini to generate charts and graphs.

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
  3. In the side panel, create your own prompt with references from your sheet or generic cell names. Examples of prompts:
    • 'Create a chart with date on the x-axis and total on the y-axis.'
    • 'Make a line chart.'
    • 'Create a graph that shows the percentage of expenses on the total stipend after tax.'
    • 'Make a chart analysing my expenses for the month.'

Tip: Generated charts are static images and aren't editable charts in Sheets.

Perform actions in Google Sheets with Gemini
Important: This feature is currently available for Labs and Alpha users only.
  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
  3. To edit your spreadsheet through prompts, in the side panel, enter a prompt that describes the action that you want to perform. Example of a prompt:
    • 'Highlight values below 100'
  4. Gemini generates an action preview card with details of the proposed action. On the action preview card, click Apply.
    • The preview card changes to a 'Working on it…' dialogue box.
  5. Once the action is complete, the Settings Settings and Undo Undo buttons show.
    • Settings: If available, you can configure actions, like adjust pivot table parameters or conditional formatting rules, when you click Settings Settings.
      • This is only available for actions with configurable settings.
    • Undo: If the action doesn't give the result that you want, click Undo Undo.
      • This is available until you make further changes.

Ask Gemini to perform the following actions:

Apply conditional formatting

You can highlight cells based on specific criteria, like values below a certain number or duplicate entries.

In the side panel, enter your prompt. Examples of prompts:

  • 'Highlight rows where sales are greater than 500'
  • 'Add conditional formatting to highlight dates in the past'

Create new drop-downs

You can create drop-down lists in specified ranges or convert existing data to drop-down lists.

In the side panel, enter your prompt. Examples of prompts:

  • 'Create a drop-down in column A with options 'High', 'Medium' and 'Low''
  • 'Convert column B to a drop-down with values from column C'

Tip: When the location of the new drop-down list isn't specified, the new drop-down list created will be added to the empty column that's furthest to the right.

Create a new pivot table

You can create a pivot table to summarise data in a new sheet or the specified range.

In the side panel, enter your prompt. Example of a prompt:

  • 'Create a pivot table that shows the sum of sales by region'
  • 'Create a pivot with status in column A, value as task counts and columns for priority'

Apply filters

You can apply filters to the active table context.
In the side panel, enter your prompt. Example of a prompt:

  • 'Filter for sales greater than £1,000'

Sort your spreadsheet

You can sort the active table context.

In the side panel, enter your prompt. Example of a prompt:

  • 'Sort by date in descending order'
Summarise your Drive files with Gemini

You can use Gemini to reference files from your Drive to generate responses in Sheets.

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click Ask Gemini .
  3. In the side panel, ask Gemini to use your Drive files to generate text.
    • Example: 'What are the main points of: Meeting Notes: Core Team sync.'
  4. To check which files were used, below the response, click Expand and then Sources.
  5. (Optional):
    • To add the text to your spreadsheet, click Insert .
    • To view another version, click Retry .
    • To send feedback about the suggested text, click Good suggestion or Bad suggestion .
Summarise your Gmail emails with Gemini

You can ask Gemini to reference emails that you sent to generate responses.

  1. On your computer, open a spreadsheet from Google Sheets.
  2. At the top right, click the Gemini in Sheets side panel .
  3. In the side panel, provide your prompt asking Gemini to reference Gmail email(s).
    • Example: 'Catch me up on the latest monthly review emails.'
  4. To check which files were used, below the response, click Expand and then Sources.
  5. (Optional):
    • To add the text to your spreadsheet, click Insert .
    • To generate a new suggestion, click Retry .
    • To send feedback about the suggested text, click Good suggestion or Bad suggestion .
Get help with Google Sheets
  • 'Teach me how to use conditional formatting with a colour scale.'
  • 'How can I remove duplicates?'
Get answers from the web
Important: To get answers from the web, make sure that you include phrases like 'Use Google Search' or 'Using web search' in your prompt.
  • 'Write a paragraph describing the weather today in Mountain View, California using web search'.
  • 'Help me write a paragraph explaining whether lightning can strike the same place twice using only information from the web.'

Give feedback on generated output

Gemini for Google Workspace is constantly learning and may not be able to support your request.

If you get a suggestion that's inaccurate or that you feel is unsafe, you can let us know by submitting feedback.

  1. Below the generated text, click Good suggestion or Bad suggestion .
  2. If you click Bad suggestion , you can select the issue that you find and enter additional feedback.
  3. Click Submit.

To provide general feedback on this feature, at the top, go to Help and then Help Sheets improve.

To report a legal issue, create a request.

Learn about Gemini feature suggestions

  • Gemini feature suggestions don't represent Google's views, and should not be attributed to Google.
  • Don't rely on Gemini features as medical, legal, financial or other professional advice.
  • Gemini features may suggest inaccurate or inappropriate information. Your feedback makes Gemini more helpful and safe.
  • Enterprise end users can submit feedback about their experience using this feature. End users are informed before they submit feedback that the feedback data shouldn't contain personal, sensitive or confidential information.
  • Your conversations with Gemini in Sheets are not saved to Gemini activity. When you delete your Gemini in Sheets conversation history, it doesn't delete any information that is saved to your Gemini activity. Learn how to delete your Gemini activity.

Related resources

Search
Clear search
Close search
Main menu
14885783726264083940
true
Search Help Centre
true
true
true
true
true
35
false
false
false
false