Artificial intelligence allows you to analyze data, review formulas, classify records, or summarize texts without leaving Excel or Google Sheets. How you do this depends on whether you need occasional help or a process that runs automatically.

In summary:

  • To get started today, without programming: install the ChatGPT or Claude add-in from the Excel add-ins section or from the Google Sheets Extensions menu.
  • To use AI in cells: in Google Sheets you can use the =AI() function from Gemini or create your own functions with Apps Script.
  • To automate recurring processes: connect the OpenAI or Anthropic API using Power Automate, Apps Script, Zapier, Make, or n8n.

Below we explain each option step by step, how much it costs, what limitations it has, and what you should check before entering your company’s data.

Comparison: Which option to choose?

Option

Do we need to program?

Cost

Ideal for

Main limitation

AI plugins and features (ChatGPT, Claude, Copilot, Gemini)

No

Included in the subscription. ChatGPT also has a free plan, with limitations; Claude, Copilot, and Gemini require a paid plan.

Analysis and specific tasks

Requires manual intervention

API (VBA, Office Scripts, Apps Script)

Yeah

Pay-per-use based on processed tokens

Custom features

Key management, errors, and technical limits

Automation (Power Automate, Zapier, Make, n8n)

Little or nothing

Platform license + API usage

Recurring processes

Connector licenses and limitations

Tailor-made solution

Yes (technical team)

Development, infrastructure and maintenance

ERP, CRM, high volumes, traceability

Higher initial investment

 

How to use ChatGPT and Claude in Excel

1. Install the official ChatGPT and Claude add-ins for Excel

OpenAI and Anthropic offer add-ins that allow you to use ChatGPT and Claude directly from Excel, both in the desktop and web versions.

To install them:

  1. Open a compatible version of Microsoft Excel.
  2. Access the add-ons section.
  3. Search for ChatGPT or Claude and verify that the provider is OpenAI or Anthropic, respectively.
  4. Install the add-on and log in with a compatible account.
  5. Open its side panel and start entering instructions.
ChatGPT-para-Excel-1

For example, you can request:

  • “Analyze monthly sales and identify the fastest growing products.”
  • “Review the formulas on this sheet and identify any possible errors.”
  • “Detects duplicate records without modifying the original data.”

ChatGPT for Excel is also available on the free plan, with limited usage; Claude for Excel requires a paid plan. Before using a personal account with company data, please review the privacy section of this guide.

The Claude add-in is part of Claude for Microsoft 365, which also works in Word, PowerPoint, and Outlook.

Consult the official ChatGPT instructions for Excel and Claude for Microsoft 365 .

Microsoft Copilot also offers AI-powered features integrated into Excel, through its sidebar, for users with compatible plans. Note that Microsoft retired the =COPILOT() cell function on September 14, 2016, after its testing phase, and recommends using the Copilot sidebar instead.

2. Connect Excel to the OpenAI or Anthropic APIs

An API (application programming interface) allows different computer systems to communicate with each other. In this case, it allows sending information to an artificial intelligence model and receiving a response.

To develop custom integrations with Excel you can use:

  • VBA: allows you to create macros in compatible versions of desktop Excel to communicate with external services and write the results to cells.
  • Office Scripts: allows you to automate operations using TypeScript and make requests to external services when the script is run from within the Excel application itself.

Both alternatives require programming knowledge. Furthermore, they have technical limitations. For example, external calls using fetch from Office Scripts do not work when the script is executed from Power Automate. Office Scripts also does not offer a system for securely storing API keys; their management is left to the developer.

Therefore, in business environments it is advisable to use an intermediary service that securely manages credentials and API communications.

Consult the Microsoft technical documentation .

3. Automate Excel with AI using Power Automate

Microsoft Power Automate allows you to configure automatic processes without needing to keep Excel open.

For example, you can develop a flow that:

  1. Periodically check an Excel table stored in OneDrive for Business or SharePoint.
  2. Identify pending records using unique identifiers.
  3. Send the necessary information to an AI model using its API.
  4. Validate the responses, update the records, and mark them as processed.

The standard Excel Online for Business connector does not have a specific trigger to detect each new row added. One alternative is to schedule periodic runs.

Additionally, step 3 requires the Power Automate HTTP action, which is a premium connector and requires a compatible license.

The technical limitations of the connector must also be considered , errors must be handled, and duplicate processing must be avoided.

If you don’t use the Microsoft ecosystem, platforms like Zapier, Make, or n8n also allow you to connect Excel with AI models (see the section on automation in Google Sheets).

How to use ChatGPT and Claude in Google Sheets

1. Install AI add-ons for Google Sheets

Among the available alternatives we find:

  • ChatGPT for Google Sheets – OpenAI plugin.
  • Claude for Google Workspace: Anthropic add-on for Docs, Sheets, and Slides, currently in beta for paid plans.
  • GPT for Sheets and Docs: a third-party add-in that allows you to generate text, translate, and classify information.

