Overview
What it does
Builds a spreadsheet that flags every campaign red, amber or green against your targets, with sample gates so noise never turns red.
When to use it
Your team lives in a spreadsheet, not a dashboard, and the conditional formatting marks a campaign red on two conversions. This builds the sheet properly: your targets, breakeven calculated, a sample gate so thin data reads "too early" instead of red, and formulas anyone can audit.
Pairs with MCP
The MCP can fill the sheet's data tab with fresh campaign numbers on a schedule, so the flags update without anyone exporting from the ad platform.
Best for
Founders, finance-minded marketers, small teams living in spreadsheets.
Install
Drop this entire block into a SKILL.md file inside your Claude project’s .claude/skills/red-green-spend-sheet/ folder. Claude auto-invokes it when you ask for a spreadsheet, tracker, formulas, or a red/green performance sheet.
---
name: red-green-spend-sheet
description: Use this skill to build a spreadsheet that flags ad performance against targets. Produces tab layouts, column definitions, exact formulas (Google Sheets and Excel) for CPA, ROAS, breakeven, sample gates and trend, red/amber/green/grey logic, and conditional formatting rules, plus setup instructions.
---
# Red-Green Spend Sheet
You build sheets that flag the right things. A red cell on two conversions is worse than no colour at all, because it trains people to react to noise.
## Data you need
- From the user: target CPA or ROAS, gross margin, kill rule, sample gate preference, Google Sheets or Excel
- Data tab source: Uplifted via MCP (scheduled pull) or a pasted export with campaign, date, spend, impressions, clicks, conversions, revenue
## What to build
**Tab 1 — Settings** (named cells): Target_CPA, Margin, Breakeven_ROAS (= 1 / Margin), Min_Conv (default 30), Min_Spend_Multiple (default 2), Amber_Band (default 20%), Red_Band (default 50%).
**Tab 2 — Data:** the raw daily rows. Never edited by hand.
**Tab 3 — Scorecard**, one row per campaign, with these columns and exact formulas:
- Spend 7d, Conversions 7d, Revenue 7d: SUMIFS over the last 7 days
- CPA = IFERROR(Spend / Conversions, "")
- ROAS = IFERROR(Revenue / Spend, "")
- Prior 7d CPA, and Change % = CPA / Prior_CPA − 1
- Gate = IF(AND(Conversions >= Min_Conv, Spend >= Min_Spend_Multiple × Target_CPA), "OK", "Too early")
- Status:
- **Grey** — Gate = "Too early" (shows "Too early — need N more conversions")
- **Green** — CPA ≤ Target_CPA (or ROAS ≥ Breakeven_ROAS)
- **Amber** — CPA between Target and Target × (1 + Red_Band), or worsening for 3 days
- **Red** — CPA > Target × (1 + Red_Band) with the gate passed
- **Red — kill rule** — spend ≥ kill threshold with 0 conversions
- Dollars at risk/day = MAX(0, (CPA − Target_CPA) / CPA) × Spend_7d / 7
- Sort by dollars at risk
**Tab 4 — Trend:** sparkline per campaign for daily CPA (SPARKLINE in Sheets).
**Conditional formatting:** the rules, by status text, with colours. Grey must be visually quieter than red.
## Output format
1. Tab layouts (column letters and headers)
2. Every formula, written for the chosen tool, with named ranges
3. Conditional formatting rules
4. A 5-minute setup guide
5. A worked example: 3 sample campaigns showing each status and why
6. Optional: an Apps Script / Power Query outline to refresh the Data tab
## Guidelines
- Grey ("too early") is a status, not an error. It's the most important colour in the sheet.
- Every threshold lives in Settings, never hard-coded in formulas.
- Breakeven ROAS is 1 ÷ margin, never 1.0.Prompt
Builds a spreadsheet that colours each campaign against your targets, and only when there's enough data to judge. Use it when the team reports from Sheets or Excel instead of a dashboard.
You build sheets that flag the right things. Build my red/green spend sheet in {{Google Sheets / Excel}}.
My numbers: target {{CPA or ROAS}}, margin {{%}}, kill rule {{e.g. $100 spend, 0 sales}}, minimum conversions to judge {{default 30}}.
Data source: {{Uplifted MCP scheduled pull / pasted export with campaign, date, spend, impressions, clicks, conversions, revenue}}
Build:
1. Settings tab with named cells (Target_CPA, Margin, Breakeven_ROAS = 1/Margin, Min_Conv, bands).
2. Data tab (raw rows).
3. Scorecard tab: 7-day spend, conversions, revenue (SUMIFS), CPA, ROAS, change vs prior 7 days, a sample gate, status Grey/Green/Amber/Red/Red-kill, dollars at risk per day, sorted.
4. Trend sparklines.
5. Conditional formatting rules.
Give every formula exactly, a setup guide and a 3-campaign worked example.
EXPECTED OUTPUT:
- A complete sheet spec with every formula written out
- Red/amber/green logic that shows "too early" instead of reacting to noise
- A five-minute setup guide and a worked example