11.4 Two-variable Data Table
Compare combinations of two assumptions in the same model
The fictional Wakad grocery team faces two unknowns. Orders per day may change and the average value of each order may change. A one-variable table built around 400 daily orders answers whether a higher basket helps at that one volume. It cannot show whether a different mix of volume and basket crosses the break-even threshold. A two-variable Excel Data Table evaluates one result formula for every combination of a supplied row and column of candidates.
This lesson keeps the original Wakad ranges, assumptions and three-by-three result grid. The numbers are fictional for a Blinkit-style operation. You will verify the original daily volume and basket combinations, then build a second table for daily volume and margin percentage. You will use exact cell intersections and independent arithmetic to check both tables. Finally you will identify which tested choices satisfy a business constraint instead of assuming the largest displayed result is feasible.
Identify one output and two original inputs. The Row input cell matches values across the top. The Column input cell matches values down the left.
Recognize when this tool fits the decision
- One output measure. This Data Table answers for a modeled monthly result. Make another checked table for revenue if you want that measure across the same pairs.
- Two variable lists. One set of alternatives across and one set down. The model output must respond to both independent model inputs.
- Remaining settings fixed. Keep common days, margin, delivery and fixed cost at the checked settings unless they are the variable being tested.
- One value for every tested pair. A three-by-three grid has nine outcomes. It may omit a useful exact threshold between candidates.
Choose Scenario Manager when you want to replay only particular proposed input packages. A scenario can use one combination of high volume and average basket while another deliberately changes the delivery cost too. A Data Table instead tests the cartesian grid of the chosen row and column lists. If some pairings are unrealistic, label or screen those outcomes. If you need a best feasible plan within many constraints, use a suitable optimization model.
State what a pair of answers means
Imagine the operations team is considering 500 daily orders and the commercial team proposes a ₹350 average basket. The modeled output of ₹75,000 says how the workbook would calculate the month if both are reached along with the other held assumptions. A consumer response study could find that raising prices reduces order volume or changes basket composition. That study is a different task. In the worksheet a row and column are independent hypothetical axes, so a result can describe a combination that needs more evidence to justify as a plan.
Write one planning question near the grid. “At these candidate daily volumes and basket amounts, what would the recorded month look like with 18% gross margin, ₹28 delivery and ₹4,50,000 fixed cost?” A reader who only sees the cells can then tell when the model would no longer apply. A typed starting case of 400 daily may be known or hypothetical. Indicate its status and which held settings have actually been verified. This makes it easier to use the grid without treating every tested pair as equally likely.
Verify the model before building a grid
Make sure the result uses both inputs
Open the Model worksheet from the chapter overview. B2 is daily orders at 400 and B3 is AOV at ₹320 per order. B4 has 30 operating days, B5 has the numeric margin fraction 0.18, B6 has ₹28 delivery cost per order and B7 has ₹4,50,000 fixed costs. The output is B13. It takes B11 gross margin amount less delivery cost B12 and fixed cost B7. Ensure B9:B13 still contain their original formulas.
B9 =B2*B4
B10 =B9*B3
B11 =B10*B5
B12 =B9*B6
B13 =B11-B12-B7
Read the two dependency paths. Changing daily orders in B2 changes B9, then both revenue and delivery cost. Changing basket in B3 changes revenue and gross margin, with delivery cost unchanged at a fixed volume. At the original settings you should see −₹94,800. Try changing only B3 to ₹350, expect −₹30,000, and reset. Then change only daily orders to 500, expect −₹6,000, and reset. Those checks prove that both intended inputs change the result through distinct paths.
Do this before generating the table. If B13 was replaced with a typed amount or if the model uses a different editable input than the intended one, every generated intersection can be wrong. A wrong input can still produce output numbers that vary. One correctly matched baseline and one asymmetric off-baseline comparison make the sheet easier to check. You can verify those chosen cells by calculating the expected arithmetic independently.
Use the original rectangle and align the axes
Keep the two editable inputs B2 and B3 outside the selected grid, on the same Model sheet for this exercise. Enter =B13 in H2. Type basket amounts 300, 320 and 350 across I2:K2. Put daily order candidates 400, 500 and 600 down H3:H5. The calculated values will go in I3:K5. The top-left corner H2 needs its formula link even if you later apply a label or number format for presentation. Put clear units around the grid without replacing that formula.
Choose dimensions without mixing their units
In the original grid daily orders are counts per operational day, and average basket is rupees per order. Even though 400 and 350 are both numbers, substituting them into the opposite model inputs changes what the formula measures. Put full labels beside both candidate lists. Label the H2 formula separately outside the selected rectangle if useful. A note over I2:K2 can say “Basket amount, ₹ per order.” A note left of H3:H5 can say “Orders per day.” Keep the linked input addresses with the worksheet design so a reader can repeat the setup.
A table with 3 order possibilities and 3 basket possibilities tests 9 pairings. If you add 4 order values and 5 basket values you have 20 outcomes, even if some pairs are out of bounds. A longer list can be useful when the reader asks for a different set of approved volumes. During build start with the 3-by-3 case, verify exact rows and columns, then widen the scope if needed. This is especially helpful when a table recalculates a larger chain of linked formulas for each tested pair.
Lab 1. Build and test the orders-by-basket table
Fill the calculation space using the correct original input cells
- Verify the baseline. Confirm Model B13 shows −₹94,800 with 400 daily and ₹320 basket.
- Enter both candidate lists. Use the exact H3:H5 and I2:K2 locations described above and read the units beside them.
- Place the result link. H2 contains
=B13. Check it shows the current result before building the table. - Select the complete range. Choose H2:K5, including formula, two candidate axes and the result body.
- Open the supported Data Table command. Use a desktop client with the Data → What-If Analysis → Data Table control. For other clients check the feature documentation and use the independent worksheet calculation when needed.
- Set the inputs. Row input cell is B3 for basket, and Column input cell is B2 for orders. These addresses belong to the model. They are not the top row and left column headers of the Data Table itself.
- Check the resulting numbers. Compare the entire grid, then confirm the two original editable model cells still hold their intended baseline.
| Orders per day | ₹300 AOV | ₹320 AOV | ₹350 AOV |
|---|---|---|---|
| 400 | -138000 | -94800 | -30000 |
| 500 | -60000 | -6000 | 75000 |
| 600 | 18000 | 82800 | 180000 |
Take the middle at 500 daily and ₹320. At 15,000 monthly orders the gross margin amount per order is ₹57.60. After delivery it contributes ₹29.60. Multiply to get ₹4,44,000 before fixed costs. The result is −₹6,000. In the upper right, 400 daily and ₹350 gives 12,000 orders, ₹63 gross margin per order before ₹28 delivery and ₹35 contribution afterward. That gives ₹4,20,000 and a −₹30,000 result. The two independent values verify correct orientation and formula linkage.
Suppose you accidentally bind Row input to daily orders and Column input to basket. At an intersection labeled 400 daily and basket 350 the model now reads 350 daily and basket 400. It calculates a different question and returns ₹12,000. The incorrectly bound values appear plausible because both inputs are measured as numbers in a similar range. Only checking that cells change would miss the mismatch. Check an off-diagonal point and write its units clearly in the report.
Trace the 500 orders and ₹350 basket combination
Read the column candidate
H4 supplies 500 daily orders. Column input cell B2 receives that model value for the evaluation.
Read the row candidate
K2 supplies ₹350 AOV. Row input cell B3 receives that value.
Apply the model
Fifteen thousand orders contribute ₹35 each after delivery. Total before fixed costs is ₹5,25,000.
Check the selected result
Subtract ₹4,50,000 fixed cost. K4 should show +₹75,000.
Read boundaries without relying on a grid's color
At ₹350 AOV, 500 is the first positive value among the original displayed candidates 400, 500 and 600. The exact break-even level is about 428.57 daily orders because after delivery each order contributes ₹35 and per extra daily order the month gains ₹1,050. For a fixed whole daily rate, 429 gives +₹450 and 428 gives −₹600. State the distinction between “first positive row in this grid” and “minimum feasible whole volume under the current model.”
At ₹300 basket, per-order contribution is ₹26 and the monthly contribution per daily order is ₹780. Break-even is about 576.92 daily orders. At 577 the model shows +₹60 and at 576 it shows −₹720. At ₹320, the previous lesson's root is about 506.76, with 507 the first fixed daily whole candidate to reach zero. A clear sensitivity report can list these checked thresholds alongside its coarser grid.
Read the change along each axis in rupees
Move across the original 400-order row from ₹320 basket to ₹350. The ₹30 increase makes ₹5.40 more gross margin per order at 18%. Apply it to 12,000 monthly orders to get ₹64,800 improvement, from the ₹94,800 loss to the ₹30,000 loss. On the 500-order row the same ₹30 basket change applies to 15,000 orders, giving ₹81,000 improvement. On the 600-order row it gives ₹97,200. A two-variable sweep shows that the effect of one input depends on the other.
Move down from 500 daily to 600 while keeping a ₹300 basket. You add 3,000 monthly orders at ₹26 contribution each, improving by ₹78,000. At ₹350 basket the contribution is ₹35 per order, so that same volume change improves by ₹1,05,000. This is an interaction. Volume multiplies a contribution affected by basket and margin. A price and quantity interaction does not automatically make the what-if workbook unreliable; it tells you which other conditions you must state when describing a change.
These exact differences help catch a reference mistake. If changing AOV from ₹320 to ₹350 moves the 400-order row by an identical amount as the 600-order row, check whether the same daily count is being used twice. If the per-order contribution changes when volume moves under the formula, inspect the cost rules. The original case uses fixed unit costs. A different model with tiered rates can change the pattern for a legitimate reason. Recompute one transition by hand before diagnosing a formula as wrong.
Also solve the frontier from the other direction
At 400 daily orders the exact break-even basket under the baseline is about ₹363.8889. At 500 daily, required contribution per order is ₹30. Add ₹28 delivery to get ₹58 gross before delivery and divide by 18%, yielding about ₹322.2222 basket. At 600 daily, the required contribution per order is ₹25. That gives a required gross amount of ₹53 and basket of about ₹294.4444. These three thresholds answer what average basket would be needed for each volume. They explain why 500 and ₹320 falls short even when 500 and ₹350 clears the target.
Keep these worked boundary figures separate from the nine table cells. None of these three exact basket heights is a candidate in the original grid. If you need a nearby check, add specific candidates farther to the right on a new range and verify them. In a pricing exercise use the allowed precision and monotonic direction. A fraction smaller than the exact threshold can show a rounded zero while the modeled result remains below it. Compare the precise result before labeling a break-even condition.
Lab 2. Combine order volume and gross margin
Switch the variable across the top without changing the original basket
On the same Model sheet or a clean copy, keep the average basket B3 at ₹320. In H9 put =B13. Put gross margin percentages 15%, 18% and 21% across I9:K9 and 400, 450, 500, 550 daily orders down H10:H13. Use actual numeric percentages or their underlying fractions. Select H9:K13. In this table Row input cell is B5, the model margin percentage, and Column input cell is B2. Keeping B3 as Row input would substitute 0.15 or 0.18 as a rupee basket value. Check that unit before running the table.
| Daily orders | 15% margin | 18% margin | 21% margin |
|---|---|---|---|
| 400 | -210000 | -94800 | 20400 |
| 450 | -180000 | -50400 | 79200 |
| 500 | -150000 | -6000 | 138000 |
| 550 | -120000 | 38400 | 196800 |
- Check one baseline result. At 400 and 18%, the result remains −₹94,800.
- Check a high-margin result. At 450 and 21%, you have 13,500 orders. Each contributes ₹39.20 after delivery, giving ₹5,29,200 before fixed costs and ₹79,200 after.
- Find feasible positive cells. If the maximum daily volume is 500, exclude the 550 row as a possible plan. With the tested margins, 400, 450 and 500 can all return a positive result at 21%.
- Find an exact boundary. At 500 daily orders and ₹320 basket, 15,000 total orders require ₹30 contribution each. With delivery at ₹28, gross margin must be 58 divided by 320, or 18.125%.
- Check label and formatting. Use “Modeled monthly result in rupees.” Apply meaningful rules to the result block and keep signs visible, including a possible exact zero.
At 450 daily orders the contribution needed per order is ₹4,50,000 over 13,500. That is ₹33.3333. Add ₹28 delivery, then divide by ₹320 to obtain just over 19.16%, about 19.1667% gross margin. The three selected margin candidates tell you which tested combinations are profitable. They do not by themselves give every rate between 18% and 21%. Use exact arithmetic or Goal Seek for the continuous threshold, and later test feasible precision and policy.
Show which results are below, at or above target
A red-to-green color scale can help show the range from low to high, but its midpoint can be based on the distribution of values rather than break-even. For this business rule use explicit conditional formatting for values below zero, equal to zero and above zero. Add a simple text key so a reader knows what a fill means. A three-color scale can instead use a numeric zero midpoint where your layout supports it and zero falls inside the scale bounds. Retain numeric signs and values so the result is interpretable without color.
Restrict formatting to the output cells, not the top row or its formula link. A low input rate and a loss are different things. A rule applied to the entire grid can accidentally color a ₹300 basket value or an order count as if it was a profit. Confirm the Applies to range and test a known positive, negative and zero on a disposable copy. If a very small floating residual visually rounds to zero, check the business rule and compare units before assigning the status.
Compare a second native output in its own grid
In another area on Model repeat the first candidate lists. For example in N2 enter =B10, in O2:Q2 place ₹300, ₹320 and ₹350, and in N3:N5 place 400, 500 and 600. Select N2:Q5 and use Row input B3 and Column input B2. This new grid calculates revenue because its corner is linked to a different model output. At 400 and ₹300 expect ₹36,00,000. At 500 and ₹350 expect ₹52,50,000. At 600 and ₹350 expect ₹63,00,000. Label the two grids distinctly.
Compare key intersections with the main profit grid. For 500 and ₹350, modeled revenue is ₹52,50,000, modeled gross margin is ₹9,45,000, modeled delivery costs are ₹4,20,000 and fixed costs are ₹4,50,000. This adds up to the expected result ₹75,000. The second grid can help bridge a large revenue figure to a much smaller modeled result. If you switch the two native tables' header formulas or accidentally use the same input for Row and Column, checking those figures reveals the mismatch.
Pick only additional measures you can explain. A separate result could show monthly order count and produce one identical value across each row because AOV does not influence orders in the simplified model. A table of revenue naturally responds to both inputs. A margin rate of modeled result divided by revenue would need an explicit guard if a candidate represents zero revenue. This lesson chooses direct profit and revenue because the business comparison and both dependencies are clear.
Hold a third assumption as a clearly separate test
Suppose procurement wants to check delivery cost of ₹26 instead of ₹28 while still comparing volume and basket. You can rerun the original two axes after setting delivery to ₹26, or save a separate copy of the model with the different constant and clear label. At 500 and ₹320 the change gives a positive result of ₹24,000. Previously it gave a loss of ₹6,000. The ₹30,000 improvement is ₹2 saved per order for 15,000 orders. The original and new grids share the same axes but different common assumptions.
Keep an older grid as a labeled snapshot or maintain two intentionally separate models if you need parallel interactive versions. Two ordinary Data Tables pointing to the same live model cannot simultaneously hold different delivery assumptions without separate controlled references. Do not rewrite the active setting and compare a stale static image with a current table under the same label. A third varying input does not fit the two fields in the native dialog; it changes how you organize the experiment.
Audit the result without depending on the menu
Use one explicit mixed-reference check for the stated model
In a separate verification copy use the same H3:H5 and I2:K2 candidate coordinates. Instead of generating a special Data Table, put =$H3*$B$4*(I$2*$B$5-$B$6)-$B$7 into I3 and fill across and down. This reproduces the specific Wakad formula directly. The dollar sign in $H3 fixes the candidate column while allowing the row to change. In I$2 it fixes the candidate row while allowing the column to change. The other absolute references keep common inputs at their specified cells.
A working Data Table uses the general output formula connected to the model. The manually filled grid expresses the same direct arithmetic only while the formula and candidate positions are understood. If you later add tiered staff costs or another rule to B13, update the manual formula or use it to check limited candidates that still follow the same assumptions. This independent route gives a reliable fallback when the native command is unavailable. It is not a universal replacement for a table that needs to recalculate a complex workbook.
Record the known assumptions every time you publish a grid
- Axes. State what is across and down and show the units. Share the original input addresses and result formula.
- Held settings. Document operating days, fixed costs and the assumptions outside the two candidate axes.
- Tests. Check at least one corner and one interior point against independent calculations.
- Status. Record which choices are valid under constraints and distinguish one known zero from uncalculated cells.
- Version. Confirm the actual recalculation state before exporting and label static copies with their model assumptions.
At most 500 daily orders and basket no more than ₹320, none of the original tested pairs reaches zero if the other assumptions stay fixed. The largest feasible tested result is −₹6,000 at 500 and ₹320. At that same volume, ₹350 has a positive expected result but violates the assumed basket ceiling. The grid supplies evidence for the next conversation about unit economics or approved constraints. Adding more candidate values outside the allowed limit cannot solve a constrained business problem.
Diagnose a surprising table systematically
- Corner shows no result. Read H2 in the formula bar. It should contain the link to B13. Test the model's baseline output before building the grid.
- Columns or rows are identical. Manually change each original input outside the table. If B13 responds only to one, inspect the other formula path and dialog field.
- Off-diagonal values have the wrong sign. Check a case that uses different candidate numbers on each axis, then review the original input bindings and units.
- All values changed after a new model version. Inspect a held input such as fixed cost. A change there affects every conditional result; label the plan version.
- A cell looks like zero. Check the actual value, format and business tolerance. A blank generated result has no measured sign. Decide how to display a valid exact zero.
- A screenshot conflicts with the workbook. Check the original held values, selected table range and whether the exported image used up-to-date calculation.
Take a copy and adjust fixed cost to ₹4,80,000. All nine original basket-and-volume results should fall exactly ₹30,000. Baseline 400 and ₹320 becomes −₹1,24,800. The intersection at 500 and ₹350 becomes ₹45,000 rather than ₹75,000. A uniform shift is expected for a common fixed amount. If instead the change is proportional to daily volume, check whether you edited the delivery cost cell or whether the formula applies the wrong scale to fixed costs.
Use a compact title for each report and document how stale or missing results appear. Microsoft documents recalculation options that can skip automatic Data Table recalculation. Check the actual table after a change even if its header formula displays the new B13. Recalculate as needed in a supported client and compare exact known values on both axes. A changed model result in the corner does not prove that every generated cell reflects it.
Translate the table into a feasible proposal
Ask what “viable” means this time. On a fixed model, the largest feasible tested volume is 500 and largest allowed basket is ₹320. The result there is still below zero by ₹6,000. A tested 550 margin row may exceed volume limits even though it has a positive result. A basket of ₹350 at 500 brings positive modeled value but exceeds a ₹320 approved maximum. You need a change inside the approved decision space. If margin around 18.125% is realistic, it is a useful condition to investigate. If an approved cost reduction stretches delivery down to ₹27.60 under the same volume, it supplies another conditional route to zero.
In your review distinction, a Data Table can show a candidate region worth exploring and calculate exact tested results. It does not calculate the likelihood that volume and basket will each reach their tested values. It also does not enforce limits unless your own formula or an interpretation rule does. To check whether a quantity, price or staffing plan satisfies several constraints at once, write those conditions and test the outcome separately. A spreadsheet grid full of positive colors is insufficient evidence if the candidate units do not meet operating rules.
Teach a peer to reconstruct a chosen intersection
Give a classmate the axis labels and ask them which original model cells the table changes. Ask them to compute I3 and K4 manually, using actual days and baseline costs. They should find −₹1,38,000 and +₹75,000. Then ask them why the ₹320 and 500 case cannot break even. When they can explain the factor of 30, the per-order contribution and the fixed amount, the sheet conveys the mechanism rather than just a set of numbers.
Finally ask the classmate to state what happens when fixed costs increase while both candidate lists stay unchanged. Have them reconcile one result and show where a new report should record the value. If their answer is “the cell turns a different color,” have them find the actual amount and the matching date basis. This short review catches both formula mistakes and decisions hidden behind a decorative heat map.
Confirm numeric inputs and show status separately
In the margin exercise, inspect the formula bar for the actual numeric candidate. A displayed 18% should represent 0.18. A value entered as 18 then formatted after entering can be 1,800%. A percentage typed as text might remain text depending on the entry and locale. Validate the candidates and avoid blanks so the table does not silently evaluate an unintended zero or invalid candidate. Keep a known comparison at 400 and 18% because that row should match the original −₹94,800.
You can create a companion status view outside a native table's generated outputs. If the exact decision uses positive or negative values, compare the model amount directly to zero. If the practice accepts an approximate numerical tolerance, document it. For example a rupee difference whose absolute value is below ₹0.01 might be displayed as “Within practice tolerance.” That display rule is not a claim that regulations or the business tolerate the same amount. Do not type a label into a generated result cell, and preserve a separate unavailable status for errors or missing calculations.
Build the independent margin formula for another student
When Excel's What-If dialogue is unavailable, put the same numeric margin candidates across I9:K9 and order candidates down H10:H13 on a Model practice copy. In I10 you can calculate =$H10*$B$4*($B$3*I$9-$B$6)-$B$7 and fill across and down. It deliberately varies the right two inputs at each intersection. Notice that B3 is fixed in this formula while the first grid fixes B5. Changing a cell format does not change which input the formula reads. Check I10, J12 and K13 to verify both axes and the extent of the result.
Under that manual formula I10 at 400 and 15% returns −₹2,10,000. J12 at 500 and 18% returns −₹6,000. K13 at 550 and 21% returns ₹1,96,800. Have a classmate compute one point independently and inspect the relative and fixed references when copying. Write whether your review used the native table or the exact ordinary formulas. This helps someone reproduce the path supported in their own environment.
When the approved question changes, save a separate table with its exact assumptions. For example, a new set of approved ticket values should identify rupees per order and carry the same volume units. Mark whether each table uses the original 30-day calendar or an updated operating schedule. If you compare tables, put their differing assumptions in the visible headers. This makes a correct conditional result less likely to be reused as though it applied to the wrong planning case.
Check your understanding
Five short practice questions
Which cell goes into Row input in the original grid?
B3, the original basket input. ₹300, ₹320 and ₹350 are written across the top.
What is in H2?
The link to B13, the modeled result formula. Do not replace it with a printed heading when building the table.
What is the original result at 500 orders and ₹350 basket?
₹75,000. Fifteen thousand orders contribute ₹35 each after delivery. Fixed costs are ₹4,50,000.
Can a 500 daily cap and ₹320 maximum basket reach break-even in this model?
No. The largest allowed tested volume and basket give a ₹6,000 modeled loss while the other assumptions are held as stated.
What should change when the top row contains margin percentages?
Set Row input to B5, the numeric margin input cell, while Column input stays B2 for daily volume.
Five interview questions with worked answers
Can you use one native two-variable table for both amount and revenue?
Each two-variable table has one output formula at its corner. I build a separate checked grid if another output is needed under the same candidate values.
How would you identify swapped input bindings?
I check one known pair with distinct values and test its expected output manually. The row field must refer to the input represented across the top, the column field to the other original input.
Does the first green cell mark the exact break-even limit?
It marks a shaded tested candidate according to your rule. A coarse grid may omit the exact boundary. I check exact mathematics and feasible nearby values.
Why might you prefer scenarios for planning bundles?
A named case can keep several related assumptions together. A two-axis table tests all combinations systematically, including ones a business may reject.
How do you check the grid is ready to share?
I verify axes, held assumptions, live formula binding, calculation status, exact outputs and relevant constraints. I make static snapshots clearly identifiable.
Revision cards
- Corner. One cell links to the one desired result formula.
- Across. Candidate headings correspond to Row input cell.
- Down. Candidate headings correspond to Column input cell.
- Check. Recalculate the baseline and one off-diagonal point independently.
- Boundary. Tested sign and exact break-even answer different questions.
- Feasibility. Filter conclusions by the model's real constraints.
Continue to Solver for a multi-variable decision subject to explicit constraints, or use the Excel Task Hub for more model cases.