Ravindra BagaleCourses & study guides मराठी Track your progress

11. What-If Analysis

Excel

11.2 Scenario Manager

Store the assumptions that belong together

Imagine a fictional grocery delivery planner preparing staffing and supply notes for a festival month. She expects more orders and a different average basket than in a normal month. A monsoon case includes fewer orders and a lower average basket. If she changes one cell and forgets to reset another, the next report can quietly mix half of the festival assumptions with half of the monsoon assumptions. Excel's Scenario Manager gives each planned set a name and remembers which values to apply together.

This lesson continues the Wakad store model from the overview. Its data is fictional and illustrates a Blinkit-style business. You will save Normal, Ganeshotsav, Monsoon slump and Diwali settings in one worksheet. The same input-driven model calculates each case. You will check both reported revenue and modeled result, then deliberately create an older and updated scenario summary to see why a saved report needs its own version.

A scenario saves a named group of editable inputs. Showing it applies those values. The formulas calculate the results, and a generated summary records the model in that version.

Choose named cases when the assumptions move together

  • One target, one unknown. Goal Seek can answer how many daily orders reach zero while all other settings stay fixed.
  • Two or three related assumptions. Scenario Manager can replay a named set such as the festival case, where volume and AOV change together.
  • Several tested values of one or two variables. A Data Table helps compare a systematic list or two-axis grid.
  • A best feasible decision. Solver can optimize an objective with explicit decision bounds across multiple cells.

The scenario's values are inputs someone has chosen for planning. The spreadsheet calculates their consequences. It does not assign a probability or forecast whether the festival volume will occur. Use descriptive assumption names rather than automatically calling them “best” or “worst.” Diwali produces a larger modeled result in the given set. Another case could be better for delivery capacity or cash requirements, which aren't included here.

Use an assumption card that someone can challenge

For each case write who proposed it, which period it represents and why the inputs belong together. Normal starts from the practice operating baseline. Ganeshotsav uses a higher expected basket and a higher daily volume assumption for a 30-day comparison. Monsoon slump reduces both values. Diwali includes more orders and a higher delivery cost per order. Each name is a memory aid for a distinct set of decisions, not a statement of what always happens during that event. If you later get better estimates, record the source and date first.

Agree on the scope before comparing scenarios side by side. These cases use 30 operating days, the same margin percentage, the same fixed costs and the same categories of revenue and delivery costs. A plan for ten festival dates would need another time assumption and carefully allocated fixed costs. A chart that puts the shorter event's result against a full month without a clear label can make a larger business look smaller. Use identical time bases when the question asks for a comparable monthly result.

Start from the original Wakad worksheet

Write down changing values and shared assumptions

Use the original Model worksheet with typed assumptions in B2:B7. B2 is orders per day and B3 is average order value in rupees. B4 is 30 operating days, B5 is the 18% gross margin fraction, B6 is rupees of delivery cost per order, and B7 is ₹4,50,000 fixed cost per month. Calculate monthly orders in B9 with =B2*B4, revenue in B10 with =B9*B3, gross margin amount in B11 with =B10*B5, and delivery cost amount in B12 with =B9*B6. B13 is =B11-B12-B7, the modeled monthly result under the specified costs.

Use B2, B3 and B6 as the changing cells for every saved case. The original Normal, Ganeshotsav and Monsoon slump fixtures share ₹28 delivery cost. Diwali changes it to ₹32. Explicitly store all three values in every case, so showing Normal after Diwali resets delivery to ₹28. Hold B4, B5 and B7 constant while comparing the cases. A changing cell should be an editable model input. Result cells such as B10 and B13 should retain their formulas.

Fictional named cases. The same six-input model calculates each result.
ScenarioB2 orders/dayB3 AOV ₹B6 delivery/order ₹Monthly revenue ₹Modeled monthly result ₹
Normal400320283840000-94800
Ganeshotsav52034028530400067920
Monsoon slump330300282970000-192600
Diwali600360326480000140400

Verify Normal before adding any case. Daily volume 400 across 30 days means 12,000 orders, at an average of ₹320, or ₹38,40,000 of recorded order revenue. Gross margin at 18% is ₹6,91,200. Modeled delivery costs ₹3,36,000, and fixed cost ₹4,50,000 makes the result −₹94,800. A correct baseline shows that the percentage, amount and time scale are working together. Retain this initial calculation in Notes so you can recover it later.

Use meaningful names for the selected cells

In a supported Excel client you can use the Name Box or the Define Name feature to give individual inputs and outputs clear workbook-level names. For this practice use OrdersPerDay for B2, BasketValue for B3, DeliveryPerOrder for B6, MonthlyRevenue for B10 and ModeledResult for B13. Verify each name resolves to the expected cell. Microsoft explains that an existing name can appear in a Scenario Summary instead of a raw cell address. Keep sheet and cell references documented as well. A name can remain descriptive after you reorganize a model only if it still points to the intended cell.

Use one definition per input across all saved cases

If you receive basket estimates for both placed and delivered orders, decide which population the model uses and apply it consistently. AOV in this exercise is the average amount per modeled order. Every order in the model contributes to gross amount and incurs the modeled delivery cost. A real business can have cancellations that affect the two measures differently. This simplified workbook assumes those details are already reflected in its inputs. A case using one definition of orders should not silently borrow a basket estimate for another.

Input names can also conceal the wrong units. For Diwali, “delivery 32” means ₹32 per order, not ₹32,000 for the whole month. A generated report that only shows “32” requires a unit label in Notes or in its visible title. A daily count will become 18,000 per month once the model multiplies by days. If someone enters 18,000 in the daily cell and the result jumps, check units before changing formulas. Writing the dimensions beside the assumptions makes a scenario easy to audit even after it moves to a summary worksheet.

Four input sets apply to the same Wakad model: Normal 400, 320, 28; Ganeshotsav 520, 340, 28; Monsoon slump 330, 300, 28; Diwali 600, 360, 32.
Read each case as a package of daily orders, average basket and delivery cost per order. Other model assumptions remain common.

Lab 1. Save and replay the four cases

Build the scenario list using the same input cells

  1. Work on the model copy. Confirm the Model worksheet is active and B13 shows −₹94,800. Keep a saved baseline with original formulas and values.
  2. Open Scenario Manager. Use the supported desktop Data → What-If Analysis → Scenario Manager command. Menu groups can differ by version. Check the feature in the Excel client you actually use.
  3. Add Normal. In Add select the three changing cells B2, B3 and B6 and confirm the chosen references. Where the dialogue supports range selection, select B2:B3 and add B6 as a nonadjacent cell. Enter 400, 320 and 28 beside their correct addresses.
  4. Add three more named cases. Use the same input cells for Ganeshotsav, Monsoon slump and Diwali and enter each row of values above. Check the order of addresses in the prompt. The labels only help you if you confirm they match what the model reads.
  5. Show a case and inspect working cells. Choose Ganeshotsav then Show. Expect B2 520, B3 340, B6 28, B10 ₹53,04,000 and B13 ₹67,920. Keep the output formulas intact.
  6. Replay in a different order. Show Diwali first, then Normal and Monsoon slump. In both cases after Diwali B6 should move back to 28. Verify the values directly. Show Normal when finished to restore the known input package.

Microsoft documents that a scenario can store up to 32 changing values. A scenario can leave numerous formulas and other assumptions outside its saved set. The model page should have a manageable number of explicit inputs so you can tell whether a result comes from the named case or from a current value outside its scope. The example uses only three. For several collaborators or many scenarios, agree on shared cell and meaning conventions before exchanging files.

In a client that does not let you select the three addresses in a compatible Scenario Manager session, calculate the four case outcomes with the independent worksheet route below. You can also use a practice model with a deliberately contiguous editable input area and have the formulas refer to it. Do not move the live input cells of an established workbook without checking its formulas and expected result addresses. The chapter retains the baseline B2, B3 and B6 semantics.

Check the numbers behind a festival case

Diwali assumes 600 daily orders for 30 days, or 18,000 orders. At ₹360 average basket, revenue is ₹64,80,000. Gross margin at 18% is ₹11,66,400. Delivery costs are 18,000 times ₹32, or ₹5,76,000. After ₹4,50,000 fixed cost the modeled result is ₹1,40,400. If the dialogue stores delivery at ₹28 instead of ₹32, the result is ₹72,000 higher. This difference is exactly 18,000 orders times ₹4 per order. Use this control to catch a lost assumption or misordered entry.

Ganeshotsav has ₹33.20 contribution after delivery for each included order. Multiply by 15,600 orders to get ₹5,17,920 and subtract fixed cost, giving ₹67,920. Under Monsoon slump each order contributes ₹26, and the monthly volume of 9,900 gives ₹2,57,400 before fixed cost. Its result is −₹1,92,600. A table of expected signs is useful, but exact checks can tell you which input is wrong. Keep an independent calculation readable for the next person.

Replay Diwali and return to Normal

  1. Choose the package

    Diwali sets orders per day 600, basket ₹360 and delivery ₹32. The saved case changes these three inputs together.

  2. Calculate the results

    Revenue is ₹64,80,000 and modeled monthly result is ₹1,40,400 at the agreed common costs and margin.

  3. Show Normal

    Orders return to 400, basket to ₹320 and delivery to ₹28. Revenue returns to ₹38,40,000.

  4. Prove the reset

    Confirm B13 returns to −₹94,800. If it reads −₹1,42,800, check for a ₹32 delivery assumption left behind.

Show the difference between setting a case and editing it

When you show Ganeshotsav, Excel applies that scenario's stored values to the editable cells. If you later type 500 over B2 in the working sheet, the model changes for that worksheet state. Do not assume that the saved Ganeshotsav package now holds 500. To revise the saved package, use Scenario Manager's editing controls or create a new clearly named case and verify its cells. Show the original stored case again to observe what was saved. Maintain two variants if the old inputs remain relevant for comparison.

Try the suggested 500 version under the original ₹340 basket and ₹28 delivery cost, with 30 days and 18%. The modeled result is ₹48,000, less than the original Ganeshotsav result of ₹67,920. The amount difference of ₹19,920 is the 20 daily-order reduction times 30 days times ₹33.20. A lower daily volume can still be the right option if the practice analysis caps capacity at 500. Save the new case with a descriptive name like “Ganeshotsav · cap 500” and state the assumed changes.

To diagnose scenario values, write down the exact addresses and current numbers after each Show. Compare the expected count, basket and cost rather than relying only on a large green summary. If the case's input field selection shows a different sheet, check whether you copied a model or reopened the workbook at another tab. Name the active worksheet. A workbook can contain scenarios on multiple worksheets with similar case names. Use the tool on the sheet intended to hold that case.

Lab 2. Generate a summary and check whether it is current

Choose useful result cells and label the snapshot

  1. Start from a known current case. Show Normal and confirm the 400, 320 and 28 cells. This makes the Current Values column easier to explain in the practice report.
  2. Open the summary dialogue. Select Summary in Scenario Manager and choose a Scenario Summary. In result cells, select B10 for revenue and B13 for modeled result. If your range picker needs a contiguous choice, select B10:B13 and keep the intermediate margin and delivery totals clear.
  3. Inspect the new sheet. Compare every result with the independent expected table. Look for readable input names and verify amount formats.
  4. Record the shared assumptions. Give the report a date or version and note 30 operating days, 18% gross margin and ₹4,50,000 fixed cost. These are important even when the output sheet emphasizes changing values.
  5. Test an updated model. In a disposable copy change B7 to ₹4,80,000. Show the four scenarios again and verify the differences. Generate a new Scenario Summary when ready.
  6. Keep both results distinct. Label the earlier one “Fixed cost ₹4,50,000” and the new one “Fixed cost ₹4,80,000” if you keep both. Do not present an older generated sheet as a live connection to the new model.

Microsoft describes Current Values as the live changing cells at the time the report is generated. They do not necessarily represent the saved case called Normal. If you create the report when Diwali is shown, Current Values can be 600, 360 and 32. Normal still corresponds to its separately saved package. Put a note about the initial state beside the comparison so a new reader does not count Current Values as another independently approved scenario. Treat the report content as a snapshot.

Changing only shared fixed cost shifts every monthly result by ₹30,000
ScenarioOriginal cost version ₹Updated cost version ₹
Normal-94800-124800
Ganeshotsav6792037920
Monsoon slump-192600-222600
Diwali140400110400
Normal result is minus 94,800 with fixed cost 450,000. Updated fixed cost 480,000 changes Normal to minus 124,800. The old generated report keeps its old value.
Check that the report records which common fixed cost applied. Generate a new summary after updating the model.

Use an independent direct calculation

On a sheet named ScenarioCheck type Scenario in A1, Orders per day in B1, AOV in C1, Delivery per order in D1, Revenue in E1 and Modeled result in F1. Enter the four case assumptions in rows 2 to 5. Put 30 in J2, 18% in J3 and 450000 in J4. Build controlled formulas for the two results and copy them from row 2 through row 5. Absolute references keep a common assumption fixed when filling down. Relative references read each scenario's own inputs.

E2 =B2*$J$2*C2
F2 =E2*$J$3-B2*$J$2*D2-$J$4

This ordinary grid is a transparent manual equivalent for the specific model. It will recalculate when J4 changes in normal automatic calculation. That behavior is different from a previously generated Scenario Summary, which Microsoft describes as static. Use the formula grid when a classmate cannot open the Scenario Manager dialogue. Verify the exact results and match the shared inputs to the intended model or report version. Keep both the assumptions and the results available.

Compare forecast stories with a controlled input bridge

The original Ganeshotsav modeled result is ₹67,920 and Diwali is ₹1,40,400. The difference is ₹72,480. Before attributing it to one assumption, test them one at a time in the model. Starting at Ganeshotsav, increase daily orders from 520 to 600 while keeping ₹340 and ₹28. The simulated monthly result becomes ₹1,47,600. That is a difference of ₹79,680 at the original ₹33.20 contribution per order. Next change AOV to ₹360, holding the new volume and ₹28 delivery cost. The result becomes ₹2,12,400, a further increase of ₹64,800.

Finally set delivery cost to ₹32 with all other Diwali inputs. Its ₹4 increase applied to 18,000 monthly orders reduces the result by ₹72,000 to the expected ₹1,40,400. Add the three changes: 79,680 plus 64,800 less 72,000 equals 72,480. This bridge makes the model's arithmetic easy to read. If you change AOV before volume, the allocation between those two steps can differ because contribution per order interacts with volume. The total difference between the same two endpoints stays fixed. State the order used for the breakdown and avoid treating conditional calculation as evidence of market causation.

Represent this independent result on ScenarioCheck or a separate bridge sheet so the saved bundles remain intact. Put the starting and ending scenarios top and bottom, with the one-cell changes between them and the resulting values at each step. Keep the user-facing report clear about whether they are comparing whole cases or explaining the arithmetic of one path between cases. The workbook supports both, and a named scenario report does not automatically attribute difference by input.

Distinguish the regular and pivot-style scenario reports

In the exercise pick the Scenario Summary report so the case assumptions and result values are easy to inspect. Microsoft also documents a Scenario PivotTable report option. A PivotTable report needs at least one designated result cell. Use it only if its layout supports the reader's actual task and verify the same known results. The central requirement stays the same: state what the named cases assume, what was fixed and which formula outputs were included when the report was generated.

If you re-save a report after a test, check that the worksheet title, input version and formula status still tell the same story. Rename the practice summary copy so you can identify it even when Excel's default output name gets a numerical suffix. A report opened from last week's shared folder can have the same appearance as the revised report. Include the known Normal result and the fixed cost in the visible header instead of leaving the distinction only in the filename.

Find mismatched, changed or incomplete assumptions

Check what happens when one case omits the third cell

On a disposable copy create a test scenario “Normal · partial” with only B2 and B3 as changing cells. Leave B6 out. Show Diwali, then show the partial Normal. The worksheet now has 400 daily orders and ₹320 basket from Normal, with ₹32 delivery remaining from Diwali. The result is −₹1,42,800. That is a valid result for a mixed package and wrong for the intended full Normal case. The revenue may still be correct because it does not use delivery. Checking revenue and modeled result together exposes more problems than checking a single revenue headline.

In the working exercise, all saved cases include B6 so showing Normal reintroduces ₹28. Try the same Normal test after Monsoon slump. Because Monsoon also used 28, even the partial Normal may look right that time, concealing the defect. This is why you should test a sequence that switches the exact assumption the case needs to reset. Keep a baseline and compare the live cell values before interpreting a surprising row in the report.

Describe the scenario's evidence and decision scope

Each case needs a short reason for the proposed inputs. A named Ganeshotsav case can illustrate the impact of 520 daily orders and ₹340 basket while the team reviews actual staffing capacity. Diwali at 600 can yield the highest modeled result and still be infeasible if the store's cap is 500. Put a feasibility check beside the result. A scenario has no automatic business capacity enforcement. A report can label it “Above tested capacity” and show the corresponding assumptions rather than presenting the highest figure as the chosen plan.

