Spreadsheet formula
Output formula, assumptions and a hand-check example; do not pretend the sheet was run.
Prompt effect has not been tested.
A prompt is a re-runnable template, not a promise of results. Changing the model, version or input can change the outcome. Use the checkpoints on this page to verify it yourself, and treat the official sources as evidence of mechanism rather than a guarantee of effect.
Task and inputs
Output formula, assumptions and a hand-check example; do not pretend the sheet was run. Inputs: Column definitions, calculation goal, and edge cases.
The prompt
Write a spreadsheet formula. Columns: {columns}. Goal: {goal}. Output formula, assumptions[], hand_check (inputs and expected result), and edge_cases[]. The formula may reference only given columns; handle blanks and division by zero. State that it was not run in an actual sheet.
Replace {field} placeholders with the current inputs before running.
Expected output shape
formula, assumptions, hand_check, and edge_cases.
Checkpoints
- The hand-check example can be verified independently.
- Blanks and division by zero are handled.
- Referenced columns are all defined.
Failure branches
- Formula depends on hidden columns: add definitions or rewrite.
- Uncertain edge result: mark it for manual checking.
Sources and limits
This site has not tested the effect of this prompt. See the sources for the mechanism; changing model, version or input can change the result.
Sources
| Source | URL |
|---|---|
| OpenAI Cookbook: Introduction to Structured Outputs (official repository raw, fetched 200 on 2026-11-07) | https://raw.githubusercontent.com/openai/openai-cookbook/main/examples/Structured_Outputs_Intro.ipynb |
Source snapshot: 2026-11-07; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.