conditional-formatting
条件格式与表格美化 — FormatConditions API、数据条、色阶、一键美化方案
Skill by claude-office-skills
Chalk Labs
Need help deploying conditional-formatting?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/claude-office-skills-conditional-formatting
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/conditional-formatting
What's inside
- Skill name
conditional-formatting- Description
- 条件格式与表格美化 — FormatConditions API、数据条、色阶、一键美化方案
- License
- MIT
- Instructions
- 97 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
## 条件格式 API
### FormatConditions.Add 基本用法
```javascript
// 参数: Type, Operator, Formula1, Formula2
// Type: 1=xlCellValue, 2=xlExpression
// Operator: 1=Between, 3=Equal, 5=Greater, 6=Less, 7=GreaterEqual, 8=LessEqual
// 示例: 大于 90 的单元格标绿
var rng = ws.Range("B2:B100");
var fc = rng.FormatConditions.Add(1, 5, "90");
fc.Interior.Color = 0x00AA00;
fc.Font.Color = 0xFFFFFF;
// 示例: 等于"已完成"标绿,等于"逾期"标红
var rng = ws.Range("E2:E100");
var fc1 = rng.FormatConditions.Add(1, 3, '"已完成"');
fc1.Interior.Color = 0x00AA00;
fc1.Font.Color = 0xFFFFFF;
var fc2 = rng.FormatConditions.Add(1, 3, '"逾期"');
fc2.Interior.Color = 0x0000FF;
fc2.Font.Color = 0xFFFFFF;
var fc3 = rng.FormatConditions.Add(1, 3, '"进行中"');
fc3.Interior.Color = 0xFF8800;
fc3.Font.Color = 0xFFFFFF;
```
### 基于公式的条件格式
```javascript
// 交替行斑马纹(用 xlExpression)
var fc = rng.FormatConditions.Add(2, 0, "=MOD(ROW(),2)=0");
fc.Interior.Color = 0xFFF0E0;
// 整行高亮(当 E 列="逾期" 时整行变红)
var fc = ws.Range("A2:Z100").FormatConditions.Add(2, 0, '=$E2="逾期"');
fc.Interior.Color = 0xCCCCFF;
```
### 清除条件格式
```javascript
ws.Range("A1:Z1000").FormatConditions.Delete();
```
## 一键美化方案
当用户要求"美化表格"时,按以下标准执行:
```javascript
function CL(c){var s="";while(c>0){c--;s=String.fromCharCode(65+(c%26))+s;c=Math.floor(c/26);}return s;}
var ws = Application.ActiveSheet;
var ur = ws.UsedRange;
var r1 = ur.Row, c1 = ur.Column;
var rEnd = r1 + ur.Rows.Count - 1;
var cEnd = c1 + ur.Columns.Count - 1;
// 1. 表头样式(首行)
var hdr = ws.Range(CL(c1) + r1 + ":" + CL(cEnd) + r1);
hdr.Font.Bold = true;
hdr.Font.Color = 0xFFFFFF;
hdr.Interior.Color = 0x8B4513;
hdr.HorizontalAlignment = -4108;
ws.Range(r1 + ":" + r1).RowHeight = 32;
// 2. 数据区域
var data = ws.Range(CL(c1) + (r1 + 1) + ":" + CL(cEnd) + rEnd);
data.Font.Size = 11;
data.VerticalAlignment = -4108;
// 3. 交替行背景色
for (var r = r1 + 1; r <= rEnd; r++) {
if ((r - r1) % 2 === 0) {
ws.Range(CL(c1) + r + ":" + CL(cEnd) + r).Interior.Color = 0xFFF0E0;
}
}
// 4. 自动列宽
for (var c = c1; c <= cEnd; c++) {
ws.Range(CL(c) + ":" + CL(c)).ColumnWidth = 15;
}
// 5. 数字列自动格式化
// 检测列内容类型,设置合适的 NumberFormat
```
### 美化配色方案
| 方案 | 表头 BGR | 交替行 BGR | 适用场景 |
|------|---------|-----------|---------|
| 商务蓝 | 0x8B4513 | 0xFFF0E0 | 通用/报表 |
| 清新绿 | 0x006633 | 0xE0FFE0 | 数据分析 |
| 优雅灰 | 0x666666 | 0xF5F5F5 | 简约/打印 |
| 活力橙 | 0x0055D9 | 0xE0EEFF | 营销/展示 |From claude-office-skills/claude-office-plugin, MIT.
More from claude-office-skills/claude-office-plugin
- 0.466score
equity-valuation-framework
claude-office-skills
Provides a decision-grade equity valuation playbook and report standard (multiples, DCF, quality assessment, scenarios, margin of safety); used when users…
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
local-access
claude-office-skills
macOS 本地计算机操作 — 日历、通讯录、邮件、提醒、Finder、剪贴板、浏览器、应用控制
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
sandbox-executor
claude-office-skills
沙盒执行器 — 在安全隔离环境中运行 Python/Shell 脚本获取外部数据
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
wps-core-api
claude-office-skills
WPS ET API 核心参考 — 全局变量、Range 读写、格式化、工作表操作、禁用 API
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
financial-data
claude-office-skills
金融数据连接器 — 通过 Data Bridge 获取实时股票、财务报表、估值比率等结构化数据
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
sensortower
claude-office-skills
SensorTower 移动应用数据连接器 — App 下载量、收入、DAU/MAU 数据
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
chart-creation
claude-office-skills
WPS 图表创建 — AddChart2 方法、图表类型、配色方案、最佳实践
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
code-rules
claude-office-skills
WPS 代码生成规则 — 单块规则、禁止拆分、数据保护、新建工作表模式
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
data-analysis
claude-office-skills
数据解读与分析 — 统计方法、趋势分析、透视汇总、结论输出规范
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
data-cleaning
claude-office-skills
数据清洗最佳实践 — 空值处理、去重、格式统一、异常值检测、分列操作
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
financial-modeling
claude-office-skills
投行级金融建模引擎 — 公式驱动的多Sheet专业DCF/估值模型
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
equity-valuation
claude-office-skills
股票估值报告引擎 — 数据质量门控/多方法估值/质量评估/风险矩阵/决策框架的 Excel 完整估值工作簿
SkillDFreshness: D★ 9Claude Code +9
Signals
- Stars
- 9
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Mar 9, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from claude-office-skills
- 0.549score
amazon-seller
claude-office-skills
Trigger: amazon-seller, Automate Amazon seller operations including inventory, orders, pricing, and advertising management.
SkillBFreshness: B★ 1Claude Code +9 - 0.466score
equity-valuation-framework
claude-office-skills
Provides a decision-grade equity valuation playbook and report standard (multiples, DCF, quality assessment, scenarios, margin of safety); used when users…
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
sandbox-executor
claude-office-skills
沙盒执行器 — 在安全隔离环境中运行 Python/Shell 脚本获取外部数据
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
financial-data
claude-office-skills
金融数据连接器 — 通过 Data Bridge 获取实时股票、财务报表、估值比率等结构化数据
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
sensortower
claude-office-skills
SensorTower 移动应用数据连接器 — App 下载量、收入、DAU/MAU 数据
SkillDFreshness: D★ 9Claude Code +9 - 0.464score
wps-core-api
claude-office-skills
WPS ET API 核心参考 — 全局变量、Range 读写、格式化、工作表操作、禁用 API
SkillDFreshness: D★ 9Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get conditional-formatting running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
conditional-formatting skill. Agent Mart. https://agentmart.dev/skills/claude-office-skills-conditional-formatting (last updated 2026-10-24)