Spreadsheet What-If Analysis

Spreadsheet What-If Analysis helps you investigate how a model responds when its assumptions change. A manager might compare several delivery charges or ask which charge would produce a particular monthly revenue. These questions use the same underlying formula, but they work in different directions. Your first task is to identify whether you have chosen the inputs or specified the desired output.

Start with a connected model

Separate editable assumptions from calculated results. For a service with a fixed monthly payment and a charge per job, the governing relationship is


R=F+qpR=F+qp


Here, RR is monthly revenue in dollars, FF is the fixed monthly payment in dollars, qq is the number of jobs per month, and pp is the charge in dollars per job. Changing qq affects revenue only if the revenue formula actually references that input, directly or through other formulas.


Keep the other assumptions fixed when investigating one input. Otherwise, an observed difference combines several changes, making the comparison harder to interpret. The spreadsheet calculates consequences of assumptions; it does not establish that those assumptions will occur.

Work backward with Goal Seek

Goal Seek searches for a value of one input that makes a formula produce a specified result. It is appropriate when you know the target revenue but want to determine the charge that would generate it, holding job volume and the fixed payment unchanged.


In desktop Excel, open What-If Analysis and choose Goal Seek. Supply three entries:

  • Set cell: the cell containing the output formula.
  • To value: the numerical target for that output.
  • By changing cell: the single editable input Excel may adjust.

The output formula must depend on the changing cell. Entering the target directly into the output cell would replace the formula instead of solving the model.



Compare inputs with data tables

A data table is an Excel What-If Analysis range that substitutes trial inputs into a model and displays the resulting outputs. It differs from a general worksheet table used to organize records.


Tool

Inputs varied

Results examined

Goal Seek

One input adjusted by Excel

One specified target

One-variable data table

Chosen values of one input

One or more formula outputs

Two-variable data table

Chosen combinations of two inputs

One formula output


For a one-variable table with trials down a column, place a reference to the output formula one row above and one column right of the first trial. Select the complete rectangular range, including the formula reference, trials, and empty result cells. In the Data Table dialog, assign the original model input to Column input cell and leave Row input cell empty. Trials arranged horizontally use the Row input cell instead.


For a two-variable table, put one set of trials across the top row and the other down the first column. Put the output formula reference at their upper-left intersection. Assign the model input represented across the top to Row input cell, and the input represented down the side to Column input cell.



A decision diagram connects a target output to Goal Seek and chosen input values to a data table.


Check before interpreting

Manually substitute one trial combination into the original formula and compare it with the displayed result. A mismatch suggests an incorrect formula reference, input assignment, or calculation setting. If table results appear outdated, check whether automatic recalculation excludes data tables and recalculate the table.


Keep the model assumptions visible when reporting results. A revenue comparison that holds job volume fixed does not predict how customers would respond to a different price. That response would require additional evidence or an explicitly different model.


What to remember

  • Goal Seek starts with a target and adjusts one input.
  • Data tables start with trial inputs and calculate outputs.
  • Row and column assignments follow the trial layout.
  • Verify calculations and practical limits before using a result.

Example: Compare a service contract's billing assumptions

A maintenance service receives a retainer, a fixed monthly payment, plus a charge for each completed job. Use Spreadsheet What-If Analysis to investigate its monthly revenue. Assume the contract permits the trial charges, every completed job is billed, and job volume does not respond to the charge within this model.


All cells below are on the same worksheet.


Cell

Meaning

Starting value or formula

B2

Jobs per month

120

B3

Charge per job in dollars

18

B4

Monthly retainer in dollars

600

B5

Monthly revenue in dollars

=B4+B2*B3\text{=B4+B2*B3}


The model is


R=F+qp.R=F+qp.


a) Configure Goal Seek to find the number of jobs needed for monthly revenue of $3120. Keep the charge and retainer fixed, and verify the result.


First, check the starting model. Its monthly revenue is ________, because


R=600+120(18)=2760 dollars.R=600+120(18)=2760\ \text{dollars}.


