Build a Two-Variable Sensitivity Table for Revenue and Margin

Get a complete Excel sensitivity table layout with dynamic formulas and conditional formatting rules to highlight break-even profit thresholds.

Text prompt for Gemini and ChatGPT

You get: Grid Layout, exact Formulas and conditional Formatting Rules

Prompt

Prompt
Act as a financial modeling analyst who builds clean, audit-ready Excel spreadsheets.

Your job is to design a two-variable sensitivity table showing net profit across revenue and gross margin scenarios, with dynamic formulas and break-even conditional formatting.

First, ask the user 4 short numbered questions in one message and wait for their reply:
1. What are your total fixed costs for the period?
2. What is your base revenue and step increment?
3. What is your base gross margin percentage and step increment?
4. Which Excel version are you using?

Rules:
- Use a 5x5 grid with revenue across the top row and gross margin down the left column.
- Write exact Excel formulas using mixed cell references ($).
- Avoid Excel's Data Table feature; use explicit cell-referenced formulas so the grid recalculates reliably.
- Provide conditional formatting rules to highlight losses in light red and break-even or profits in light green.

Output format:
1. Grid Layout (cell-by-cell map of inputs and headers)
2. Exact Formulas (the core formula to drag across the 5x5 grid)
3. Conditional Formatting Rules (step-by-step Excel setup)

End with one line noting assumptions about taxes or variable costs excluded from gross margin.

Example output

Building the sensitivity table in Excel5x5 grid of net profit by revenue and gross margin
  1. Set up grid layoutStep 1Fixed costs in B2, revenue in D4:H4, margin in C5:C9
  2. Enter the formulaStep 2=(D$4 * $C5) - $B$2 in D5, drag to H9
  3. Flag losses in redStep 3Less Than 0: light red fill, dark red text
  4. Flag profits in greenStep 4Greater than or equal to 0: light green fill

Example for: a boutique software consultancy with $45,000 in monthly fixed costs, $100,000 base revenue ($15,000 steps), and 55% base gross margin (5% steps) using Excel 365.

1. Grid Layout

Set up your inputs and 5x5 sensitivity grid on a single sheet:

  • B2: Fixed Costs (45000)
  • D4 to H4 (Revenue Headers): 70000, 85000, 100000, 115000, 130000
  • C5 to C9 (Gross Margin Headers): 45%, 50%, 55%, 60%, 65%
  • D5 to H9: Net Profit output grid
2. Exact Formulas

Enter this formula into cell D5, then drag it across to H5 and down to H9:
=(D$4 * $C5) - $B$2

How it works:

  • D$4 locks row 4 so revenue shifts as you drag right.
  • $C5 locks column C so gross margin shifts as you drag down.
  • $B$2 locks fixed costs for every cell in the grid.

At the base case (F7, $100,000 revenue at 55% margin), the formula returns $10,000 net profit. At $70,000 revenue and 50% margin (D6), it returns -$10,000.

3. Conditional Formatting Rules
  1. Select the output range D5:H9.
  2. Go to Home > Conditional Formatting > Highlight Cells Rules > Less Than.
  3. Enter 0 and choose Light Red Fill with Dark Red Text, then click OK.
  4. With D5:H9 still selected, go to Conditional Formatting > New Rule > Format only cells that contain.
  5. Set the rule to Cell Value > greater than or equal to > 0, choose Light Green Fill with Dark Green Text, and click OK.

Assumptions: This model assumes all non-COGS expenses are captured in the $45,000 fixed cost figure and excludes corporate taxes, interest, and variable sales commissions.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Asks for base numbers and step increments first so the grid matches your actual business scale.
  • Uses mixed cell references ($) instead of Excel Data Tables, preventing slow recalculation in large workbooks.
  • Pairs the formula with exact conditional formatting steps so break-even thresholds stand out visually.

Use this in ChatGPT, Claude, or Gemini when modeling profit scenarios. Have your monthly fixed costs, base revenue, base gross margin, and desired step increments ready.

Common edits

  • Change the 5x5 grid rule to 7x7 if you need a wider range of revenue and margin scenarios.
  • Ask the model to add a separate row for EBITDA margin percentage if you prefer percentages over dollar profit.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

Excel & Spreadsheets

Automate tiered color coding for approaching deadlines

Build dynamic, time-sensitive conditional formatting rules for due dates. Use this when trackers need automated green, yellow, and red warnings based on today's date.

Excel & Spreadsheets

Highlight entire spreadsheet rows using conditional formatting

Set up conditional formatting rules that color entire rows based on a single status cell. Use this to highlight completed, overdue, or pending project items.

Excel & Spreadsheets

Highlight matching values across two separate spreadsheet columns

Generate the exact conditional formatting formula and click-by-click instructions to mark duplicate values found across two columns.

Excel & Spreadsheets

Build a tiered sales commission formula in Excel

Design a clean, audit-friendly tiered commission model that replaces fragile nested IF statements with scalable formulas.

Excel & SpreadsheetsGemini

Build a Rolling 12-Month Financial Summary Table in Excel

Get a complete Excel layout and dynamic SUMIFS formulas for a rolling 12-month financial summary that updates automatically as you add new monthly actuals.

Excel & SpreadsheetsGemini

Build an Excel Waterfall Chart Table for Revenue or EBITDA Bridges

Get a ready-to-paste Excel table layout with exact variance formulas and helper columns so your native waterfall chart renders cleanly.