Choose a scenario list that supports a decision. Include a baseline and a clearly framed downside, then add an alternative only where an assumption makes the difference meaningful. Add a separate forecast if you have suitable historical evidence and want expected demand. Averaging a scenario set without credible likelihoods is just averaging selected cases. If someone wants to judge risk, give conditional outcomes and the sources and uncertainties for their assumptions.

Try a common margin change separately from the fixed-cost update

Use a fresh copy of the original fixed-cost version. Leave B7 at ₹4,50,000 and change B5 from 18% to 16%. Because the practiced cases control only B2, B3 and B6, the margin remains 16% while you show them. Revenue remains unchanged and gross margin falls by two percent of each row's revenue. For Normal, the new modeled result is −₹1,71,600. Ganeshotsav falls to −₹38,160 and Monsoon slump to −₹2,52,000. Diwali remains positive at ₹10,800. Run the ScenarioCheck formulas with J3 changed and verify those four outputs independently.

These results make a particular assumption important for the business decision. Diwali still has the highest modeled output in this example, but its headroom changed from ₹1,40,400 to ₹10,800. Ganeshotsav changed sign, although its named volume, basket and delivery costs did not change. The model settings shared by scenarios can be as consequential as the differences saved in each scenario. If an earlier report omits them, a reviewer might mistakenly believe assumptions were edited in the named scenarios themselves.

Restore the original values after the comparison. To build a scenario where margin also changes, add it to the controlled changing set for every comparable package and store its intended value in each. A previously named package controls only its selected inputs. Updating the planning design may require regenerating the entire scenario set or clearly documenting which assumptions an older case does and does not cover.

Check one capacity-constrained candidate manually

Compare the original Diwali case at 600 daily orders with a proposed configuration at a tested 500 cap. Hold basket ₹360 and delivery cost ₹32, with the same days, margin and fixed cost. Contribution after delivery is ₹32.80 per order. At 500 daily, 15,000 monthly orders yield ₹4,92,000 before fixed cost and a modeled result of ₹42,000. That is feasible with respect to this one chosen cap. Other constraints may still matter. The uncapped result of ₹1,40,400 can appear as an informative illustration, accompanied by its capacity status.

If delivery costs actually change again when you reduce volume, update the planning assumptions for the capped case instead of silently applying the original estimate. A case name is not a constraint solver. If you need to choose the largest feasible result automatically over multiple decision quantities, build a clear objective and reviewed limits, then use the optimization lesson. In this comparison, two bounded scenarios show the effects of the assumed capacity and unit economics without requiring a solver.

Compare scenarios across two copies safely

Microsoft documents merging scenarios from other open workbooks and worksheets. For a collaborative exercise, give students identical practice models first. Both workbooks should have consistent input and formula positions and ordinary sheet names. Share only fictional practice content. Compare the transferred scenario's actual changing-cell list and values after merging. If a collaborator edited a different B6 or reorganized the model, same-looking names can refer to different decisions. Keep the last verified workbook and the new candidate separate until tested.

Try a small handoff using just the capped Ganeshotsav case. Ask a partner to reproduce it using the original 18% margin, fixed cost ₹4,50,000, 500 orders per day, basket ₹340 and delivery ₹28. Confirm revenue ₹51,00,000 and result ₹48,000. Then ask them how their answer would change if their model used 16% margin under the same named assumptions. They should inspect the common model inputs to explain the difference rather than assuming the scenario corrupted a formula.

Make the operating-day choice explicit

Try a version where all case planners agree to compare 28 operating days. Leave the daily order and basket assumptions unchanged and use matching monthly fixed cost as approved for this exercise. Ganeshotsav now has 14,560 orders, not 15,600. Its modeled result becomes ₹33,392. The difference of ₹34,528 comes from two fewer days at 520 orders per day and ₹33.20 contribution on each. If part of the monthly rent or staffing changes with the shorter period, model that separately. Do not assume every cost changes proportional to days.

Now imagine only the festival's staffing plan covers 28 days while the other cases still cover 30. That can be a sensible comparison if the audience wants alternative real schedules. Include the day field in the saved inputs for all cases, label which schedule each report covers and interpret the results in context. A statement that order volume is higher under one scenario can refer to daily throughput or total monthly orders. Make both measures separate if the distinction affects the decision. Use B9 for monthly orders even if the original summary focused on result and revenue.