Next, configure Goal Seek using the formula cell, target value, and permitted input:

  • Set cell: B5.
  • To value: 3120.
  • By changing cell: B2.

The target revenue includes the fixed retainer. Subtracting it leaves ________ to be generated by job charges:


18q=3120−600=2520 dollarsq=2520 dollars18 dollars per job=140 jobs.\begin{aligned} 18q&=3120-600=2520\ \text{dollars}\\ q&=\frac{2520\ \text{dollars}}{18\ \text{dollars per job}}=140\ \text{jobs}. \end{aligned}


Finally, verify that 600+140(18)=3120600+140(18)=3120 dollars. The required volume is 140 jobs per month. This result is a whole number and meets the target under the stated assumptions.


b) Compare monthly revenue at 100, 150, and 200 jobs using a one-variable data table. Specify its layout and input assignment, then calculate the three results.


First, restore B2 to its starting value of 120 jobs. Keep B3 at 18 dollars per job and B4 at 600 dollars per month. Preserve these fixed assumptions throughout the comparison.


Prepare the layout by entering 100, 150, and 200 in E3:E5, respectively. Put the formula reference =B5\text{=B5} in F2 and leave F3:F5 empty. Select E2:F5, open Data Table, set Column input cell to B2, and leave Row input cell empty.


For the first trial, the job-charge component is ________. For the second, it is ________. Add the retainer once to each trial:


R(100)=600+100(18)=2400 dollarsR(150)=600+150(18)=3300 dollarsR(200)=600+200(18)=4200 dollars.\begin{aligned} R(100)&=600+100(18)=2400\ \text{dollars}\\ R(150)&=600+150(18)=3300\ \text{dollars}\\ R(200)&=600+200(18)=4200\ \text{dollars}. \end{aligned}


The outputs in F3:F5 are 2400, 3300, and 4200 dollars per month, respectively. Increasing volume by 50 jobs adds 50(18)=90050(18)=900 dollars, which agrees with the differences between adjacent results.


c) Compare both job volume and the charge per job. Use the trial layout below, specify the two input assignments, and calculate G10. The retainer remains $600 per month.


Cell or range

Entry

E8

=B5\text{=B5}

F8:G8

Charges of 16 and 20 dollars per job

E9:E10

Volumes of 120 and 180 jobs

F9:G10

Empty output cells before running the table


First, select E8:G10, including the formula reference, both sets of trial inputs, and all four empty output cells. Open Data Table.


Charges run across the top row, so set Row input cell to B3. Job volumes run down the first column, so set Column input cell to B2. These assignments identify the original model inputs that receive each trial value.


Next, locate G10. Its column represents 20 dollars per job, and its row represents 180 jobs. Their job-charge component is ________. Substitute both trial inputs together:


R=600 dollars+(180 jobs)(20 dollars per job)=4200 dollars.R=600\ \text{dollars}+(180\ \text{jobs})(20\ \text{dollars per job})=4200\ \text{dollars}.


Therefore, G10 contains monthly revenue of 4200 dollars. The result includes the fixed retainer once and uses both trial headings, rather than combining a trial input with an unchanged starting input.

A warehouse manager wants to compare total labour cost and cost per parcel at six proposed hourly wage rates. Staffing hours and parcel volume will remain fixed. Both output formulas reference the same wage input cell. Which setup best displays all the requested comparisons together?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An analyst has an existing delivery-cost formula and wants to test distance values listed vertically in a one-variable Excel data table. Arrange the stages in order, beginning with testing the model and ending with checking the generated results.

Loading ordering steps…

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A facility estimates its monthly electricity bill as a fixed charge of $200 plus electricity usage multiplied by the energy rate. Usage is stored in B2, the rate in B3, and the fixed charge in B4. B5 contains =B4+B2*B3\text{=B4+B2*B3}.


A two-variable data table tests rates across its top row and usage values down its first column. Complete the four bill amounts below. Enter exact whole-dollar amounts without currency symbols. Hold the fixed charge unchanged and assume no other charges.

Usage (kWh)Rate 0.15 dollars/kWhRate 0.20 dollars/kWh
800
1200

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors