跳到主要内容Skip to main content
← 深水指南Guides

表格公式Spreadsheet formula

提示词与工作流Prompts & workflows · 提示词案例Prompt case

输出公式、假设与手算样例;不假装已运行表格。

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

为电子表格写公式。列定义:{columns}。目标:{goal}。输出 formula、assumptions[]、hand_check(输入与预期结果)、edge_cases[]。公式只能引用给定列;空值与除零必须处理。声明未在实际表格运行。

占位符用 {字段} 标注,运行前替换为本次输入。

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、edge_cases。

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

  • 公式依赖隐藏列:补列定义或改写。
  • 边界结果不确定:标 edge_case 待人工核。
  • 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(官方仓库 raw,2026-11-07 直抓 200)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.ipynbhttps://raw.githubusercontent.com/openai/openai-cookbook/main/examples/Structured_Outputs_Intro.ipynb

资料快照日期:2026-11-07;单项复核范围与日期见对应正文或来源记录。产品功能与条款可能变化,使用前请核对原始来源。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.