Check saved packages after reorganizing the worksheet

If a modeled assumption moves to a different cell, inspect Scenario Manager's changing-cell definitions and verify each scenario in the changed workbook. Compare the actual addresses and known results rather than assuming an old saved package follows renamed labels. Repeat a simple Normal to Diwali to Normal test. The three cases should switch the expected inputs and leave the fixed cost and margin at the version you set. A repaired workbook still needs a new Scenario Summary because the snapshot can point back to old values.

Record any formula changes when the underlying model moves to a revised approach. A combined delivery and packaging estimate, for example, changes the meaning of B6 even if the numerical value remains ₹28. Comparisons based on the old name can appear consistent while excluding a newly recognized cost. Keep the original release and write one sentence about which model rule changed. Ask a partner to reproduce one result using the current version without relying on the appearance of the older summary.

Use a compact scenario acceptance list

  • Check fixed assumptions. Read days, margin and fixed cost as actual model inputs before comparing snapshots.
  • Check exact changing addresses. Verify B2, B3 and B6 for every case, including the one that uses a higher delivery cost.
  • Check the result version. Compare revenue and modeled result before and after an intentional assumption change.
  • Check the decision. Report an agreed feasible option or discuss limitations beside any out-of-bounds example.

Finish by writing a one-sentence conclusion for each of the two leading cases. Name the exact trade-off your manager should investigate, such as potential volume exceeding the processing limit or a higher cost for each delivered order. Give the reader one independent calculation to verify. A scenario report becomes much easier to use when the next step follows from a clearly described set of conditions.

Save a short assumption and test record before sending the summary. Write whether the reported amounts come from the original or revised costs. Then choose one case, open the original inputs and compare exact revenue and result in the spreadsheet. Finally restore Normal and confirm the current values. If a colleague opens a live practice workbook while you have left Diwali active, the different visible numbers are expected, but the title and notes should explain the selection. A baseline copy lets them reproduce earlier comparisons without undoing your trial or replacing an approved planning assumption.

In the finished scenario report keep the original result accessible beside any revised version.

Check the assumption set and report

Five practice questions

What should Diwali set in the three changing cells?

600 daily orders, ₹360 average basket and ₹32 delivery per order. The common days, margin and fixed cost remain at the version in use.

Why store ₹28 delivery in Normal even if it is usually the default?

Diwali writes ₹32. Including B6 in Normal ensures its saved value is restored when the scenario is shown.

Which outcome identifies the original Normal case?

Its revenue is ₹38,40,000 and modeled monthly result is −₹94,800 at ₹4,50,000 fixed cost.

After fixed cost rises ₹30,000, does the original summary update?

No. The generated snapshot retains earlier outputs. Run and verify a new summary showing the changed common fixed cost.

Can a scenario select the best feasible capacity by itself?

It applies stored assumptions. Feasibility needs a separate check or a model with constraints, and choice needs the agreed objective.

Five interview questions with worked answers

Why use Scenario Manager instead of a grid of all possible values?

It gives a name to combinations that belong together and lets the same formulas compare them. A Data Table is better for a systematic one- or two-input test grid.

What if a scenario seems to show the right inputs with a wrong result?

I inspect both the saved changing cells and fixed assumptions outside the case. I then compare the result against a separate verified formula.

How do you choose result cells?

I select outputs that explain the decision, such as revenue and modeled result. They remain formulas, separate from the editable changing inputs.

What does the Current Values column mean?

It records the worksheet's changing-cell values at report creation. It may match a named case at that moment, but it has a different role.

How do you give a manager a reproducible scenario comparison?

I label the source assumptions, version, result definitions and known capacity. I show the exact changes and include a checked summary for that model version.

Revision cards

  • Named package. One repeatable combination of relevant inputs.
  • Changing values. Include each field the case must set.
  • Result cells. Keep the formulas separate and readable.
  • Common assumptions. Document them beside every snapshot.
  • Snapshot. Regenerate a check after changes.
  • Feasibility. Compare cases against approved capacity and constraints.

Continue to a one-variable Data Table to compare a set of controlled values, or visit the Excel Task Hub for more practice.

Microsoft references