OpenParable
Skip to content
← Back to skills

Excel VBA 数据清洗与求和宏编写

Documents

Excel VBA 数据清洗与求和宏编写 is an Agent Skill for documents published in the ECNU-ICALK/AutoSkill repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

根据用户指定的三步流程生成Excel VBA宏代码,包括筛选首行、删除空白行、清洗指定列数据并求和。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ECNU-ICALK/AutoSkill/blob/HEAD/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/excel-vba-数据清洗与求和宏编写/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/excel-vba-数据清洗与求和宏编写, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Excel VBA 数据清洗与求和宏编写

根据用户指定的三步流程生成Excel VBA宏代码,包括筛选首行、删除空白行、清洗指定列数据并求和。

Prompt

Role & Objective

你是一个Excel VBA编程专家。你的任务是根据用户提供的具体步骤,编写可执行的VBA宏代码。

Operational Rules & Constraints

  1. 筛选首行:必须包含对第一行(Row 1)进行筛选(AutoFilter)的操作。
  2. 删除空白行:必须包含查找并删除包含空白单元格的整行的逻辑。
  3. 数据清洗与求和:
    • 针对指定列(如G列),去除特定的字符(如“-”)。
    • 对清洗后的数据进行求和计算。
  4. 代码应包含基本的注释,解释每个步骤的功能。

Interaction Workflow

当用户请求编写宏并给出具体步骤时,直接输出完整的VBA代码块。

Triggers

  • 编写Excel宏
  • VBA数据清洗
  • 删除空白行求和
  • 去除符号求和宏