Diagnose and fix Microsoft Excel XLSX workbook issues involving formulas, named ranges, Power Query refreshes, pivot tables, VBA/macro preservation, workbook...
文档
Excel XLSX Formula Cleanup
试用Diagnose and fix Microsoft Excel XLSX workbook issues involving formulas, named ranges, Power Query refreshes, pivot tables, VBA/macro preservation, workbook...
它能做什么
Diagnose and fix Microsoft Excel XLSX workbook issues involving formulas, named ranges, Power Query refreshes, pivot tables, VBA/macro preservation, workbook...
技能文档
Excel XLSX Formula Cleanup
Use this skill for spreadsheet repair and automation tasks where correctness matters more than simply rewriting cells. Treat an .xlsx workbook as a structured package with formulas, styles, relationships, cached values, tables, queries, pivots, and sometimes macros.
Workflow
- Clarify the workbook goal: fix broken formulas, clean imported data, preserve macros, refresh reporting logic, repair corruption, or generate a reusable workflow.
- Protect the workbook. Work on a copy and avoid destructive recalculation or macro removal unless requested.
- Choose the right inspection path:
- Use
openpyxlfor formulas, worksheets, styles, dimensions, tables, data validation, conditional formatting, and charts it supports. - Treat
.xlsmfiles carefully; preserve the VBA project with library support or package-level copying. - Inspect ZIP/OOXML parts for workbook relationships, external links, pivot caches, slicers, Power Query metadata, and unsupported structures.
- Use
- Map each problem to a workbook layer: formula text, named range, table reference, external link, query connection, pivot cache, style, merged cell, or hidden sheet.
- Make minimal repairs and keep formulas as formulas. Do not replace formulas with stale cached values unless the user asks for a static export.
- Validate formulas and shape:
- Confirm worksheet names, table names, named ranges, and formulas still point to valid ranges.
- Check row/column counts, date and number formats, hidden sheets, filters, and merged cells.
- Note when a desktop Excel recalculation or Power Query refresh is still required.
Common Fix Patterns
- Broken formulas: trace sheet names, structured references, named ranges, separators, and external workbook links before editing formula strings.
- Power Query refresh issues: inspect connection definitions and query metadata; explain which parts require Excel desktop or Power BI tooling.
- Pivot table drift: preserve pivot caches where possible and warn when Python libraries cannot safely rebuild them.
- VBA preservation: keep
.xlsmpackage parts intact; never save through a path that drops macros unless producing a macro-free copy is the goal. - Data cleanup: normalize values in staging sheets or tables, then keep reporting formulas and dashboards stable.
Outputs
Provide:
- A workbook diagnosis tied to specific sheets, ranges, formulas, or package parts.
- A safe repair or automation plan, plus code changes when requested.
- A validation checklist covering formulas, ranges, tables, pivots, macros, and expected recalculation.
Read references/requirement-plan.md only when the original demand evidence is needed.
相关技能
Build and troubleshoot cross-Office automation pipelines that move content between Word, Excel, and PowerPoint using Open XML, VBA, python-docx, openpyxl, py...
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files into proper spreadsheets.
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
Create and troubleshoot Excel reporting workbooks with charts, dashboards, conditional formatting, print areas, PDF/image export, openpyxl or Office automati...
通过命令行创建、读取和修改 .xlsx 工作簿,强制执行公式、格式与财务模型规范。