Google also integrates Gemini into Sheets. In addition to the sidebar, it offers the =AI() function , which allows you to write an instruction directly into a cell, for example: =AI(“Rate this opinion as positive, negative, or mixed”; A2). It is available in Spanish, requires a compatible Google Workspace or Google AI plan, and generates results in blocks of up to 200 cells.

To install a plugin:

  1. Access the Google Workspace Marketplace .
  2. Look for the app and check who its provider is.
  3. Review the requested permissions and install it.
  4. Open Google Sheets and access the add-on from the Extensions menu.
  5. Log in with the corresponding account.

On business accounts, installation may require administrator authorization.

Consult the official ChatGPT instructions for Google Sheets and Claude for Google Workspace .

2. Connect Google Sheets to the OpenAI or Anthropic API using Apps Script

Google Apps Script allows you to extend the functionality of Google Sheets and automate operations using JavaScript.

From the Extensions menu you can access the Apps Script editor and develop programs that read data, make requests to the OpenAI or Anthropic APIs using UrlFetchApp.fetch() and save the results to the spreadsheet.

These programs can be run manually or via scheduled triggers. Store the API keys in the script’s properties (PropertiesService), never in the code or in the cells.

It’s also possible to develop custom AI-powered functions directly within the cells. However, these are subject to restrictions, such as a 30-second execution limit per call.

Furthermore, these functions can be re-executed when the sheet is recalculated. Each execution generates a new API call, with its corresponding cost, and the response may vary. When the result should not change, save it as a fixed value or cache it (CacheService).

To process numerous records, it is more efficient to group operations and store the results, avoiding unnecessary requests.

Consult the official Google Apps Script documentation .

3. Automate Google Sheets with Zapier, Make or n8n

Automation platforms like Zapier, Make, or n8n allow you to connect Google Sheets (and also Excel) with OpenAI or Anthropic models using visual workflows, without the need for programming.

For example, you can set up a flow that detects a new row, sends its contents to the model, and writes the response to another column.

n8n can be installed on your own servers, which is useful when you want to control where the data is processed.

Keep in mind that, in addition to API consumption, these platforms have their own cost, which usually depends on the number of executions.

Practical example: classifying customer reviews with AI in Excel or Google Sheets

Imagine you have hundreds of customer reviews stored in Excel or Google Sheets and you need to identify the most frequent problems. To do this, it’s not enough to know if a review is positive or negative; you also need to assign it a theme.

Original opinion

Summary

Assessment

Issue

The product works well, but it took too long to arrive.

Good product, slow delivery.

Mixed

Delivery

The customer service was excellent.

Excellent service.

Positive

Customer service

The order arrived damaged.

Damaged order.

Negative

Product condition

Illustrative example with fictitious data.

To test it without programming, enter the opinions in column A, starting from cell A2, and type the following instruction, also called prompt , in the ChatGPT or Claude add-on:

“For each opinion in column A, write a brief summary, a rating (positive, negative, neutral, or mixed), and one topic chosen exclusively from this list: Delivery, Customer Service, Product Condition, Price, Other. Use only the information provided, mark ambiguous cases, and display the results without modifying the sheet.”

Once the results have been reviewed, ask the assistant to write them in columns B, C, and D, keeping the original data.

Finally, it counts how many negative reviews there are for each topic using a pivot table or the COUNTIFS function. This way, the AI takes care of interpreting the text and formulas, and doing the calculations: each tool does what it does best.

Tips for large volumes:

  • Always define a closed list of categories. If you let AI create them, you’ll get different labels for the same problem.
  • Process the data in blocks and review a random sample of the results before confirming the ranking.
  • If you need to repeat the task daily without manual intervention, develop an automation using Power Automate, Google Apps Script, a platform like Zapier, Make or n8n, or a custom integration.

Do you need an API key and how much does it cost to use AI in spreadsheets?

Not for official add-ons, which only require a compatible account.

To develop custom integrations using the OpenAI or Anthropic APIs, you can obtain access keys from the OpenAI Platform or the Anthropic console , after configuring the access and billing requirements.

Please note that when using the API, you are not connecting to the ChatGPT or Claude application, but directly to each provider’s AI models. Therefore, you will not have access to features specific to those applications, such as conversation history, and you must provide all the necessary information and instructions in each request.

API usage is billed separately from regular subscriptions to these assistants. The cost is typically calculated based on input and output tokens , units that represent fragments of the content processed or generated by the model.

Enterprise automation can also involve licensing costs (e.g., Power Automate premium connectors or the automation platform plan), development, infrastructure, and maintenance.

Check the updated rates for OpenAI and Anthropic .

How to use artificial intelligence reliably and safely

