spreadsheet-formula-helper

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Spreadsheet Formula Helper

电子表格公式助手

Produce reliable spreadsheet formulas with explanations.
生成带说明的可靠电子表格公式。

Inputs to gather

需要收集的输入信息

  • Platform (Excel/Sheets), locale (comma vs. semicolon separators), sample data layout (headers, ranges), expected outputs, and constraints (volatile functions allowed?).
  • Provide small example rows and the desired result for them.
  • 平台(Excel/Sheets)、区域设置(逗号与分号分隔符)、样本数据布局(表头、数据范围)、预期输出以及约束条件(是否允许使用易失性函数?)。
  • 提供小型示例行及其期望结果。

Workflow

工作流程

  1. Restate the problem with explicit ranges and sheet names; propose a minimal sample to verify.
  2. Draft formula(s); when dynamic arrays are available, prefer them over copy-down formulas.
  3. Explain how it works and where to place it; include named ranges if helpful.
  4. Edge cases: blank rows, mixed types, timezone/date quirks, duplicates; offer guardrails (e.g.,
    IFERROR
    ,
    LET
    ,
    LAMBDA
    ).
  5. Variants: if porting between Excel and Sheets, provide both versions.
  1. 用明确的数据范围和工作表名称重述问题;提出一个最小化的样本用于验证。
  2. 草拟公式;当支持动态数组时,优先使用动态数组而非下拉复制公式。
  3. 说明公式的工作原理和放置位置;如有帮助可包含命名范围。
  4. 边界情况:空行、混合数据类型、时区/日期异常、重复值;提供防护措施(例如
    IFERROR
    LET
    LAMBDA
    )。
  5. 变体:如果要在Excel和Sheets之间移植,提供两个版本的公式。

Output

输出内容

  • Primary formula, short explanation, and a 2–3 row worked example showing inputs → outputs.
  • Optional: quick troubleshooting checklist for common errors.
  • 主公式、简短说明,以及一个2–3行的实际示例,展示输入→输出的过程。
  • 可选:常见错误的快速排查清单。