In this article:

How to Do Sensitivity Analysis in Google Sheets (2024 Guide)

March 27, 2024

How to Do Sensitivity Analysis in Google Sheets

Conducting a sensitivity analysis in Google Sheets allows you to evaluate how changes in one or more input variables affect an output variable. Here's how to do it: 

1. Set Up Your Base Model

First, ensure your spreadsheet models the scenario you're interested in analyzing. This typically involves:

Input Variables: Clearly define and isolate the cells where your input variables are entered. These are the factors you'll vary to see how they affect the outcome.

Output Variable: Identify the cell with the output variable. This is the result affected by changes in the input variables.

For example, you are selling a product and want to understand how changes in the sales price and cost per unit affect your profit. Your base model includes:

  • Fixed sales volume of 100 units.
  • A base sales price of $50 per unit.
  • A base cost of $30 per unit.

We can perform a sensitivity analysis to see how varying the sales price from $45 to $55 (in $1 increments) and the cost per unit from $25 to $35 (in $1 increments) impacts the profit.

This is our base model: 

sensitivity analysis google sheets

2. Create a Data Table for Sensitivity Analysis

Next to or below your model, set up a data table to systematically vary the input variables and record the impact on the output variable.

In the first column of the data table, list different values for the input variable you want to test. These could be different cost estimates, pricing levels, demand forecasts, etc.

In the first row above the data table, reference the output variable's cell. This sets up the table to capture how changes in the input affect this output.

For our example, we can use a formula to calculate the profit based on the sales price in that column and the base cost per unit. For example, in D2, the formula would be =(D$1-B3)*B1. Copy this formula across the range D2 to N2.

google sheets sensitivity analysis

3. Analyze the Results

Consider creating charts or graphs to visualize how changes in the input variables affect the output. This can help identify thresholds or levels of sensitivity in your model.

sensitivity analysis in google sheets

We hope that this article has helped you and given you a better understanding of how to perform sensitivity analysis in Google Sheets. If you enjoyed this article, you might also like our articles on how to insert a degree symbol in Google Sheets and how to calculate confidence intervals in Google Sheets.

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.
Get your copy of our free Google Sheets automation guide!
  • 27 pages of Google Sheets tips and tricks to save time
  • Covers pivot tables and other advanced topics
  • 100% free

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->