Artificial intelligence models can generate incorrect answers, even when given precise instructions. Just because an answer has the expected format doesn’t guarantee that its content is correct.

To reduce risks:

  • Limit the responses. Use closed lists of categories and, in API integrations, request responses in a structured format (e.g., JSON) and validate them before writing them to the spreadsheet.
  • Do not overwrite the original data. Write the AI results in separate columns and keep a copy of the sheet.
  • It leaves a trace. In automated processes, it records the date and model used in each row, so you know where each result comes from.
  • Review a sample. Periodically check a selection of results, as well as the generated formulas and calculations.
  • Limit permissions. Restrict which sheets and operations the AI can modify and establish a human review for important operations.
  • Protect your API keys. Store them in a secure vault or an intermediary service, never in cells or shared scripts.

Remember that not all tasks require artificial intelligence . Mathematical calculations and well-defined business rules are usually best solved using formulas or conventional software.

AI provides special value when we need to interpret texts, extract unstructured information, or classify content that is difficult to evaluate using fixed rules.

Privacy and GDPR compliance

Using a wizard within a spreadsheet does not mean that the data is processed locally.

Before sharing business information, check what data is sent to external services, who can access it, where it is processed, and for how long it is kept.

Be careful with personal accounts. In ChatGPT’s individual plans (Free, Plus, and Pro), the option to use conversations to train models is enabled by default, although it can be disabled in “Data Controls.” However, in ChatGPT Business, Enterprise, and the API, OpenAI does not use data to train its models by default. In Claude, also review your account’s privacy settings.

Therefore, to work with company data, use corporate accounts or the API. Even so, the fact that the data isn’t used for training doesn’t mean it isn’t stored, nor does it guarantee GDPR compliance.

The terms and conditions applicable to official add-ons, personal accounts, and third-party tools may differ. For example:

  • Claude for Microsoft 365 allows you to connect via Amazon Bedrock, Google Cloud Vertex AI, or Microsoft Foundry, making it easy to keep processing within the company’s own cloud environment.
  • Claude for Google Workspace, in its current beta version, does not offer zero data retention.

When processing personal data, it is necessary to determine the legal basis for the processing, minimize the information shared, review the contractual conditions of the suppliers and evaluate possible international data transfers.

OpenAI’s data processing policies and Anthropic’s privacy policy .

Frequently Asked Questions

Can I use ChatGPT in Excel for free?

Yes. ChatGPT for Excel and Google Sheets is available on the free ChatGPT plan, with usage limits. Claude’s add-ins require a paid plan. If you’ll be working with company data, review the privacy settings beforehand or use a corporate account.

Can I use AI directly in a cell?

In Google Sheets, yes: with Gemini’s =AI() function, if your plan includes it, or with custom Apps Script functions. In Excel, Microsoft retired the =COPILOT() function in September 2026; the alternative is to use the Copilot side panel or add-ins, or develop a custom integration.

Do I need an API key to use AI in Excel or Google Sheets?

Not for official add-ins, which only require a compatible account. Yes for custom integrations using VBA, Office Scripts, Apps Script, or automation platforms.

What is the difference between using a plugin and the API?

The plugin is a wizard that is manually accessed via a side panel. The API allows the model to be integrated into automated processes and is billed on a per-use basis, independent of the subscription.

Can I automate Excel or Google Sheets with AI without coding?

Yes, using tools like Power Automate, Zapier, Make or n8n, although they involve license costs and require well-designed error and duplicate control.

Is it safe to use ChatGPT or Claude with my company’s data?

It depends on the tool, the plan, and the data. Before sharing information, check where it is processed and how long it is kept, and, if it includes personal data, how it complies with GDPR.

When do you need a custom AI solution?

AI plugins are a good option for analyzing information and performing specific tasks. Tools like Power Automate, Google Apps Script, and automation platforms allow you to automate recurring processes with greater flexibility.

However, when it is necessary to integrate ERP or CRM systems, connect different databases, process large volumes of information, or meet specific security, reliability, and traceability requirements, developing a customized solution may be justified.

For example, a company that receives hundreds of supplier invoices per month can automate their processing: extract the data from each invoice, compare it with the orders recorded in the ERP, mark the discrepancies, and leave only the cases that require human review in a spreadsheet, with the link to the original document.

Sometimes, it is even convenient to move the storage and processing of data to more suitable systems, keeping Excel or Google Sheets as tools for consultation and analysis.

The challenge is not simply connecting a spreadsheet with an artificial intelligence model, but getting the technology to work reliably within the company’s real processes.

At Algo Coding Experts (ALGO) we are a technology engineering company specializing in the development of custom and systems integration solutions.

Do you want to automate your company’s processes using artificial intelligence? Contact our engineering team .

Information revised in November 2026. Functionalities and access conditions may evolve.