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
- Install Sorzio from Extensions, Get add-ons, then open it with Extensions, Sorzio, Open sidebar.
- Select the column range you want the formula to run on.
- In the AI tab, write your prompt and reference input columns by header, for example "Summarize
{{Notes}}in one sentence." - Check the cost preview for your row count.
- 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.
UrlFetchAppis 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 method | Row ceiling | Re-billing risk on sheet edit | Typical cost for 1,000 rows |
|---|---|---|---|
| Apps Script custom =AI() formula | Stalls around 100 to 300 rows (6-minute cap) | High: recalculates on sorting and sheet edits | Unpredictable repeat token charges |
| Sorzio Google Sheets sidebar | 50,000+ rows dispatched server-side | None: writes static values once per succeeded row | ~$3.90 managed (GPT-4o-mini) or raw tokens via BYOK |
| Sorzio Hosted Lists via MCP | 50,000+ rows in Claude, ChatGPT, or Cursor | None: explicit pre-run cost card + sample test | Same: $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.