Sorzio
PricingDocs
Sign inStart free
Start free

Enrich, verify, qualify, and write outbound inside Claude, ChatGPT, Cursor, and Google Sheets. Pay only for rows that succeed.

Start free · $20 credit

Product

  • Enrich
  • Verify
  • AI & Models
  • Flows
  • Prospect Pages
  • Tools
  • Pricing
  • Compare
  • Install

Connect

  • Documentation
  • MCP Developer Hub
  • Platform API
  • Claude
  • ChatGPT
  • Cursor

Resources

  • Use cases
  • Case studies
  • Guides & Blog
  • Glossary
  • Help Center
  • Contact Support

Company

  • About
  • Security
  • Sorzio vs Clay
  • Sorzio vs Apollo

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie list
  • Subprocessors

Empra Consultancy LTD
hello@sorzio.com

Sorzio (formerly ReplyLabs) is built and operated by Empra Consultancy LTD (https://www.sorzio.com) and is an independent product and company not affiliated with Reply.io (Reply, Inc.).

Sorzio|PrivacyTermsCookiesSubprocessors

© 2026 Empra Consultancy LTD. All rights reserved.

Home/Guides/How to write an AI formula in Google Sheets (no script)
GUIDE · AI IN GOOGLE SHEETS

How to write an AI formula in Google Sheets (no script)

Write an AI formula that runs a prompt over a column in Google Sheets, without Apps Script. The fastest method, why custom functions fail, and the cost.

UPDATED NOV 7, 2026 · 4 MIN READ
GUIDEAI in Google Sheets
Hugo Dupont
Founder at Sorzio

Builds outbound data pipelines across Google Sheets, Claude MCP, and ChatGPT.

CONTENTS
  1. 1. How do you write an AI formula in Google Sheets without Apps Script?
  2. 2. The fastest method, step by step
  3. 3. Why a custom =AI() function struggles
  4. 4. Make the formula write better output
  5. 5. What a run costs across Google Sheets and MCP
  6. 6. Common questions
SHARE
CONTENTS
  1. 1. How do you write an AI formula in Google Sheets without Apps Script?
  2. 2. The fastest method, step by step
  3. 3. Why a custom =AI() function struggles
  4. 4. Make the formula write better output
  5. 5. What a run costs across Google Sheets and MCP
  6. 6. Common questions
Quick summary & key takeaways

Write an AI formula that runs a prompt over a column in Google Sheets, without Apps Script. The fastest method, why custom functions fail, and the cost.

  • 01How do you write an AI formula in Google Sheets without Apps Script?
  • 02The fastest method, step by step
  • 03Why a custom =AI() function struggles
  • 04Make the formula write better output

How do you write an AI formula in Google Sheets without Apps Script?

The most reliable way to run an AI formula across Google Sheets is a server-side batch prompt rather than an in-cell custom function. In Sorzio, you reference headers like {{Company}} once and process thousands of rows across Google Sheets or Hosted Lists in Claude, ChatGPT, and Cursor at 1.65x tokens plus $0.0035 per row.

The fastest method, step by step

  1. Install Sorzio from Extensions, Get add-ons, then open it with Extensions, Sorzio, Open sidebar.
  2. Select the column range you want the formula to run on.
  3. In the AI tab, write your prompt and reference input columns by header, for example "Summarize {{Notes}} in one sentence."
  4. Check the cost preview for your row count.
  5. Click Run. Output appears in a new column, one row at a time.

This behaves like a formula in that one instruction fills a whole column, but it runs server-side so it scales to thousands of rows.

Why a custom =AI() function struggles

You can write an Apps Script custom function that calls a model. It works for a handful of cells and then hits walls:

  • The six-minute limit. Apps Script kills any execution that runs longer, so a few hundred rows can fail mid-way.
  • Quota on external calls. UrlFetchApp is rate-limited per day, which a real list exhausts quickly.
  • Recalculation storms. Sheets re-runs custom functions on edit, so the model gets called again and you pay again.

A batched add-on dispatches rows in parallel outside the spreadsheet, so none of these apply.

Make the formula write better output

The "formula" is really a prompt, and a sharper prompt fills the column with sharper text. Three quick wins:

  • Pass real facts, not just a name. A prompt that references a scraped detail or a verified field writes output specific to one row instead of generic filler.
  • Handle blanks explicitly. Add a line such as "If {{Notes}} is empty, write a short generic summary" so the model never invents data.
  • Lock the format. Ask for "one sentence" or "exactly one of: Yes, No" so the result is easy to filter and use in the next step.
Execution methodRow ceilingRe-billing risk on sheet editTypical cost for 1,000 rows
Apps Script custom =AI() formulaStalls around 100 to 300 rows (6-minute cap)High: recalculates on sorting and sheet editsUnpredictable repeat token charges
Sorzio Google Sheets sidebar50,000+ rows dispatched server-sideNone: writes static values once per succeeded row~$3.90 managed (GPT-4o-mini) or raw tokens via BYOK
Sorzio Hosted Lists via MCP50,000+ rows in Claude, ChatGPT, or CursorNone: explicit pre-run cost card + sample testSame: $1.00/1k Decision Mode or 1.65x + $0.0035/row AI

What a run costs across Google Sheets and MCP

Sorzio prices Generative AI at 1.65x raw provider tokens plus $0.0035 per succeeded row, Decision Mode ICP scoring at $1.00 per 1,000 rows, 6-page website enrichment at $0.006 per URL, and SMTP verification at $0.01 per email, with $20 free welcome credit ($5 instant + $15 on card verification). On Pro ($39/mo), BYOK runs at 0% Sorzio markup. You can also trigger the exact same prompts conversationally on Hosted Lists in Claude, ChatGPT, and Cursor via MCP, chain steps with Flows, inspect live runs in the showcase, compare GPT for Sheets alternatives or Sorzio vs SheetMagic, and model spend in the AI cost calculator.

Common questions

Can I reference other cells in the prompt?

Yes. Reference any column by its header in double braces, for example {{First name}} or {{Company}}, and the value for that row is substituted before the model runs.

Is there a real =AI() formula?

Sorzio runs from the sidebar rather than a cell formula, on purpose: it sidesteps the Apps Script limits above and lets you preview cost before spending. The full picture is in the AI in Google Sheets guide.

What does an AI prompt mean here?

The instruction template you write once and apply to every row. See the AI prompt definition.

PREVIEW BEFORE YOU RUN

Try it on ten rows first

See the enriched columns, the verdicts, and the exact cost before you run the whole list.

Start free · $20 credit

Run this on your list

$20 free credit. Works in Google Sheets, Claude, and ChatGPT. Pay only for rows that succeed.

Start free
Hugo Dupont
Founder at Sorzio
SHARE
Keep reading · AI in Google Sheets
Read the full guide: AI in Google Sheets: the complete guide
  • Run a prompt across thousands of rows
  • GPT for Google Sheets without a script
Key terms
AI promptToken (LLM)
Run this in Sorzio · Sheets, Claude, ChatGPT & Cursor
300+ AI Models Claude MCP Sorzio vs SheetMagic AI Cost Calculator

More guides.

All guides →
GUIDE
GUIDE · 8 MIN READ

Bulk AI in Google Sheets: run one prompt across thousands of rows

Run a single AI prompt across thousands of Google Sheets rows at once. The fastest method, why in-cell formulas stall, how to keep cost predictable, and a worked example.

Read guide →
GUIDE
GUIDE · 7 MIN READ

GPT for Google Sheets: how to use ChatGPT in Sheets (no script)

Use GPT and ChatGPT models in Google Sheets without writing Apps Script. The add-on method, why in-cell formulas stall at scale, what it costs, and a worked example.

Read guide →
GUIDE
GUIDE · 6 MIN READ

AI personalization at scale in a spreadsheet

Personalize outreach for thousands of rows with AI from a spreadsheet. The row-level prompt method, why it beats mail-merge tokens, and what it costs.

Read guide →

READY TO RUN THIS WORKFLOW?

You bring the list. Sorzio does the rest.

Start with $20 of free credit across Google Sheets, Claude, and ChatGPT. Pay only for rows that succeed.

Start free · $20 creditSee pricing