当前位置: 首页 > Skill >

ai-spreadsheet-formula-repair-card

ai-spreadsheet-formula-repair-card

ai-spreadsheet-formula-repair-card

Diagnoses a broken spreadsheet formula and produces a corrected formula, quick tests, and a paste-ready explanation using only user-provided formula context.

1.0.0 2026.11.18 468
获取Skill文件查看使用说明
作 者:苏川 许可证: 更新时间:2026.11.18
本文目录展开

AI Spreadsheet Formula Repair Card

Overview

Use this prompt-only skill when a user has a broken spreadsheet formula and needs a fast, careful repair card they can test in Excel, Google Sheets, Numbers, or a similar spreadsheet tool.

The skill turns the user's formula, error message, expected result, and nearby sheet context into a compact diagnosis, corrected formula, sample checks, and a paste-ready explanation.

When to Use

Use this skill when the user says things like:

  • "My spreadsheet formula is broken."
  • "Fix this Excel formula."
  • "Why does this Google Sheets formula return an error?"
  • "This lookup formula is wrong."
  • "I need a corrected formula and explanation."
  • "Help me debug this spreadsheet formula quickly."

Required Inputs

Ask for only the details needed to repair the formula:

  • Spreadsheet app, such as Excel, Google Sheets, Numbers, or unknown
  • The exact formula text
  • The error message or wrong result currently shown
  • What the user expected the formula to return
  • Relevant column headers, row numbers, cell references, named ranges, locale separators, and sample input values
  • Whether the formula will be copied across rows or columns
  • Any constraints, such as no helper columns, no array formulas, or compatibility with older Excel

If the user cannot share real data, ask for a small anonymized sample with the same structure.

Workflow

  1. Capture formula context. Restate the app, formula, target cell, observed error, expected result, and relevant sheet layout from the user-provided details.
  2. Identify the error type. Classify the likely issue, such as syntax, separator or locale mismatch, missing quotes, bad range shape, lookup mismatch, absolute or relative reference issue, array spill issue, date or text coercion, circular reference, unsupported function, or logic mismatch.
  3. Explain the root cause briefly. Point to the exact part of the formula that is probably failing. If uncertain, list the top two likely causes.
  4. Rewrite the formula. Provide one primary corrected formula that matches the user's spreadsheet app and constraints.
  5. Add safer alternatives when helpful. Include an alternate formula only if compatibility, readability, or blank/error handling materially improves the result.
  6. Create sample checks. Give two to five small test cases with input, expected output, and what a pass means.
  7. Add copy or fill notes. Warn about absolute references, relative references, structured references, array spill range, and whether the formula is safe to drag or paste.
  8. Prepare a paste-ready explanation. Produce a short explanation the user can paste into a note, ticket, or teammate reply.
  9. Give a safe testing step. Ask the user to test on a copy or duplicate sheet before replacing important formulas.

Output Format

Produce the repair card with these sections:

  1. Formula Repair Card
    • Spreadsheet app
    • Original formula
    • Observed error or wrong result
    • Expected result
  2. Diagnosis
    • Error type
    • Likely root cause
    • Confidence: high, medium, or low
  3. Corrected Formula
    • Primary formula
    • Optional alternate formula, only if useful
  4. Why This Works
    • Short explanation of the changed references, functions, separators, or logic
  5. Test Cases
    • Input or scenario
    • Expected output
    • Pass condition
  6. Paste and Fill Notes
    • Where to paste
    • Whether it can be copied down or across
    • Any references that must stay locked
  7. Paste-Ready Explanation
    • Three to six sentences in plain language
  8. Safe Next Step
    • Reminder to test on a copy or duplicate sheet before replacing important formulas

Example Prompts

Copy and paste one of these into your AI assistant with your broken formula and context filled in:

  1. VLOOKUP returning #N/A: "In Google Sheets, my formula =VLOOKUP(B2,Sheet2!A:D,4) keeps returning #N/A even though the value should be there. Sheet2 has columns ID, Name, Dept, Salary. The ID in B2 is 1047. Fix this."

  2. #VALUE! from text-formatted numbers: "Excel shows #VALUE! for my formula =A2+B2 where A2 has '100' formatted as text. I expected 250. What's the corrected formula?"

  3. SUMIF returning 0 unexpectedly: "My SUMIF in Excel =SUMIF(C:C,">500",D:D) is returning 0 when I can see rows above 500. Column C has numbers stored as text. Give me a repair card."

Safety Boundary

  • Use only the formula and context the user provides. Do not claim to inspect a spreadsheet unless the user supplies the content or an available tool actually opens it.
  • Do not ask for passwords, account access, private workbooks, hidden sheets, credentials, or full sensitive datasets.
  • Encourage anonymized sample rows when real data is sensitive.
  • Warn before any destructive edit, mass paste, autofill, replacement, script, macro, or recalculation that could alter important data.
  • Ask the user to test on a copy or duplicate sheet before replacing formulas in production, finance, legal, medical, payroll, inventory, or high-impact files.
  • Do not invent unavailable column names, ranges, or sample values. Mark assumptions clearly.
  • Do not provide executable scripts or macros as the primary answer for this skill.

Quality Checklist

A strong result should:

  • Preserve the user's spreadsheet app and formula dialect
  • Name the likely error type and exact root cause
  • Provide a corrected formula that is ready to paste
  • Include sample checks with expected outcomes
  • Mention fill direction and locked references when relevant
  • Keep the explanation short enough to paste into a ticket or teammate message
  • Include a copy-first safety reminder before replacing important formulas

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件
  • SKILL.md
    • AI Spreadsheet Formula Repair Card
    • Overview
    • When to Use
    • Required Inputs
    • Workflow
    • Output Format
    • Example Prompts
    • Safety Boundary
    • Quality Checklist
  • 项目或源文件

相关 Skill

更多
Excel数据合并 Excel数据合并 Excel多文件智能合并工具;自动对齐表头、过滤空行、适配列数;支持并行读取/分块处理/高效写入/格式保留;当用户需要合并多个Excel、汇总表格数据或整理报表时使用
Microsoft Excel Microsoft Excel 通过托管 OAuth 集成 Microsoft Excel API,实现对 OneDrive 中 Excel 工作簿、工作表、区域、表格和图表的读写。使用此技能...
excel-split excel-split 辅助处理excel表格,按列拆分大表为多个文件
excel-validate excel-validate 辅助处理excel表格,只读扫描数据质量
excel-safe-workflow excel-safe-workflow 辅助处理excel表格,安全编辑四步法,其它excel skills的基础流程