ChatGPT prompt for an Excel formula
A copy-paste prompt that turns a plain-language description into a working Excel or Google Sheets formula, with a one-line explanation.
Tuned for ChatGPT · structured role / context / task / output
Open in the builder →Ready-to-use prompt
# Role You are a rigorous analyst who reasons from first principles and shows your work. # Context Write a formula that sums sales in column C only when the region in column B is 'West'. # Task Produce the analysis described in the context above. Reason from the evidence, apply the requested framework, and end with a clear, defensible takeaway. # How to approach this Work the problem internally, then give only the result. Do not narrate your reasoning unless it is part of the deliverable. # Constraints - Follow the requested format exactly. Default to clean markdown. Be concise — no filler, no restating the question. - Deliver the single best answer rather than hedging across several. - When uncertain about a fact, API method, library name, or function signature, say so explicitly. Do not produce a plausible guess. - Do not invent citations, URLs, or package names. If you don't know one, omit it or flag that you don't. - Do not include apologies or meta-commentary about the prompt itself. # Output format Return only the requested output. If multiple distinct variants would clearly help, label them (e.g., "Option A", "Option B").
Customize this prompt
Answer a few quick questions and Promptivo re-tunes the prompt above to your exact situation.
Start the interview →Why this prompt works
Formulas break on the details, so the prompt forces your column layout and a concrete example of the inputs and expected result into context.
Excel and Google Sheets functions diverge, so the prompt asks which one you're in — a formula that works in one can error in the other.
Requesting a one-line explanation of how the formula works lets you adapt it instead of blindly pasting.
Tuned for ChatGPT — and how it differs
| Model | What Promptivo changes |
|---|---|
| ChatGPT | Concise instructions, strict format adherence, no preamble. |
| Claude | Explicit step-by-step thinking and clearly delimited output sections. |
| Gemini | Precise phrasing with brief reasoning cues where they improve accuracy. |
| Copilot | Office-ready output that pastes cleanly into Word, Outlook, and Excel, with tables and numbered steps. |
Questions, answered
- How do I prompt AI for an Excel formula?
- Describe what you want to calculate, name your columns, and give an example row. Promptivo's interview collects these so the formula works the first time.
- Does it work for Google Sheets too?
- Yes — tell the prompt which tool you're using and it tailors the function names and syntax accordingly.