11. What-If Analysis
Ask what would change before making a plan
Imagine a fictional grocery team planning a new dark store. A dark store is a location where staff pick and pack online orders without customers shopping the aisles. The planner has a monthly fixed cost estimate and a guess at the contribution of each order after direct delivery costs. The manager wants to know how many orders are needed to cover the monthly costs, how the answer changes if each order contributes less, and whether the store can manage that volume. The worksheet lets the team ask those questions before committing to the plan.
This chapter uses fictional Blinkit-style grocery operations and a small bakery exercise. The numbers and proposed business choices are examples created for lessons. They do not describe actual companies. What-If Analysis takes the rules and assumptions you put in a workbook and answers a conditional question. It can help compare possibilities. A model by itself cannot tell you how many people will order, whether a cost estimate covers all expenses, or whether the proposed staffing is available.
Keep input assumptions, model formulas and feasibility checks visible. A numerical result is only useful when you can say how it was produced and whether the inputs fit the real decision.
Distinguish an observation, an assumption and a result
- Observation. A verified order ledger might show how many orders were actually placed last month. That is historical evidence with its own scope.
- Assumption. Four hundred orders per day is the starting point in the practice model. The workbook accepts it to answer a planning question.
- Model rule. For this simple store, multiply orders per day by days to get total orders, then use an assumed average amount and costs.
- Result. Given those specific assumptions, the model calculates a monthly loss or a surplus. If you replace one assumption, read the new result and check its meaning.
Before you open a What-If menu, choose whether you need a result for known inputs, an unknown input for a target, several named combinations, a grid of choices or a best feasible plan. These are related tasks with different outputs. Trying a few inputs by typing them manually is a good first step. Once you can predict a known result, use a suitable Excel tool to repeat the comparison or search efficiently.
Build the original dark-store model from checked inputs
Start from the per-order arithmetic
The original chapter includes a small Kolhapur illustration with ₹3,00,000 of monthly fixed cost and ₹60 of contribution per order. If every order contributes ₹60 after the modeled variable costs, the store needs 5,000 monthly orders to cover the fixed cost. With 30 operating days that is about 166.67 orders per day on average. If you impose the same whole number each day, 167 is the smallest number that reaches break-even, and the model surplus is ₹600. With contribution of ₹50, monthly volume needs 6,000 orders, or 200 per day. These are separate inputs from the larger model that follows.
Now build the Wakad workbook case used throughout much of the chapter. Add a worksheet named Model. Put labels in column A and enter the six original input values in B2:B7. AOV means average order value in rupees per order. Gross margin is the share of recorded order value remaining after the assumed cost of goods, before the modeled delivery and monthly fixed costs. Delivery cost is a separate amount per order. Fixed cost is monthly. Keep those units next to the cells so a beginner does not subtract a per-order number from a monthly total.
| Cell | Assumption | Enter |
|---|---|---|
| B2 | Orders per day | 400 |
| B3 | Average order value, ₹ per order | 320 |
| B4 | Operating days per month | 30 |
| B5 | Gross margin percentage | 18% |
| B6 | Delivery cost per order, ₹ | 28 |
| B7 | Fixed cost per month, ₹ | 450000 |
Enter 18% directly in B5 or enter the numeric fraction 0.18 and apply percent formatting. The value used in formulas should be 0.18. If you type 18 into a General cell, then apply a percent format afterward, it can display 1,800%. Keep currency symbols in the display format. Type plain numeric 320 for average order value, and label orders and days clearly. An input in the wrong scale can produce a result that looks precise while being far from its intended meaning.
Keep the output formulas separate
| Cell | Output | Formula | Baseline |
|---|---|---|---|
| B9 | Orders per month | =B2*B4 | 12000 |
| B10 | Recorded order revenue, ₹ | =B9*B3 | 3840000 |
| B11 | Gross margin amount, ₹ | =B10*B5 | 691200 |
| B12 | Modeled delivery cost, ₹ | =B9*B6 | 336000 |
| B13 | Modeled monthly profit or loss, ₹ | =B11-B12-B7 | -94800 |
B9 moves from daily to monthly orders using 400 times 30. B10 applies gross order revenue at ₹320 per order. B11 takes 18% of that amount, producing ₹6,91,200. B12 subtracts delivery cost at ₹28 for every included order within B13. Fixed cost is ₹4,50,000. The end result is a modeled monthly loss of ₹94,800 under these classroom assumptions. If real overhead, refunds, tax or staffing costs are missing, this model cannot certify actual net profit. Use precisely the name and decision scope the included costs justify.
Another way to check is per-order contribution. An order contributes ₹320 times 0.18, or ₹57.60, before the modeled delivery cost. After ₹28 it contributes ₹29.60. Across 12,000 orders that gives ₹3,55,200 before monthly fixed cost. Subtract ₹4,50,000 and you reach the same loss. This independent arithmetic check is valuable before a What-If tool starts writing results. If the two formulas disagree, inspect the day scale, units and exact cost fields.
Stress-test the numbers before using any What-If tool
Check what happens at zero orders. In the store model the month count, revenue, gross margin and delivery cost all become zero. With the existing fixed cost assumption, the modeled result is −₹4,50,000. This is a useful control because it detects models that accidentally multiply fixed cost by orders. Now enter one daily order and inspect the result change under the same settings. Thirty individual orders contribute ₹888 before fixed costs. The model outcome is −₹4,49,112. Restore 400 after this check.
Verify that a change to one input actually reaches the formula. If you replace B13 with a typed result of −94800, B2 can change while B13 stays constant. That invalidates Goal Seek and sensitivity results even though the baseline looks correct. Click the formula bar and inspect B13, then trace its connection through B11, B12 and monthly orders. Use an intentional small input edit and calculate its expected effect. An Excel number can look like a valid formula result until you test whether it changes.
Model operating days only for the period you are planning. Thirty days at 400 per day is 12,000, while 26 days at the same daily average is 10,400. At the same contribution of ₹29.60, the shorter schedule contributes ₹3,07,840 before fixed costs and gives −₹1,42,160. The monthly number of orders required to cover fixed costs stays the same if contribution and costs stay fixed. The daily target changes because the workload must fit into fewer operating days. This difference matters if you report capacity as orders per day.
Examine a plausible cost structure change. A model that treats staff as fixed within the current range can be reasonable up to a service limit. If the store needs an extra shift after 500 orders per day, the higher volume band can introduce a step in monthly fixed costs. The graph of existing formulas only shows the linear model. Before using it to recommend 600 or more, ask whether costs or pricing rules should change at that boundary. Do not reuse a simple assumption outside its acceptable range without a visible note.
Choose the tool by the question
Decide what you know and what Excel should return
| Question | Tool | Result to check |
|---|---|---|
| How many daily orders reach zero given other inputs? | Goal Seek | One changing input and a target formula result |
| What if volume and basket value change together in a named case? | Scenario Manager | Saved groups of inputs and resulting model values |
| What does the result look like at several daily volumes? | One-variable Data Table | One input varies, with one or more linked result formulas |
| What if daily orders and average basket both vary? | Two-variable Data Table | One selected formula evaluated at two input axes |
| Which feasible mix gives the highest modeled contribution? | Solver | Decision cells subject to limits and an objective |
A sensitivity analysis shows how an output reacts to selected changes in assumptions. A Data Table is a special What-If facility that substitutes candidate values through a model. An Excel Table with headers, filters and named columns is a different sheet feature. You can use a structured Table for storing assumptions or results. Turning a range into a structured Table does not build a sensitivity calculation.
Goal Seek goes from a desired result to one input. When the short store model produces a loss, Goal Seek can change daily orders until B13 is close to zero. It does not enforce the physical requirement that an exact daily target uses whole orders or sits under capacity. Check its number against the model and the business. A different question, such as “What basket value do we need if orders stay 400?” changes a different input. Return to the recorded baseline before answering the second question.
Scenario Manager goes from named sets of inputs to the associated outputs. It can store more than one changing input per case, up to the documented 32. Showing a scenario applies its saved values to the changing cells. A scenario summary is useful for side-by-side reading, but it does not automatically recalculate from changed scenarios or model edits. Make a new checked report after an approved model change.
A one-variable Data Table can return monthly profit and revenue beside the same list of candidate order volumes. A two-variable Data Table compares values along a horizontal row and a vertical column for one result formula. Define the input cell for each direction accurately. In a table whose top headings contain prices and left column contains quantities, Row input cell is the model's price and Column input cell is its quantity. They are the original inputs the model reads, not cells within the list of candidates.
Solver can change more than one decision quantity and enforce limits, including whole-number rules where configured. In a store model a limit could be space, supplier allocation or staffing hours. You decide what objective Excel should optimize and which bounds are required. A model with multiple optimal solutions can have more than one equally valid recommendation. A model that cannot satisfy all limits has no feasible plan. Verify the result and constraints before writing a policy or purchase recommendation.
Check which options your Excel client actually offers
Use a supported desktop Excel version for the complete ribbon exercises in this chapter. Microsoft documents different support by feature. Its Data Table article includes guidance about Excel for the web, while the desktop Solver add-in has its own client and loading requirements. Check your feature and version rather than assuming every What-If tool works or is absent on a platform. The independent worksheet checks in this chapter still teach the arithmetic when a person cannot open a particular dialog.
Lab 1. Find break-even and check the business decision
Use one input for one target
- Verify the baseline inputs. Model B2:B7 reads 400, 320, 30, 18%, 28 and 450000. B13 should be −₹94,800. Save a disposable copy before trying changes.
- Run supported desktop Goal Seek. On Data → What-If Analysis → Goal Seek, set B13 to 0 by changing B2. Confirm B13 contains a formula that responds to B2.
- Inspect the root. The expected daily amount is approximately 506.7568. Per daily order, a 30-day month contributes ₹888 to the result under fixed settings. Dividing ₹4,50,000 by ₹888 verifies the root.
- Check the neighboring whole values. At 506 orders per day the model gives −₹672. At 507 it gives +₹216. Under this consistent whole-orders-per-day requirement and positive contribution, 507 is the smallest viable whole daily target for break-even.
- Test the capacity condition. If the practice store can handle at most 500 daily orders, its best modeled outcome at current unit inputs is −₹6,000. Finding a mathematical root above 500 does not make the plan feasible.
- Restore the recorded baseline. Cancel the accepted change if supported in the dialogue or re-enter the known 400. Confirm B13 returns to −₹94,800 before starting another method.
Daily orders can also represent an average across varying weekdays. An average does not have to be an integer if daily orders vary. Dividing the required monthly orders by days gives that planning average. If you want the smallest whole number of monthly orders with the same per-order contribution, calculate ₹4,50,000 divided by ₹29.60 and round up to 15,203 monthly orders. Those orders could be scheduled unevenly while averaging about 506.77 across 30 days. A policy requiring the same daily volume is different and uses the 507 figure.
A useful explanation includes a limit. “The model breaks even near 506.76 daily orders at the current basket value and cost. If we require one fixed whole daily target, 507 reaches it. A 500-order capacity cannot achieve break-even with this set of assumptions.”
Follow a break-even check
Fix the assumptions
Keep basket ₹320, 30 days, margin fraction 0.18, delivery ₹28 and fixed costs ₹4,50,000.
Calculate a contribution
₹320 times 0.18 gives ₹57.60. After ₹28 delivery the contribution is ₹29.60 per order.
Solve and verify
₹29.60 times 30 gives ₹888 per daily order. ₹4,50,000 divided by ₹888 is about 506.76 daily orders.
Check the decision
507 daily gives ₹216 surplus in this model. Capacity at 500 daily leaves a loss. Save the conclusion and restore the baseline.
Ask what else could reach break-even under the 500-order limit
Keep one input change at a time to find a useful alternative. With daily orders fixed at 500, the required per-order contribution is ₹4,50,000 divided by 15,000 monthly orders, which is ₹30. The baseline per-order contribution is ₹29.60. If price and gross margin percentage stay fixed, delivery cost would need to fall from ₹28 to ₹27.60. Alternatively at the existing delivery cost and basket ₹320 the gross margin fraction would need to reach 58 divided by 320, or 18.125%. Each conditional answer requires business evidence about whether its assumed change is practical.
At the original 400 daily orders, you can instead set B13 to 0 by changing B3 from ₹320. The target requires ₹37.50 contribution per monthly order after delivery costs. Add ₹28 for delivery, then divide ₹65.50 by the 18% gross margin fraction. The required AOV is about ₹363.8889. Check the first two neighboring paise values: ₹363.88 gives about −₹19.20 and ₹363.89 gives about +₹2.40. This assumes the model treats AOV as an input that can be set to a cent-like paise increment. Real basket values and averages depend on order mix and demand.
Report the settings with the answer. “At exactly 400 daily orders in a 30-day month, with the original gross margin and delivery cost, the required modeled average basket is about ₹363.89.” This sentence avoids confusing the price-based case with the earlier volume-based result. If the report needs price and volume to adjust together to maximize the outcome under constraints, a one-input Goal Seek run does not answer that question.
Identify cases with zero or negative contribution
On a disposable copy set delivery cost to ₹57.60 while keeping the original basket and gross margin. Each order contributes zero after delivery cost, and profit remains −₹4,50,000 regardless of daily order volume. Changing orders alone cannot reach zero. If you push delivery to ₹60, each order contributes −₹2.40. The result gets worse as orders increase, and no nonnegative daily volume can break even with the positive fixed cost. An unconstrained numeric search could propose a negative number in a simplified equation. The feasible business answer is that the current unit economics and cost assumptions cannot reach break-even by increasing volume.
Lab 2. Make a small bakery sensitivity workbook
Use a separate model to see the tools without large figures
On a second sheet named Bakery, add three input labels and two output labels. B2 is price ₹500, B3 is variable cost ₹300 per unit and B4 is quantity 20. In B5 type =B2-B3 for contribution per unit. In B6 type =B5*B4 for total contribution. Baseline total is ₹4,000. Calling it contribution makes clear the model has no separate rent, fixed salary or other cost line. If the business wants a net profit model, put confirmed fixed costs and any other omitted expenses in the worksheet.
Manually test a conditional case first. Set price to 550 and quantity to 35, holding variable cost 300. Contribution becomes ₹8,750. Set price to 450 and quantity to 12, leaving cost 300. The result is ₹1,800. These are useful named cases: Normal ₹4,000, Festival ₹8,750 and Slow ₹1,800. The changed quantities are assumptions written by the planner. They are not a statistical conclusion about customers responding to that price. Restore price 500 and quantity 20 before building the sensitivity checks.
Prepare a simple one-variable result list
Enter price candidates 350, 400, 450, 500 and 550 down D2:D6. Put =B6 in E1. In a supported Data Table dialog select D1:E6 and set only Column input cell to B2. The first candidate is ₹350, so the model's contribution there is 20 times 50 or ₹1,000. The other results are ₹2,000, ₹3,000, ₹4,000 and ₹5,000. Use your baseline quantity of 20. If Goal Seek was used earlier to leave quantity at 50, the entire table could represent a different scenario. Verify the known ₹4,000 at price ₹500 before publishing the list.
Compare price and quantity as two variables
Keep one separate range. Put =B6 in H1, top-row prices 400, 500 and 600 in I1:K1, and quantities 10, 20 and 30 in H2:H4. Select H1:K4. Set Row input cell to B2 and Column input cell to B4. The table calculates the same model at nine combinations. For the upper-left result the price is 400, variable cost is still 300 and quantity is 10, so contribution is ₹1,000.
| Quantity | ₹400 price | ₹500 price | ₹600 price |
|---|---|---|---|
| 10 | 1000 | 2000 | 3000 |
| 20 | 2000 | 4000 | 6000 |
| 30 | 3000 | 6000 | 9000 |
Read the grid as “If selling price were ₹600 and quantity 30 with variable cost ₹300, contribution would be ₹9,000.” That sentence retains the assumptions. The grid alone cannot prove that the highest price and volume are attainable together. A manager may need to check demand, ingredient supply, shipping or approved price limits. The candidate grid supplies a comparison to discuss, and the next analysis can limit choices to feasible combinations.
Explain why a one-variable sweep has a baseline
After the bakery one-column example, leave quantity at 20 and change only variable cost from 300 to 350. At price 500 contribution changes from ₹4,000 to ₹3,000. In the two-variable grid the cell at price 600 and quantity 30 changes from ₹9,000 to ₹7,500. Both changes are exactly a ₹50 increase in variable cost times the corresponding quantity. If the tables still display the old results, check calculation mode and the actual formula and input bindings. Excel supports a calculation option that excludes automatic recalculation of Data Tables. Use a supported recalculation route, then check known corners and the baseline.
Keep a plain worksheet calculation for one row so you can verify the model independently of the Data Table feature. Put the candidate price in an ordinary cell and evaluate contribution using the unchanged cost and quantity, such as =(D2-$B$3)*$B$4 when D2 is a column candidate in Bakery. This formula does not substitute into arbitrary worksheet models, but it is exact for this simple formula. Use it as a control if you cannot create the What-If Data Table in your Excel client. A limitation in menu availability does not prevent following the numerical example.
A table is only as useful as the candidates it contains. A grid at five widely spaced prices can indicate a broad direction. It can miss a threshold or a discontinuity if the price policy changes between tested values. Decide whether to add candidates around the decision boundary. If the bakery has a shelf price limit of ₹500, a tested ₹600 result is useful information about the model's shape, and it still lies outside the feasible pricing policy. Label such candidates separately before selecting a plan.
Keep the workbook auditable from one lesson to the next
Write a baseline and the inputs that are held fixed
For the store model keep a copy of the baseline and label the count, date or model version. In a separate scenario exercise use the same formula and save named combinations for normal, Ganeshotsav and monsoon slump. The original fixtures vary orders and basket value: 400 and ₹320, 520 and ₹340, and 330 and ₹300. At 30 days, 18%, ₹28 delivery and a ₹4,50,000 fixed cost, the results are −₹94,800, +₹67,920 and −₹1,92,600. Use the detailed lesson to store and replay those cases. Make it clear which inputs were held constant.
Check whether combinations are meant to move together. A planned festival case might assume more orders alongside a higher basket. A two-variable grid lets you independently pair all candidate prices with all candidate volumes. You may prefer Scenario Manager when domain knowledge says some combinations do not make sense. If an analyst changes variable cost from ₹300 to ₹350, they should generate updated results before sharing a scenario summary because the older workbook reports old assumptions.
Introduce Solver with a small, testable optimization
In the later cold-room lesson the store has 60 slots. Milk contributes ₹180 per whole crate, fruit contributes ₹260 and the supplier caps fruit at 25. The store must hold at least 20 milk crates. The solution uses 25 fruit and 35 milk, with modeled daily contribution ₹12,800. In the simple story each fruit crate replaces at most one milk crate and contributes ₹80 more. Each filled spot brings positive contribution. That provides a manual bound you can use to check the solver's output. An actual operation may add cost, spoilage, demand, safety or minimum-stock limits.
Keep the meaning of optimization precise. A solver cannot infer the real objective from a list of cells. Consider whether it should maximize contribution, minimize cost or reach a named target. The constraints state what is feasible. If the store must carry at least 40 milk crates and 25 fruit crates while keeping a 60-slot cap, there is no feasible plan. A clear model can show that infeasibility rather than forcing the inputs to a plausible looking answer. Lab 11.5 works through full Excel Solver setup and alternative cases.
Continue through the tools in a useful order
- 11.1 Goal Seek. Find one required input and verify the target and business rounding.
- 11.2 Scenario Manager. Store named assumption sets and regenerate checked snapshots.
- 11.3 One-variable Data Table. Compare a list of values for one changing model input.
- 11.4 Two-variable Data Table. Trace the row and column inputs and check exact intersections.
- 11.5 Solver. Optimize a feasible plan and verify constraints.
Challenge a favorable result before publishing it
Ask two different questions about the highest tested value in any sensitivity grid. First, what calculations produce it? Second, what evidence says the individual inputs can simultaneously take those values? A high bakery price and a high quantity do not automatically go together. A store plan that assumes fixed costs stay flat may lack a hiring step. Put the assumption and verification status in the report. The reader can then decide whether to test demand, capacity, a cost policy or a different scenario before committing.
For a first review give another student the baseline and one scenario, not the finished chart. Ask them to reproduce one monthly amount and one break-even condition with manual arithmetic. Have them suggest the tool to compare multiple named packages and the tool to solve one unknown input with a known target. Then ask which assumptions the report would need to update if supplier delivery cost or operating days changed. A clear workbook makes those answers easy to find without copying its result values.
Record the Excel client and feature used alongside the result. A classroom practice workbook can include arithmetic formulas that stay readable even when one dialog is unavailable. A PDF of a Scenario Summary needs the known model and scope built into its labels. A Solver answer needs decision values, objective and constraint checks. A Data Table needs its row and column inputs and current fixed assumptions. These records keep the same case reproducible after you leave the lesson.
Write a meaningful comparison when one fixed input changes
Practise versioning on the Wakad baseline. Suppose the approved fixed cost estimate changes to ₹4,80,000 while contribution remains ₹29.60 per order and the store works 30 days. The monthly contribution per daily order remains ₹888. The new continuous break-even is about 540.54 daily orders. A fixed target of 540 gives −₹480; 541 gives +₹408. Compare that with the original 507 fixed-order target. You can explain exactly which approved input changed and why the new line crosses zero later. Save the updated scenario and retain the original as a separate reference.
Check again if the maximum feasible daily volume is 500. At the new fixed cost, the plan for 500 daily orders gives −₹36,000. The difference from the earlier −₹6,000 at 500 matches the ₹30,000 cost increase. That independent control can help spot an unintentional change in delivery costs or month length while reproducing the scenario. A stakeholder reviewing the proposed cost source can identify why the result moved instead of assuming demand changed.
Keep practical unit labels with every output. A scenario summary can contain daily orders, monthly revenue, per-order cost, percent and monthly modeled result on one page. Set headings so the units remain obvious whenever a row is copied to email or shown in a meeting. Put a rejection reason next to a plan that exceeds capacity. For a comparison made early in the project, label the fixture as a planning case before someone treats the rounded result as a verified operational minimum.
At the end of the chapter, review which commands change working inputs, which produce separate report ranges and which are only meaningful inside a supported model. Restore the inputs and recheck B13. If you keep a baseline and a revised model in the same file, name both sheets clearly and label which formulas were applied when taking each result. A saved model with both formulas and clear test values lets another learner recreate the results without guessing which previous case is active.
Check your understanding
Five shorter practice questions
Which cells are inputs in the Wakad practice model?
B2 through B7 contain typed assumptions. B9 through B13 calculate results. Goal Seek changes a chosen input and leaves the target cell as a formula.
What does the initial −₹94,800 show?
It is the modeled monthly loss after the specified order contribution, delivery and fixed costs. It depends on the six verified practice assumptions.
Can the store break even if capacity is 500 at baseline inputs?
No. At 500 the model gives −₹6,000. Its numeric root near 506.76 exceeds the stated daily capacity.
In the bakery grid, which cell is Row input?
B2 is price because its candidates run across the top row. B4 is quantity because its candidate values run down the first column.
What happens if you update a scenario after creating its summary?
Regenerate a checked summary after updated assumptions or model changes. The old report is a static snapshot.
Five interview questions with worked answers
How is Goal Seek different from Solver?
Goal Seek adjusts one input for a formula target. Solver can optimize or target a result for several decision cells under explicit constraints.
When would you use Scenario Manager instead of a Data Table?
I use scenarios when I want named bundles of related assumptions. A Data Table compares a systematic list or grid of independently tested inputs.
Why retain the baseline before running what-if tools?
Some actions apply new values to the live changing cells. Restoring a known baseline makes outputs from later exercises comparable and keeps assumptions clear.
How do you know an optimization result is useful?
I check the calculation, decision values, constraints and scope. I distinguish a valid solution under the model from operational capacity, demand or missing costs.
Can a sensitivity result forecast what happens next month?
It shows what a defined model calculates for chosen assumptions. It does not establish which input combination will occur. That requires independent evidence and a forecasting approach.
Revision cards
- Input. One consistent unit and a recorded starting value.
- Output. A formula that reads the decision input.
- Goal Seek. One input for a target. Check feasible rounding.
- Scenario. A named input set. Regenerate an updated summary.
- Data Table. Planned sensitivity candidates and verified cell geometry.
- Solver. Explicit objective, decision cells and constraints.
Save the original What-If tools revision card and break-even revision card for offline practice. More operations and formula examples are in the Excel Task Hub.