Test Before You Decide: Building What-If Scenario Analysis in Spreadsheets with AI
What happens to profit if costs rise 15%? Build what-if scenario analysis in your spreadsheet with AI chat — no financial analyst required.

Numbers rarely argue in meetings; the assumptions behind them do. "If raw material costs rise 10%, are we still profitable?" or "What happens if 15% of our customers leave?" These questions are usually answered with gut feeling, even though your spreadsheet already holds all the raw material. What's missing is one thing: a system for testing scenarios quickly and measurably.
This is where AI chat tools like ChatGPT, Claude, or Gemini shine — not to predict the future, but to build a what-if simulation engine inside your spreadsheet: a model you can re-test in minutes. This guide walks you through building one step by step, ready to deploy before your next meeting. You don't need to be a financial analyst; copy-pasting prompts is enough.
Step 1: Turn a Cluttered Sheet Into a Living Model
Scenario analysis almost always fails at the very first step: spreadsheets that mix input numbers (prices, customer counts, costs) with output numbers (profit, margins). Open your file and make sure every key assumption lives in its own cell — say block B2:B8, clearly labeled. Every other calculation must reference those cells, never a hard-typed number buried inside a formula.
If your sheet is still rigid, ask the AI to restructure it. Paste its structure and use a prompt like:
Here is my monthly report spreadsheet structure: [paste sheets/columns/cells].
Split it into (1) a clearly labeled input assumptions block and (2) calculations.
Tell me which cells I may change for simulations and which cells show results.
Don't change any outcomes — just show me the structural fixes.
The end result: one model where changing a single cell ripples through the whole report. That's a prerequisite for everything that follows.
Step 2: Pick One Decision Metric and Two or Three Variables
Simulation without a specific question produces pretty numbers nobody uses. Choose one decision metric (say, monthly net profit) and the most influential input variables — usually selling price, main cost, and customer count. If you're unsure which variables matter, let your own data decide:
Here is my last 6 months of data: [paste].
I want to know whether profit stays healthy if raw material costs rise.
Help me pick the 2-3 input variables that most affect profit based on
these patterns, and explain your reasoning in 3 short bullet points.
Now you know exactly what to "shake" in the next steps.
Step 3: Build Three Core Scenarios — Optimistic, Moderate, Pessimistic
The minimum standard for scenario analysis is three conditions. The easiest route: create three copies of your assumptions block as columns, then have the AI write the comparison formulas.
Build a scenario table with 3 columns (Optimistic, Moderate, Pessimistic)
for variables: selling price, material cost, customer count.
Base values: [my assumptions block].
Pessimistic: cost +15%, customers -10%. Optimistic: cost -5%, customers +10%.
Write exact per-cell formulas (A1 notation) for Google Sheets, including
net profit per scenario and a one-line summary of the differences.
Once pasted, stress-test the model: change one base assumption and all three columns must move. If they don't, some formula still points to a hard-coded number — fix that before continuing.
Step 4: Build a Sensitivity Grid — Your Risk Heat Map
Three scenarios answer "how bad can it get?". A sensitivity grid answers a sharper question: at exactly what point does this business start losing money? Create a cross table: one variable in rows (price increases of 0-20% in 5% steps), one in columns (cost increases of 0-20%), with net profit in every cell. Excel has a built-in Data Table feature for this; in Google Sheets, the AI can simply write ordinary formulas that read both axes.
Create a Google Sheets sensitivity grid: rows = price increase
0%, 5%, 10%, 15%, 20%; columns = material cost increase 0-20% (5% steps).
Each cell shows net profit referencing my assumptions block in B2:B8.
Also give me conditional formatting steps so negative cells turn red.
The result is a risk map at a glance: safe zones, fragile zones, and the break-even line.
Step 5: Stress-Test the Extremes with a Simple Random Simulation
Three tidy scenarios are nice, but reality is messy. Go one step further: a beginner-friendly Monte Carlo, the same technique financial analysts use. Ask the AI to build a 200-row simulation where each row draws plausible random values — cost increases of 0-20%, customer growth from -10% to +10% — computes profit for each row, then summarizes everything.
In Google Sheets, build a 200-row simulation: column A = random cost
increase 0-20% (RAND function), column B = random customer change -10%
to +10%, column C = net profit from my assumptions block B2:B8.
Then summarize: minimum, maximum, and average profit, plus the percentage
of runs that end at a loss. Explain how to force a recalculation.
"23% of 200 random conditions end in a loss" is far more convincing in a meeting than "seems fine, I guess." Microsoft itself documents this concept — the link is in the references.
Step 6: Turn Simulation Output into Decision Rules
Simulation is not decoration. Close the loop by translating numbers into rules your team can actually run:
Based on this sensitivity grid and simulation summary: [paste numbers],
write 3 practical decision rules for my team in this format:
"If [variable] crosses [threshold from my data], do [specific action]".
Use thresholds from my numbers, not generic advice.
This produces the most valuable asset of the entire exercise: agreed thresholds, instead of a recurring monthly argument over assumptions.
Four Traps to Avoid
First, never let the AI invent base numbers — all inputs must come from your data; the AI only builds the structure and formulas. Second, always verify AI-written formulas on one or two rows by hand; a wrong simulation model is more dangerous than no simulation, because it creates false confidence. Third, document your assumptions and who changed them — a scenario quietly edited to look good is just fraud reported neatly. Fourth, remember that random results change on every recalculation: lock the values (copy, then paste-special as values) before sharing the file.
Scenario testing isn't about predicting the future precisely; it's about knowing your safe limits before pressure arrives. With the spreadsheet you already have and the AI chat you already pay for, a test bench that used to be an analyst's domain is now something anyone can build in an afternoon.
References
- Introduction to What-If Analysis — Microsoft Support
- Switch Between Various Sets of Values by Using Scenarios — Microsoft Support
- Introduction to Monte Carlo Simulation in Excel — Microsoft Support
- Google Sheets Function List — Google Docs Editors Help



