TechJunkie is a BOX20 Media Company

Home AI Tools How to Use ChatGPT on Google Sheets

How to Use ChatGPT on Google Sheets

How to Use ChatGPT on Google Sheets

ChatGPT can help you make a lot more productive. Besides writing emails, lines of code, essays, and more, the AI tool can supercharge your productivity levels in Google Sheets. Yep, you can use ChatGPT on Google Sheets to translate text, extract data, and do a lot more. Here’s how.

OpenAI does not provide any official plugin for Google Drive or Sheets. But there’s a third-party alternative called GPT for Sheets and Docs. It’s an extension for Google Drive that can help incorporate ChatGPT prompts within your documents.

If you prefer Microsoft’s Office suite, you can use ChatGPT in Microsoft Excel as well.

How To Get an OpenAI API Key For Your Extension

You first need to get an OpenAI API key before you can use the extension. Don’t worry, though; getting the key is easy and free.

  1. Head to Open AI’s website and log in.
  2. Go to OpenAI’s API keys page.
  3. Click on Create New Secret Key.
    Creating secret key with Open AI
  4. Rename your key whatever you want, then select Create Secret Key.
  5. Copy the key that appears.

With the key copied to your clipboard, it’s time to look for the extension on Google Sheets and Docs.

How To Install the ChatGPT Extension for Google Sheets And Docs

  1. Open either Google Sheets or Google Docs.
  2. From the menus at the top, click Extensions.
  3. Select Add-ons and then Get Add-ons.
    Adding extensions in Google Docs
  4. Search for GPT for Google Sheets and Docs from the search bar at the top.
  5. Click on the first search result and select Install in the following menu.
    GPT for Sheets and Docs on google docs
  6. Select Continue and confirm the Google account you want the extension for.

Once done, you’ll see a menu on the right side of your Docs or Sheets screen. This will be where you’ll put your prompts in.

However, GPT for Google Sheets and Docs won’t automatically work. You’ll first have to enter the OpenAI API key you created previously to get the plugin to work.

  1. Open Google Sheets or Docs and then head to Extensions.
  2. From there, look for GPT for Sheets and Docs, followed by Set API Key.
    Adding API key to GPT for Sheets and Docs
  3. Paste your API key. If it’s correct, you’ll get a message that it’s valid.

Once done, you’ll be free to use GPT for Sheets and Docs as you please. One of the benefits of using the extension is that you no longer have to worry about the dreaded ChatGPT external error message.

There’s a surprising amount of things that you can do with the extension, so we’ll discuss its use cases next.

What Can You Do With GPT For Sheets And Docs?

1. Generate Text

Generating text is one of the best use cases for GPT for Sheets and Docs. Like ChatGPT, the software can help you write essays, summaries, articles, and more in just a few clicks. What’s different this time is that the text will be automatically pasted to your document instead of you having to paste it.

Using prompts on Google Docs

ChatGPT is easy to use, but GPT for Sheets and Docs is even more intuitive. On the left side of the menu, you can see drop-down menus, which let you quickly create prompts and even change the tool’s behavior. Both functions have to be manually inputted in ChatGPT.

You can do the same for cells in Sheets using the formula =GPT(“XXXX”). The text will be generated automatically in the cell you put the command in.

2. Text Translation

One of the automatic prompts of GPT for Sheets and Docs extension lets you translate text easily. You can test it out by opening a document and then typing any sentence or word you want translated. In the extension’s menu, select Translate to and type in the language you want to translate the text. The process is possible even when using Sheets.

Translating texts in GPT for Sheets and Docs

3. Extract Data

One of the most frustrating things when using Google Sheets is extracting a huge amount of mixed data. The GPT for Sheets and Docs extension simplifies this process if you use the correct code.

You can do this by using the formula =GPT_EXTRACT(Cell 1, Cell 2). So you can paste a table in Sheets and then use the formula to extra contents from cell 1 into cell 2.

4. Create Data Tables

Perhaps the best feature of the GPT for Sheets and Docs extensions is the ability to generate data tables in a matter of seconds. For this, you can use the =GPT_TABLE function. For example, in just a few seconds, you can use the GPT for Sheets extension to create a table of the highest-grossing Hollywood movies along with their actors in Sheets.

Do note that since ChatGPT has been trained on data available until 2021, it will not work when trying to generate a data table based on more recent occurrences.

GPT extension generating data table

5. Summarize Texts

Many use ChatGPT to summarize huge chunks of text in a matter of minutes. This is especially useful in Google Docs. All you need to do is paste the text you want summarized in your document. Select the appropriate prompt from the GPT for Docs and Sheets sidebar on the right, and you’ll be good to go.

This process can take a few seconds depending on the length of the text to be summarized, so keep that in mind.

There’s Much More You Can Do With GPT For Sheets And Docs

This is probably one of the best extensions on Google Drive right now. What we’ve said above is just the tip of the iceberg. The tool will help you become very productive in both Sheets and Docs. Just like in ChatGPT, the limit of what you can do entirely depends on your knowledge of prompts. If you want to check out some great ChatGPT alternatives, here’s a list of five we’ve found.

How To View a Private Instagram Account

Read Next 

Leave a Reply

Your email address will not be published. Required fields are marked *


Jonas Sunico

Jun 15, 2023

Jonas is a writer with over 6 years of experience in the tech and gaming industry. He holds a bachelor's degree in Journalism from University of the East Philippines and is one of the proud leaders of the academe's Journalism Society. At heart, he's a hardcore tech junkie that loves video games, the latest gadgets, and the wonderful science behind social media and AI.

314 Articles Published

More