Microsoft Excel Mastery

Part VII: Advanced Excel

What-If Analysis, Goal Seek, Scenario Manager, Advanced Data Tables, Solver Add-in โ€” with real Indian business examples from Banking, GST, and Investments.

๐Ÿ“Š 69 Solved Examples  |  ๐Ÿ“ 36 Exercises  |  ๐ŸŽฏ 25 MCQs  |  ๐Ÿ’ผ 5 Mini Projects  |  ๐ŸŽค 15 Interview Questions

Chapter 27

What-If Analysis โ€” Exploring Outcomes by Changing Inputs

๐Ÿ  Why Does This Matter?

Imagine you're buying your first home in Pune. The bank offers a โ‚น50,00,000 loan โ€” but your EMI depends on interest rate, tenure, and down payment. What if the interest rate goes up by 0.5%? What if you extend tenure from 20 to 25 years? What-If Analysis lets you test dozens of scenarios instantly without manually changing each value.

SBI Home LoansHDFC BankBajaj FinanceLIC Housing

๐ŸŽฏ Learning Objectives

  • Understand What-If Analysis and its three tools: Data Tables, Goal Seek, Scenario Manager
  • Create one-variable data tables with row input and column input cells
  • Build two-variable data tables to test combinations of two inputs
  • Apply What-If Analysis to real Indian financial scenarios โ€” EMIs, GST, FD returns
  • Set up and interpret sensitivity analysis tables professionally
  • Combine data tables with financial functions like PMT, FV, and PV

๐Ÿ“– Theory โ€” What is What-If Analysis?

What-If Analysis is a powerful set of tools in Excel that allows you to explore different outcomes by changing one or more input values in your formulas. Instead of manually editing cells one at a time, you can see the results for multiple input values simultaneously in a structured table.

Think of it like a restaurant menu: instead of ordering one dish at a time to taste it, you get a "tasting plate" with all options at once. What-If Analysis is your tasting plate for numbers.

The Three What-If Analysis Tools

ToolPurposeVariablesBest For
Data TablesTest multiple values of 1 or 2 inputs1โ€“2 input variablesSensitivity analysis, comparison tables
Goal SeekFind the input needed for a desired output1 input variableBreak-even, target percentage, EMI targets
Scenario ManagerSave and compare named sets of inputsUp to 32 variablesBest/Worst/Most Likely scenarios

Understanding Data Tables

A Data Table is a range of cells that shows the results of changing one or two variables in a formula. It automatically calculates the output for each value you specify โ€” no need to write multiple formulas.

One-Variable Data Table

A one-variable data table tests how changing one input affects the result. You can arrange it in two ways:

  • Column Input: Input values are listed in a column (vertically), and the formula is in the cell one row above and one column to the right of the first input value.
  • Row Input: Input values are listed in a row (horizontally), and the formula is in the cell one column to the left and one row below the first input value.
[Screenshot: One-Variable Data Table layout โ€” Column Input vs Row Input arrangement]

Two-Variable Data Table

A two-variable data table tests how changing two inputs simultaneously affects the result. The formula goes in the top-left corner, one set of values goes across the top row, and another set goes down the left column. Excel fills in the entire grid with results.

Indian banks like SBI, HDFC, and ICICI use What-If Analysis internally to stress-test their loan portfolios. When RBI changes the repo rate, banks instantly recalculate EMIs for millions of customers using sensitivity tables โ€” the same concept you're learning here!

Start with the EMI example โ€” students relate to it immediately because many have parents with home or car loans. Show the one-variable table first (varying interest rate), then introduce the two-variable table (varying both interest rate and tenure). The visual "aha moment" when the entire table fills up at once is very impactful.

๐Ÿ“‹ Step-by-Step: Creating a One-Variable Data Table

Scenario: EMI at Different Interest Rates

You want to calculate the EMI for a โ‚น50,00,000 home loan for 20 years at different interest rates from 7% to 10%.

Step 1: Set up your base data in cells:

CellLabelValue
B2Loan Amount5000000
B3Annual Interest Rate8.5%
B4Tenure (Years)20
B5Monthly EMI=PMT(B3/12, B4*12, -B2)

Step 2: Create the input values list. In cells D3:D10, enter interest rates: 7.0%, 7.5%, 8.0%, 8.5%, 9.0%, 9.5%, 10.0%, 10.5%

Step 3: In cell E2 (one row above, one column right of first input), enter the formula: =B5 (this links to your EMI formula)

[Screenshot: Data Table setup with interest rates in D3:D10 and formula =B5 in E2]

Step 4: Select the entire range D2:E10 (input values + formula cell)

Step 5: Go to Data โ†’ What-If Analysis โ†’ Data Table

Step 6: In the Data Table dialog box:

  • Row input cell: Leave blank (we're using column input)
  • Column input cell: Click on B3 (the cell containing interest rate)
[Screenshot: Data Table dialog box with Column input cell set to $B$3]

Step 7: Click OK. Excel fills the table with EMIs for each interest rate!

Interest RateMonthly EMI (โ‚น)
7.0%38,765
7.5%40,280
8.0%41,822
8.5%43,391
9.0%44,986
9.5%46,607
10.0%48,251
10.5%49,920

The formulas Excel generates inside a data table use the special {TABLE} array formula. You cannot edit individual cells inside a data table โ€” you must delete the entire result range if you want to modify it.

๐Ÿ“‹ Step-by-Step: Creating a Two-Variable Data Table

Scenario: EMI Varying Both Interest Rate AND Tenure

Step 1: Use the same base data (Loan = โ‚น50,00,000, Rate = 8.5%, Tenure = 20 years)

Step 2: In cell D2, enter the formula: =B5

Step 3: In cells E2:I2 (top row), enter tenure values: 10, 15, 20, 25, 30

Step 4: In cells D3:D10 (left column), enter interest rates: 7.0%, 7.5%, 8.0%, 8.5%, 9.0%, 9.5%, 10.0%, 10.5%

Step 5: Select the entire range D2:I10

Step 6: Go to Data โ†’ What-If Analysis โ†’ Data Table

Step 7: In the dialog box:

  • Row input cell: B4 (tenure cell)
  • Column input cell: B3 (interest rate cell)
[Screenshot: Two-Variable Data Table result showing EMI grid for rate vs tenure]

Result: A grid showing EMI for every combination:

Rate \ Tenure10 yr15 yr20 yr25 yr30 yr
7.0%58,05444,94138,76535,33933,265
8.0%60,66447,78341,82238,59136,688
8.5%61,99549,23643,39140,26038,446
9.0%63,33850,71444,98641,96040,243
10.0%66,07553,73548,25145,43643,935

Forgetting the formula cell position: In a two-variable data table, the formula MUST be in the top-left corner (intersection of row and column headers). If you place it anywhere else, the table won't work correctly. Many students place the formula in a random cell and wonder why they get errors.

โœ๏ธ Solved Examples

Example 1: FD Interest Comparison

Compare the maturity amount for a โ‚น10,00,000 Fixed Deposit across different banks with varying interest rates and tenures.

CellLabelValue
B2Principal1000000
B3Annual Rate7%
B4Years5
B5Maturity Amount=FV(B3/4, B4*4, 0, -B2)

One-Variable Table: Column input rates: 6%, 6.5%, 7%, 7.5%, 8%, 8.5%

Annual RateMaturity Amount (โ‚น)
6.0%13,46,855
6.5%13,80,093
7.0%14,14,782
7.5%14,50,945
8.0%14,88,602
8.5%15,27,781

Insight: A mere 2.5% rate difference (6% vs 8.5%) results in โ‚น1,80,926 more โ€” almost 18% additional return!

Example 2: GST Impact on Product Price

A Jaipur handicraft seller sells products at โ‚น2,500 base price. How does the final customer price vary with different GST slabs?

GST RateGST Amount (โ‚น)Final Price (โ‚น)
0% (Exempt)02,500
5%1252,625
12%3002,800
18%4502,950
28%7003,200

Formula used: =B2*(1+D3) where B2=2500 and D3 has GST rates

Example 3: SIP Returns at Different Monthly Amounts

How does your corpus grow if you invest different amounts via SIP for 10 years at 12% annual return?

Formula Used: FV (Future Value)
=FV(rate/12, nper*12, -pmt)
Where rate = 12%, nper = 10 years, pmt = monthly SIP amount
Monthly SIP (โ‚น)Total Invested (โ‚น)Maturity Value (โ‚น)Wealth Gain (โ‚น)
5,0006,00,00011,61,6955,61,695
10,00012,00,00023,23,39111,23,391
15,00018,00,00034,85,08616,85,086
20,00024,00,00046,46,78122,46,781
25,00030,00,00058,08,47728,08,477

Example 4: Profit at Different Selling Prices

A Surat textile manufacturer has a cost of โ‚น350 per meter. Fixed costs are โ‚น2,00,000/month. Expected sales volume: 2,000 meters. How does profit vary with selling price?

Selling Price (โ‚น/m)Revenue (โ‚น)Variable Cost (โ‚น)Profit (โ‚น)
4008,00,0007,00,000-1,00,000
4509,00,0007,00,0000
50010,00,0007,00,0001,00,000
55011,00,0007,00,0002,00,000
60012,00,0007,00,0003,00,000

Insight: Break-even at โ‚น450/meter. Below that, the manufacturer loses money!

Example 5: CBSE Percentage with Different Maths Marks

A student scored: English 85, Hindi 78, Science 92, Social 88. What percentage will they get with different Maths marks?

Maths MarksTotal (out of 500)Percentage
6040380.6%
7041382.6%
8042384.6%
9043386.6%
9543887.6%
10044388.6%

Example 6: Two-Variable โ€” Rental Yield Analysis

Property value ranges from โ‚น40L to โ‚น80L. Monthly rent ranges from โ‚น15,000 to โ‚น30,000. Calculate annual rental yield = (Annual Rent / Property Value) ร— 100

Value \ Rentโ‚น15,000โ‚น20,000โ‚น25,000โ‚น30,000
โ‚น40,00,0004.50%6.00%7.50%9.00%
โ‚น50,00,0003.60%4.80%6.00%7.20%
โ‚น60,00,0003.00%4.00%5.00%6.00%
โ‚น70,00,0002.57%3.43%4.29%5.14%
โ‚น80,00,0002.25%3.00%3.75%4.50%

Example 7: Car Loan EMI โ€” Varying Down Payment

Car price: โ‚น12,00,000. Rate: 9%. Tenure: 5 years. How does EMI change with different down payments?

Down Payment (%)Loan Amount (โ‚น)Monthly EMI (โ‚น)Total Interest Paid (โ‚น)
10%10,80,00022,4222,45,320
15%10,20,00021,1762,31,580
20%9,60,00019,9312,17,840
25%9,00,00018,6852,04,100
30%8,40,00017,4401,90,360

Example 8: Flipkart Seller โ€” Profit vs Discount %

Product MRP: โ‚น1,999. Cost: โ‚น800. Platform fee: 15% of selling price. How does profit change with different discount percentages?

Discount %Selling Price (โ‚น)Platform Fee (โ‚น)Net Revenue (โ‚น)Profit (โ‚น)
0%1,9993001,699899
10%1,7992701,529729
20%1,5992401,359559
30%1,3992101,189389
40%1,1991801,019219
50%99915084949

Example 9: Two-Variable โ€” Zomato Delivery Revenue

Revenue per order depends on average order value and number of orders/day. Monthly revenue = Orders/Day ร— 30 ร— Commission Rate ร— Avg Order Value.

Orders \ Avg Valueโ‚น300โ‚น400โ‚น500โ‚น600
50/dayโ‚น6,75,000โ‚น9,00,000โ‚น11,25,000โ‚น13,50,000
100/dayโ‚น13,50,000โ‚น18,00,000โ‚น22,50,000โ‚น27,00,000
150/dayโ‚น20,25,000โ‚น27,00,000โ‚น33,75,000โ‚น40,50,000
200/dayโ‚น27,00,000โ‚น36,00,000โ‚น45,00,000โ‚น54,00,000

Commission rate assumed at 15%.

Example 10: Electricity Bill โ€” Unit Slab Analysis

BSES Delhi charges: 0โ€“200 units = โ‚น3/unit, 201โ€“400 = โ‚น4.50/unit, 401โ€“800 = โ‚น6.50/unit, 800+ = โ‚น7/unit. Build a data table showing monthly bill for 100 to 1000 units.

Units ConsumedBill Amount (โ‚น)
100300
200600
3001,050
4001,500
6002,800
8004,100
10005,500

Example 11: TCS Employee โ€” Tax Under Old vs New Regime

Salary: โ‚น12,00,000. Use data table to compare tax payable at different income levels under new regime slabs.

Taxable Income (โ‚น)Tax (New Regime) (โ‚น)
3,00,0000
6,00,00015,000
9,00,00045,000
12,00,00090,000
15,00,0001,50,000

Example 12: Two-Variable โ€” Reliance Retail Franchise Revenue

Monthly revenue depends on footfall and average billing. Revenue = Footfall ร— Conversion Rate ร— Avg Bill.

Footfall \ Avg Billโ‚น500โ‚น800โ‚น1,200โ‚น1,500
1,000โ‚น1,50,000โ‚น2,40,000โ‚น3,60,000โ‚น4,50,000
2,000โ‚น3,00,000โ‚น4,80,000โ‚น7,20,000โ‚น9,00,000
3,000โ‚น4,50,000โ‚น7,20,000โ‚น10,80,000โ‚น13,50,000

Conversion rate assumed at 30%.

Example 13: PPF Maturity Value Over Different Years

Annual deposit of โ‚น1,50,000 in PPF at 7.1% interest. Maturity value at different tenures:

Tenure (Years)Total Deposited (โ‚น)Maturity Value (โ‚น)Interest Earned (โ‚น)
1522,50,00040,68,20918,18,209
2030,00,00066,58,28836,58,288
2537,50,0001,02,41,69464,91,694

Example 14: Petrol Bunk Daily Revenue

Petrol price: โ‚น105/litre. Daily sales vary. How does daily revenue change?

Litres Sold/DayRevenue (โ‚น)Dealer Margin @โ‚น3.5/L (โ‚น)
2,0002,10,0007,000
3,0003,15,00010,500
5,0005,25,00017,500
8,0008,40,00028,000

Example 15: Two-Variable โ€” Wedding Budget Analysis

Total wedding cost depends on guest count and per-plate cost.

Guests \ Per Plateโ‚น800โ‚น1,200โ‚น1,600โ‚น2,000
200โ‚น1,60,000โ‚น2,40,000โ‚น3,20,000โ‚น4,00,000
300โ‚น2,40,000โ‚น3,60,000โ‚น4,80,000โ‚น6,00,000
500โ‚น4,00,000โ‚น6,00,000โ‚น8,00,000โ‚น10,00,000
800โ‚น6,40,000โ‚น9,60,000โ‚น12,80,000โ‚น16,00,000

๐Ÿ“ Practice Exercises

Exercise 1: Education Loan EMI Table

Create a one-variable data table for an education loan of โ‚น8,00,000 at rates from 8% to 12% (0.5% increments) for 7 years. Use =PMT(rate/12, years*12, -loan).

Exercise 2: Mutual Fund SIP Comparison

Create a two-variable data table showing the maturity value of a โ‚น10,000/month SIP with return rates (10%, 12%, 14%, 16%) and tenures (5, 10, 15, 20, 25 years).

Exercise 3: GST Collection Projection

A state's estimated taxable turnover is โ‚น50,000 crore. Create a data table showing GST collection at rates 5%, 12%, 18%, 28% and compliance rates 60%, 70%, 80%, 90%, 100%.

Exercise 4: Kirana Store Break-Even

A kirana store has fixed costs of โ‚น45,000/month and average margin of 12%. Create a data table showing profit for monthly sales from โ‚น2,00,000 to โ‚น10,00,000 (โ‚น1,00,000 increments).

Exercise 5: Agricultural Yield Revenue

A Punjab farmer grows wheat. Create a two-variable table with yield per acre (15, 20, 25, 30 quintals) and MSP prices (โ‚น2,015, โ‚น2,125, โ‚น2,275) to show revenue per acre.

Exercise 6: Tata Motors Showroom

Create a data table for Tata Nexon (โ‚น9,00,000) with down payments from 0% to 40% and interest rates 7%, 8%, 9%, 10% for a 5-year loan. Show EMI for each combination.

Exercise 7: RD Maturity Calculator

Create a one-variable data table for a Recurring Deposit of โ‚น5,000/month at interest rates from 5% to 8.5% for 5 years.

Exercise 8: Restaurant Revenue Sensitivity

An Udupi restaurant has average bill โ‚น250 and seats 60 customers. Create a two-variable table varying table turnover rate (2, 3, 4, 5 times) and average bill (โ‚น200, โ‚น250, โ‚น300, โ‚น350).

Alt + A + W + T โ€” Open Data Table dialog (via ribbon shortcut)

Ctrl + Shift + { โ€” Show all precedent cells (useful for tracing data table inputs)

F9 โ€” Recalculate all formulas (data tables recalculate on F9 if calculation is manual)

Ctrl + ` โ€” Toggle formula view to see {TABLE} formulas

๐Ÿ“‹ MCQ Quiz

Q1

In a one-variable data table with column input, where should the formula be placed?

  1. In the first cell of the input column
  2. One row above and one column to the right of the first input value
  3. Anywhere on the sheet
  4. In the last row of the table
โœ… Answer: (b) โ€” The formula must be placed one row above and one column to the right of the first input value for column-oriented data tables.
Q2

How many input variables can a two-variable data table handle?

  1. 1
  2. 2
  3. 3
  4. Unlimited
โœ… Answer: (b) โ€” A two-variable data table works with exactly 2 input variables โ€” one for rows and one for columns.
Q3

What special formula does Excel use inside data table result cells?

  1. =VLOOKUP()
  2. =INDEX()
  3. {=TABLE(row_input, col_input)}
  4. =IF()
โœ… Answer: (c) โ€” Excel generates the special {=TABLE()} array formula automatically. You cannot manually type this formula.
Q4

Which menu path leads to What-If Analysis in Excel?

  1. Home โ†’ What-If Analysis
  2. Insert โ†’ What-If Analysis
  3. Data โ†’ What-If Analysis
  4. Formulas โ†’ What-If Analysis
โœ… Answer: (c) โ€” What-If Analysis is found under the Data tab in the Forecast group.
Q5

Can you delete individual cells within a data table result range?

  1. Yes, like any other cell
  2. No, you must delete the entire result range
  3. Only if you press Ctrl+Delete
  4. Only in Excel 365
โœ… Answer: (b) โ€” Data table results are an array. You cannot edit or delete individual cells โ€” you must select and delete the entire result range.

Mixing up Row Input and Column Input: If your input values are in a column (vertical), use "Column input cell." If they're in a row (horizontal), use "Row input cell." Getting this backward is the #1 mistake students make with data tables.

๐ŸŽฏ Mini Project: Loan EMI Sensitivity Analyzer

๐Ÿ  Home Loan EMI Sensitivity Analyzer

Problem Statement

Build a comprehensive Excel tool that helps a prospective home buyer in India analyze their EMI under various conditions using both one-variable and two-variable data tables.

Requirements

  • Sheet 1 โ€” Input Dashboard: Loan amount (โ‚น30L to โ‚น1Cr), Interest rate (7%โ€“12%), Tenure (10โ€“30 years), Down payment percentage
  • Sheet 2 โ€” One-Variable Table 1: EMI varying with interest rate (7% to 12%, 0.25% increments)
  • Sheet 3 โ€” One-Variable Table 2: EMI varying with tenure (5 to 30 years, 1-year increments)
  • Sheet 4 โ€” Two-Variable Table: EMI grid with interest rates (rows) vs tenure (columns)
  • Sheet 5 โ€” Total Interest Paid: Two-variable table showing total interest paid for each combination
  • Add conditional formatting: Green for EMIs under โ‚น40,000, Yellow for โ‚น40,000โ€“โ‚น60,000, Red for above โ‚น60,000

Deliverables

  1. Working Excel file with 5 interconnected sheets
  2. All data tables properly configured and calculating
  3. Conditional formatting applied to highlight affordable vs expensive EMIs
  4. Summary section recommending the best loan option

๐Ÿ“‹ Assignment

Assignment 1: Compare 5 Indian Banks

Research current home loan rates for SBI, HDFC, ICICI, Axis, and PNB. Create a one-variable data table comparing EMIs for a โ‚น50,00,000 loan for 20 years at each bank's rate. Add a summary showing which bank offers the lowest EMI and how much you save over the loan tenure.

Assignment 2: Investment Growth Analyzer

Create a two-variable data table comparing mutual fund SIP maturity values for monthly investments of โ‚น5,000 to โ‚น50,000 (โ‚น5,000 increments) with expected annual returns of 8%, 10%, 12%, 14%, 16% over a 15-year period.

๐ŸŽค Interview Questions

Q1: What is What-If Analysis in Excel and when would you use it?

Answer: What-If Analysis is a group of tools in Excel that allows you to test different scenarios by changing input values and observing the effect on results. It includes three tools: Data Tables (for sensitivity analysis with 1โ€“2 variables), Goal Seek (for finding the input needed to achieve a desired output), and Scenario Manager (for saving and comparing named sets of inputs). I would use it when building financial models โ€” for example, showing a client how their loan EMI changes across different interest rates and tenures, or when preparing business cases with best/worst/most likely scenarios.

Q2: Explain the difference between a one-variable and two-variable data table.

Answer: A one-variable data table changes one input and shows the result. The input values are either in a row or column, and there's one formula. A two-variable data table changes two inputs simultaneously โ€” one set of values in the top row and another in the left column โ€” and shows the result for every combination. The formula is placed at the intersection (top-left corner). Two-variable tables are ideal for sensitivity analysis where you want to see how two factors together impact the outcome.

Q3: Can you edit individual cells in a data table? Why or why not?

Answer: No, you cannot edit individual cells within a data table's result area because Excel generates a special {=TABLE()} array formula for the entire result range. This means all cells are part of a single array and must be treated as a unit. To modify the results, you either change the input values, change the base formula, or delete the entire result range and recreate it. This is by design โ€” it ensures data integrity and prevents accidental corruption of the sensitivity analysis.

๐Ÿ“Œ Chapter 27 Summary

  • What-If Analysis has 3 tools: Data Tables, Goal Seek, and Scenario Manager
  • One-variable data table: tests multiple values of ONE input
  • Two-variable data table: tests combinations of TWO inputs
  • Formula placement is critical: top-left for two-variable, offset position for one-variable
  • Data tables use the special {=TABLE()} array formula internally
  • You cannot edit individual cells in a data table result range
  • Path: Data โ†’ What-If Analysis โ†’ Data Table
  • Ideal for EMI analysis, sensitivity studies, pricing strategies, and financial comparisons
Chapter 28

Goal Seek โ€” Finding the Input for a Desired Output

๐ŸŽฏ Reverse Engineering Your Numbers

You know your budget allows a maximum EMI of โ‚น35,000/month. But how much home loan can you afford? Or โ€” you need 90% in your board exam. You've scored in 4 subjects already. How much do you need in Maths? Goal Seek answers these "backward" questions instantly.

BankingEducationManufacturingStartups

๐ŸŽฏ Learning Objectives

  • Understand the concept of Goal Seek โ€” working backward from a desired result
  • Use the Goal Seek dialog box: Set cell, To value, By changing cell
  • Apply Goal Seek to financial, academic, and business scenarios
  • Understand the limitations of Goal Seek (single variable, iterative solver)
  • Combine Goal Seek with formulas like PMT, SUM, AVERAGE, and IF

๐Ÿ“– Theory โ€” What is Goal Seek?

Goal Seek is like asking Excel: "I know what answer I want โ€” now tell me what input I need." While normally you change inputs to see outputs, Goal Seek reverses the process. You specify the desired output, and Excel calculates the required input.

The Three Parameters

ParameterWhat It MeansExample
Set cellThe cell containing the formula whose result you want to controlEMI formula cell (B5)
To valueThe desired result you want the formula to produce35000 (target EMI)
By changing cellThe input cell that Excel should adjust to achieve the resultLoan amount cell (B2)

How to Access Goal Seek

Navigate to: Data โ†’ What-If Analysis โ†’ Goal Seek

[Screenshot: Data tab ribbon with What-If Analysis dropdown showing Goal Seek option]

How Goal Seek Works Internally

Goal Seek uses an iterative algorithm. It starts with the current value in the "By changing cell," then tries different values โ€” adjusting up and down โ€” until it finds a value that makes the formula produce the target result (within a small tolerance). It typically finds the answer in milliseconds.

Goal Seek can perform up to 32,767 iterations to find the answer. If it can't converge (find a solution), it'll tell you. You can adjust the maximum iterations and precision under File โ†’ Options โ†’ Formulas โ†’ Calculation Options.

Limitations of Goal Seek

  • Can only change one variable at a time
  • The "Set cell" must contain a formula (not a hardcoded value)
  • The "By changing cell" must contain a value (not a formula)
  • Goal Seek may not find a solution if the relationship is non-monotonic or discontinuous
  • For multiple variables or constraints, use Solver instead (Chapter 31)

The CBSE marks example is the most relatable for students. Start with: "You need 85% overall. You've already written 4 exams. How much do you need in the last one?" Then transition to financial examples. Students often confuse which cell is "Set cell" and which is "By changing cell" โ€” use the analogy: "Set cell = the answer cell, By changing cell = the question cell."

๐Ÿ“‹ Step-by-Step: Using Goal Seek

Scenario: Maximum Affordable Home Loan

Your maximum EMI budget is โ‚น35,000. Interest rate: 8.5%. Tenure: 20 years. What's the maximum loan you can take?

Step 1: Set up the worksheet:

CellLabelValue
B2Loan Amount5000000 (initial guess)
B3Annual Rate8.5%
B4Tenure (Years)20
B5Monthly EMI=PMT(B3/12, B4*12, -B2)

Step 2: Go to Data โ†’ What-If Analysis โ†’ Goal Seek

Step 3: Fill in the dialog:

  • Set cell: B5 (EMI formula)
  • To value: 35000
  • By changing cell: B2 (Loan Amount)
[Screenshot: Goal Seek dialog box with Set cell: $B$5, To value: 35000, By changing cell: $B$2]

Step 4: Click OK. Excel iterates and finds: Loan Amount = โ‚น40,33,062

[Screenshot: Goal Seek Status showing "Goal Seeking with Cell B5 found a solution" with B2 changed to 4033062]

Result: You can afford a maximum home loan of approximately โ‚น40.33 lakhs if your budget is โ‚น35,000/month EMI.

โœ๏ธ Solved Examples

Example 1: Required Marks in Maths for 90% Overall (CBSE)

A Class X student has scored: English 88, Hindi 82, Science 95, Social Science 91. What marks does she need in Maths for 90% overall?

CellSubjectMarks
B2English88
B3Hindi82
B4Science95
B5Social Science91
B6Maths80 (initial guess)
B7Total=SUM(B2:B6)
B8Percentage=B7/500*100

Goal Seek: Set cell = B8, To value = 90, By changing cell = B6

Result: She needs 94 marks in Maths to achieve 90% overall.

Example 2: Break-Even Units for a Chai Stall

A chai stall in Mumbai has fixed costs of โ‚น15,000/month. Each cup costs โ‚น8 to make and sells for โ‚น20. How many cups must be sold to break even?

CellLabelValue/Formula
B2Selling Price/Cup20
B3Cost/Cup8
B4Fixed Costs15000
B5Cups Sold1000 (initial guess)
B6Revenue=B2*B5
B7Total Cost=B3*B5+B4
B8Profit=B6-B7

Goal Seek: Set cell = B8, To value = 0, By changing cell = B5

Result: 1,250 cups/month (approximately 42 cups/day) needed to break even.

Example 3: Loan Amount for โ‚น25,000 EMI

Car loan: Rate 9.5%, Tenure 5 years. Maximum EMI budget: โ‚น25,000. Maximum affordable loan?

Goal Seek: Set cell = PMT formula, To value = 25000, By changing cell = Loan Amount

Result: Maximum car loan = โ‚น12,05,341

Example 4: Required Revenue to Achieve Target Profit

A Bengaluru startup has fixed costs of โ‚น8,00,000/month and variable cost ratio of 40%. Target profit: โ‚น5,00,000. What revenue is needed?

CellLabelValue/Formula
B2Revenue1500000 (guess)
B3Variable Cost (40%)=B2*0.4
B4Fixed Cost800000
B5Profit=B2-B3-B4

Goal Seek: Set cell = B5, To value = 500000, By changing cell = B2

Result: Revenue needed = โ‚น21,66,667

Example 5: Interest Rate for โ‚น1 Crore FD Maturity

You invest โ‚น70,00,000 in an FD for 5 years (quarterly compounding). What interest rate gives โ‚น1,00,00,000 maturity?

Formula: =FV(B3/4, 5*4, 0, -7000000)

Goal Seek: Set cell = FV formula, To value = 10000000, By changing cell = Rate

Result: Required rate โ‰ˆ 7.18%

Example 6: Discount % to Clear Inventory

A retailer has 500 units at โ‚น1,200 MRP. Target revenue: โ‚น4,50,000. What discount % is needed?

Goal Seek: Set cell = Revenue formula, To value = 450000, By changing cell = Discount %

Result: Discount = 25% (Selling at โ‚น900 each)

Example 7: Required Salary Hike for Target Take-Home

Current CTC: โ‚น6,00,000. Tax: 10%. Deductions: โ‚น60,000. Target monthly take-home: โ‚น50,000.

CellLabelValue/Formula
B2Annual CTC600000
B3Tax (10%)=B2*0.1
B4Deductions60000
B5Annual Take-Home=B2-B3-B4
B6Monthly Take-Home=B5/12

Goal Seek: Set cell = B6, To value = 50000, By changing cell = B2

Result: Required CTC = โ‚น7,33,333 (22.2% hike needed)

Example 8: Minimum Price for 20% Profit Margin

Cost of goods: โ‚น5,60,000. Operating expenses: โ‚น1,40,000. What selling price gives 20% profit margin?

Result: Selling price = โ‚น8,75,000

Example 9: CIBIL Score Target โ€” Required On-Time Payments

A simplified credit score model: Score = 300 + (On-time payments/Total payments) ร— 600. Current: 52 on-time out of 70 total. What on-time payment count gives score of 750?

Result: Need 53 on-time payments out of 70 (already close!)

Example 10: Class Average Target

A teacher has 30 students. Current average: 72.5. If 5 students retake the exam, what average do they need to bring class average to 78?

Result: The 5 students need to average 105 โ€” which is impossible (max 100), so the teacher needs to adjust the target or allow more retakes.

Example 11: Manufacturing โ€” Units for Target Revenue

Product sells at โ‚น450/unit. Target monthly revenue: โ‚น15,00,000. How many units to sell?

Result: 3,334 units/month

Example 12: SIP Amount for โ‚น1 Crore Corpus

Expected return: 12% p.a. Duration: 15 years. What monthly SIP creates โ‚น1 crore?

Formula: =FV(12%/12, 15*12, -B2)

Goal Seek: Set cell = FV, To value = 10000000, By changing cell = SIP amount

Result: Monthly SIP = approximately โ‚น21,002

Key Formula: PMT (Payment)
=PMT(rate, nper, pv, [fv], [type])

rate = periodic interest rate (annual rate / 12 for monthly)

nper = total number of payment periods (years ร— 12 for monthly)

pv = present value (loan amount, entered as negative for loans)

Example 1: =PMT(8.5%/12, 20*12, -5000000) โ†’ โ‚น43,391/month

Example 2: =PMT(9%/12, 7*12, -800000) โ†’ โ‚น12,506/month

Example 3: =PMT(10%/12, 5*12, -1200000) โ†’ โ‚น25,497/month

๐Ÿ“ Practice Exercises

Exercise 1: Target CGPA

A student has completed 5 semesters with CGPAs: 7.8, 8.2, 7.5, 8.6, 8.1. Use Goal Seek to find the required 6th semester CGPA to achieve overall CGPA of 8.5.

Exercise 2: Break-Even for Food Truck

A Delhi food truck has fixed costs of โ‚น50,000/month. Average meal cost: โ‚น120, selling price: โ‚น280. Find break-even units using Goal Seek.

Exercise 3: Required Investment for Retirement

Target retirement corpus: โ‚น5 crore. Expected return: 10% p.a. Years to retirement: 25. Find the required annual investment using Goal Seek with FV function.

Exercise 4: Rent Increase for Profitability

A landlord has 10 rental units. Monthly expenses: โ‚น1,50,000. Current rent: โ‚น12,000/unit. Find the rent needed for โ‚น50,000 monthly profit.

Exercise 5: Optimal Ticket Price

Event costs: โ‚น3,00,000. Expected attendees: 500. Find ticket price for break-even and for โ‚น1,00,000 profit.

Exercise 6: Required Sales for Commission Target

A salesperson earns โ‚น25,000 base + 3% commission. Target monthly income: โ‚น60,000. Find required sales value.

๐Ÿ“‹ MCQ Quiz

Q1

The "Set cell" in Goal Seek must contain:

  1. A hardcoded number
  2. A formula
  3. Text
  4. Any value
โœ… Answer: (b) โ€” The Set cell must contain a formula because Goal Seek needs to evaluate how changes in the input affect the output through that formula.
Q2

How many variables can Goal Seek change at a time?

  1. 1
  2. 2
  3. 3
  4. Unlimited
โœ… Answer: (a) โ€” Goal Seek can only adjust one variable (the "By changing cell"). For multiple variables, use Solver.
Q3

Goal Seek is accessed from which tab?

  1. Home
  2. Formulas
  3. Data
  4. View
โœ… Answer: (c) โ€” Data โ†’ What-If Analysis โ†’ Goal Seek.
Q4

If Goal Seek cannot find a solution, it means:

  1. Your Excel is broken
  2. The formula has an error
  3. No value of the changing cell can produce the desired result, or Goal Seek hit its iteration limit
  4. You need to restart Excel
โœ… Answer: (c) โ€” Goal Seek may not converge if no mathematical solution exists or if it exceeds maximum iterations (32,767 by default).
Q5

After Goal Seek finds a solution, the "By changing cell" value:

  1. Stays the same as before
  2. Is permanently changed to the solution value
  3. Is changed but you can click Cancel to undo
  4. Is saved in a separate sheet
โœ… Answer: (c) โ€” After finding a solution, Excel shows a dialog. Click OK to keep the new value or Cancel to revert to the original value.

Alt + A + W + G โ€” Open Goal Seek dialog directly

Ctrl + Z โ€” Undo Goal Seek result (if you forgot to click Cancel)

Tab โ€” Move between fields in the Goal Seek dialog

Setting the "By changing cell" to a cell with a formula: Goal Seek can only change cells containing values (numbers), not formulas. If you point it to a formula cell, it will overwrite the formula with a number, breaking your spreadsheet. Always double-check that the changing cell contains a plain number.

๐ŸŽฏ Mini Project: Break-Even Analysis Tool

๐Ÿ“Š Break-Even Analysis Tool for Small Business

Problem Statement

Build an Excel tool for a small business owner (e.g., a bakery in Hyderabad) that calculates break-even point using Goal Seek and provides sensitivity analysis.

Requirements

  • Input Section: Fixed costs (rent, salary, utilities), variable cost per unit, selling price per unit
  • Calculations: Revenue, total cost, profit/loss formulas
  • Goal Seek Applications:
    • Find break-even units (Profit = 0)
    • Find units for โ‚น1,00,000 monthly profit
    • Find required selling price for break-even at 500 units
    • Find maximum fixed cost for break-even at current production
  • Create a break-even chart showing Revenue and Total Cost lines
  • Include a one-variable data table showing profit at different production levels (500 to 5,000 units)

Sample Data

ItemValue
Rentโ‚น30,000/month
Salaries (4 staff)โ‚น60,000/month
Utilitiesโ‚น10,000/month
Cost per cake/pastryโ‚น120
Average selling priceโ‚น300

Deliverables

  1. Working Excel file with Goal Seek results documented
  2. Break-even chart with clearly marked break-even point
  3. Sensitivity table showing profit across different scenarios
  4. Written recommendation for the business owner

๐ŸŽค Interview Questions

Q1: How does Goal Seek differ from Solver?

Answer: Goal Seek is simpler and faster โ€” it changes one variable to achieve one target. Solver is more powerful โ€” it can change multiple variables simultaneously, handle constraints (like "production โ‰ค 1000 units"), and optimize (maximize/minimize) rather than just seek a specific value. Goal Seek is built-in; Solver needs to be enabled as an add-in. Use Goal Seek for quick single-variable problems; use Solver for complex optimization with multiple variables and constraints.

Q2: Give a real business scenario where you'd use Goal Seek.

Answer: In my previous role, we needed to determine the minimum number of units to sell to achieve a quarterly target of โ‚น50 lakhs profit. I set up the profit formula (Revenue - Variable Costs - Fixed Costs) in Excel, then used Goal Seek with Set cell = Profit formula, To value = 5000000, By changing cell = Units sold. Goal Seek instantly found we needed to sell 8,334 units, which helped the sales team set realistic monthly targets of ~2,778 units.

Q3: What happens if Goal Seek finds a solution that doesn't make business sense?

Answer: Goal Seek is purely mathematical โ€” it doesn't understand business logic. For example, it might suggest selling -500 units or setting a price at โ‚น0. In such cases, you need to validate the result. If the answer is impractical (negative numbers, fractions where whole numbers are needed, values beyond physical limits), it means the target itself may be unrealistic with the given constraints. You'd then need to adjust your assumptions or use Solver with appropriate constraints to ensure business-valid results.

๐Ÿ“Œ Chapter 28 Summary

  • Goal Seek works backward: you specify the desired output, it finds the required input
  • Three parameters: Set cell (formula), To value (target), By changing cell (input)
  • Path: Data โ†’ What-If Analysis โ†’ Goal Seek
  • Can only change ONE variable at a time
  • Set cell must have a formula; By changing cell must have a value
  • Uses iterative algorithm (up to 32,767 iterations)
  • After solving: OK to keep result, Cancel to revert
  • For multiple variables and constraints, use Solver instead
Chapter 29

Scenario Manager โ€” Comparing Multiple Futures

๐Ÿ”ฎ What If the Future Goes Three Different Ways?

You're presenting a business plan to investors for a D2C skincare brand. They ask: "What happens if sales grow 30%? What if they grow only 10%? What if there's a recession?" Scenario Manager lets you save Best Case, Worst Case, and Most Likely scenarios โ€” and switch between them with one click.

MamaearthBoatLenskartMcKinsey

๐ŸŽฏ Learning Objectives

  • Understand Scenario Manager and its role in decision-making
  • Create, edit, and delete scenarios with multiple changing cells
  • Switch between scenarios to compare different assumptions
  • Generate a Scenario Summary report for side-by-side comparison
  • Generate a Scenario PivotTable report for dynamic analysis
  • Apply Scenario Manager to Indian business planning contexts

๐Ÿ“– Theory โ€” What is Scenario Manager?

Scenario Manager is a What-If Analysis tool that lets you save multiple sets of input values (called scenarios) and switch between them. Unlike Data Tables (which show all results at once) or Goal Seek (which finds one answer), Scenario Manager lets you name, save, and compare different "what-if" stories.

Key Concepts

TermMeaning
ScenarioA named set of input values (e.g., "Best Case")
Changing cellsThe cells that will be given different values in each scenario (up to 32 cells)
Result cellsThe cells containing formulas that show the output (used in Summary report)
Scenario SummaryAn auto-generated report showing all scenarios side by side

How to Access

Data โ†’ What-If Analysis โ†’ Scenario Manager

[Screenshot: Scenario Manager dialog box showing list of scenarios with Add, Delete, Edit, Merge, Summary buttons]

When to Use Scenario Manager vs Other Tools

Use Scenario Manager When...Use Data Tables When...Use Solver When...
You have named scenarios (Best/Worst/Likely)You want to test a continuous range of valuesYou need to optimize (max/min) with constraints
Multiple variables change together1โ€“2 variables change independentlyMultiple variables with complex relationships
You need to present to stakeholdersYou need a sensitivity gridYou need an optimal solution

Consulting firms like McKinsey, BCG, and Bain use scenario analysis in virtually every client engagement. When they present to an Indian CEO, they typically show three scenarios: Conservative (worst case), Base (most likely), and Aggressive (best case). Scenario Manager automates exactly this process.

Have students create scenarios for a business they know โ€” like a local grocery store or their college fest budget. The key learning moment is when they generate the Scenario Summary and see all scenarios compared side by side. Emphasize that Scenario Manager is a PRESENTATION tool โ€” it helps communicate assumptions to decision-makers.

๐Ÿ“‹ Step-by-Step: Using Scenario Manager

Scenario: D2C Skincare Brand Revenue Projection

Step 1: Set up the base worksheet:

CellLabelValue
B2Units Sold/Month5000
B3Price per Unit599
B4Cost per Unit180
B5Marketing Spend/Month200000
B6Fixed Costs/Month300000
B8Revenue=B2*B3
B9Variable Cost=B2*B4
B10Total Cost=B9+B5+B6
B11Monthly Profit=B8-B10
B12Annual Profit=B11*12

Step 2: Go to Data โ†’ What-If Analysis โ†’ Scenario Manager

Step 3: Click Add to create the first scenario:

  • Scenario name: Best Case
  • Changing cells: B2, B3, B4, B5 (select by holding Ctrl and clicking each cell)
  • Click OK

Step 4: Enter values for Best Case:

CellBest Case Value
B2 (Units)8000
B3 (Price)649
B4 (Cost)160
B5 (Marketing)300000

Step 5: Click Add again for Worst Case:

CellWorst Case Value
B2 (Units)2500
B3 (Price)499
B4 (Cost)200
B5 (Marketing)150000

Step 6: Click Add again for Most Likely:

CellMost Likely Value
B2 (Units)5000
B3 (Price)599
B4 (Cost)180
B5 (Marketing)200000

Step 7: To switch between scenarios, select one and click Show

[Screenshot: Scenario Manager with three scenarios listed โ€” Best Case, Worst Case, Most Likely, with Show and Summary buttons]

Step 8: To generate a summary report, click Summary:

  • Report type: Scenario Summary
  • Result cells: B8, B11, B12 (Revenue, Monthly Profit, Annual Profit)
  • Click OK

Excel creates a new sheet with this comparison:

Current ValuesBest CaseWorst CaseMost Likely
Units Sold5,0008,0002,5005,000
Price/Unitโ‚น599โ‚น649โ‚น499โ‚น599
Cost/Unitโ‚น180โ‚น160โ‚น200โ‚น180
Marketingโ‚น2,00,000โ‚น3,00,000โ‚น1,50,000โ‚น2,00,000
Result Cells
Revenueโ‚น29,95,000โ‚น51,92,000โ‚น12,47,500โ‚น29,95,000
Monthly Profitโ‚น5,95,000โ‚น18,12,000โ‚น-7,02,500โ‚น5,95,000
Annual Profitโ‚น71,40,000โ‚น2,17,44,000โ‚น-84,30,000โ‚น71,40,000

Name your changing cells using Name Box (e.g., name B2 as "Units_Sold"). The Scenario Summary report will use these names instead of cell references, making it much more readable.

โœ๏ธ Solved Examples

Example 1: School Fest Budget Planning

A college fest has three budget scenarios:

ParameterConservativeModerateAmbitious
Sponsors3 (โ‚น1,50,000)5 (โ‚น3,00,000)8 (โ‚น6,00,000)
Ticket Sales500 ร— โ‚น200800 ร— โ‚น2501200 ร— โ‚น300
Venue Costโ‚น50,000โ‚น1,00,000โ‚น2,00,000
Entertainmentโ‚น30,000โ‚น80,000โ‚น2,50,000
Profit/Lossโ‚น1,70,000โ‚น3,20,000โ‚น5,10,000

Example 2: Startup Funding Scenarios

A Bengaluru edtech startup models its runway:

ParameterBootstrapSeed FundSeries A
Monthly Burn Rateโ‚น3,00,000โ‚น8,00,000โ‚น25,00,000
Team Size51540
Monthly Revenueโ‚น1,00,000โ‚น5,00,000โ‚น15,00,000
Funds Availableโ‚น20,00,000โ‚น2,00,00,000โ‚น10,00,00,000
Runway (months)1066.7100

Example 3: Farmer's Crop Planning (Rabi Season)

A farmer in Madhya Pradesh models income from wheat vs chickpea:

ParameterAll WheatAll ChickpeaMixed (60:40)
Wheat Acres1006
Chickpea Acres0104
Wheat Yield (q/acre)20-20
Chickpea Yield (q/acre)-88
Wheat MSP (โ‚น/q)2,275-2,275
Chickpea MSP (โ‚น/q)-5,4405,440
Total Incomeโ‚น4,55,000โ‚น4,35,200โ‚น4,46,440

Example 4: Infosys Project Staffing

An Infosys project manager models team structure scenarios for a client project:

ParameterLean TeamStandardFull Scale
Developers3610
Testers124
Lead112
Avg Cost/Person/Monthโ‚น80,000โ‚น85,000โ‚น90,000
Monthly Team Costโ‚น4,00,000โ‚น7,65,000โ‚น14,40,000
Duration (months)1285
Total Project Costโ‚น48,00,000โ‚น61,20,000โ‚น72,00,000

Example 5: Personal Finance โ€” Monthly Budget

ParameterFrugalModerateComfortable
Rentโ‚น8,000โ‚น15,000โ‚น25,000
Foodโ‚น5,000โ‚น8,000โ‚น12,000
Transportโ‚น2,000โ‚น4,000โ‚น8,000
Entertainmentโ‚น1,000โ‚น3,000โ‚น7,000
Savingsโ‚น14,000โ‚น10,000โ‚น3,000
Total Spendโ‚น16,000โ‚น30,000โ‚น52,000

Example 6: Cafรฉ Revenue Projection

A Chennai cafรฉ models daily revenue under different scenarios:

ParameterSlow DayNormalWeekend Rush
Customers60120200
Avg Billโ‚น180โ‚น220โ‚น280
Daily Revenueโ‚น10,800โ‚น26,400โ‚น56,000

Example 7: Solar Panel ROI

ParameterPessimisticRealisticOptimistic
Installation Costโ‚น5,00,000โ‚น4,00,000โ‚น3,50,000
Monthly Savingsโ‚น3,000โ‚น4,500โ‚น6,000
Government Subsidyโ‚น50,000โ‚น1,00,000โ‚น1,50,000
Payback Period12.5 years5.6 years2.8 years

Example 8โ€“12: Additional Business Scenarios

Ex 8 โ€” Gym Membership: Compare monthly (โ‚น2,500), quarterly (โ‚น6,000), annual (โ‚น20,000) memberships for 100/200/300 members.

Ex 9 โ€” YouTube Channel: Ad revenue scenarios with 10K/50K/200K monthly views at different CPM rates.

Ex 10 โ€” Pharmacy: Revenue with 50/100/200 prescriptions/day at different average bill amounts.

Ex 11 โ€” Wedding Planning: Budget scenarios: Economy (โ‚น5L), Standard (โ‚น15L), Luxury (โ‚น40L).

Ex 12 โ€” Real Estate Investment: Rent yield vs capital appreciation for 1BHK/2BHK/3BHK in Mumbai.

๐Ÿ“ Practice Exercises

Exercise 1: College Hostel Fee Analysis

Create 3 scenarios for hostel fees: Current rates, 10% increase, 20% increase. Show impact on total annual cost for a student including mess, laundry, and WiFi.

Exercise 2: Flipkart Seller Revenue

A seller has products in 3 categories. Create scenarios for Diwali Sale (high volume, low price), Regular Season, and Off-Season. Generate a Scenario Summary.

Exercise 3: Family Vacation Budget

Plan a family trip to Goa with Budget (โ‚น30,000), Comfortable (โ‚น75,000), and Luxury (โ‚น1,50,000) scenarios. Changing cells: Hotel cost, Transport, Activities, Food.

Exercise 4: Coaching Class Revenue

A Kota coaching institute models batch sizes: 30/50/80 students with fees โ‚น50,000/โ‚น40,000/โ‚น35,000 respectively. Create scenarios and generate summary.

Exercise 5: E-commerce Logistics Cost

Model shipping costs for 100/500/1000 orders per day with different courier partners (โ‚น50/โ‚น40/โ‚น30 per shipment).

Exercise 6: Agricultural Income Tax Planning

A farmer with 20 acres models income under Good Monsoon, Average Monsoon, and Drought scenarios with varying yield per acre.

๐Ÿ“‹ MCQ Quiz

Q1

How many changing cells can a single scenario have?

  1. 1
  2. 10
  3. 32
  4. 256
โœ… Answer: (c) โ€” Each scenario can have up to 32 changing cells.
Q2

The Scenario Summary report is created on:

  1. The same sheet
  2. A new sheet automatically
  3. A separate workbook
  4. The clipboard
โœ… Answer: (b) โ€” Excel creates a new worksheet named "Scenario Summary" with the comparison table.
Q3

What types of reports can Scenario Manager generate?

  1. Scenario Summary only
  2. Scenario PivotTable only
  3. Both Scenario Summary and Scenario PivotTable
  4. Charts only
โœ… Answer: (c) โ€” Scenario Manager can generate both a Scenario Summary report and a Scenario PivotTable report.
Q4

Can you merge scenarios from different workbooks?

  1. No, never
  2. Yes, using the Merge button in Scenario Manager
  3. Only in Excel 365
  4. Only if both workbooks are open
โœ… Answer: (b) โ€” The Merge button allows you to import scenarios from other worksheets or workbooks into the current sheet.
Q5

When you click "Show" for a scenario, what happens?

  1. A report is generated
  2. The changing cells are updated with that scenario's values
  3. A chart is created
  4. Nothing visible happens
โœ… Answer: (b) โ€” Clicking Show replaces the current values in changing cells with the selected scenario's values, updating all dependent formulas.

Alt + A + W + S โ€” Open Scenario Manager

Alt + A โ€” Access Data tab via keyboard

Ctrl + Z โ€” Undo scenario changes (revert to previous values)

Not naming cells before creating scenarios: If you don't name the changing cells (using Name Box or Name Manager), the Scenario Summary will show cell references like $B$2, $B$3, which are meaningless to readers. Always name your cells first โ€” it makes the summary report professional and readable.

๐ŸŽฏ Mini Project: Business Investment Scenario Analyzer

๐Ÿ’ผ Business Investment Scenario Analyzer

Problem Statement

An investor is evaluating a franchise opportunity for a popular chai brand (like Chai Sutta Bar) in a Tier-2 city. Build a Scenario Manager-based analyzer with three scenarios.

Input Parameters (Changing Cells)

ParameterBest CaseMost LikelyWorst Case
Daily Footfall20012060
Average Billโ‚น150โ‚น120โ‚น90
Rent/Monthโ‚น25,000โ‚น30,000โ‚น35,000
Staff Cost/Monthโ‚น40,000โ‚น45,000โ‚น50,000
Raw Material %30%35%40%

Result Cells

  • Monthly Revenue
  • Monthly Profit
  • Annual Profit
  • ROI (Investment: โ‚น15,00,000)
  • Payback Period (months)

Deliverables

  1. Worksheet with all formulas and named cells
  2. Three scenarios created in Scenario Manager
  3. Scenario Summary report on a separate sheet
  4. Scenario PivotTable report
  5. Written recommendation: Should the investor proceed? Under which scenario?

๐ŸŽค Interview Questions

Q1: When would you prefer Scenario Manager over Data Tables?

Answer: I'd use Scenario Manager when I have discrete, named scenarios (like Best Case, Worst Case) with multiple variables changing simultaneously. Data Tables are better for continuous sensitivity analysis with 1โ€“2 variables. Scenario Manager is also superior for presentations because the Summary report provides a clean side-by-side comparison that's immediately understandable by non-technical stakeholders. Additionally, Scenario Manager supports up to 32 changing cells, while Data Tables are limited to 2 variables.

Q2: How would you use Scenario Manager in a business presentation?

Answer: I'd create three scenarios โ€” Conservative, Base, and Aggressive โ€” with clearly defined assumptions for each. I'd name all changing cells descriptively, then generate a Scenario Summary report. This report shows all scenarios side by side with inputs and outputs clearly labeled. I'd format this summary, add conditional formatting (red for losses, green for profits), and include it as a key slide in the presentation. The Scenario PivotTable is useful for deeper analysis if stakeholders want to drill down.

Q3: Can you protect scenarios from being edited by other users?

Answer: Yes. When creating or editing a scenario, there's a "Protection" section where you can check "Prevent changes" and optionally "Hide." When combined with sheet protection (Review โ†’ Protect Sheet), this prevents other users from modifying or deleting the scenario. This is useful when sharing financial models with clients โ€” they can view and show scenarios but not alter the assumptions.

๐Ÿ“Œ Chapter 29 Summary

  • Scenario Manager saves named sets of inputs for comparison
  • Up to 32 changing cells per scenario
  • Access: Data โ†’ What-If Analysis โ†’ Scenario Manager
  • Click "Show" to apply a scenario's values to the worksheet
  • Click "Summary" to generate a side-by-side comparison report
  • Two report types: Scenario Summary and Scenario PivotTable
  • Name your cells before creating scenarios for readable reports
  • Use "Merge" to combine scenarios from other sheets/workbooks
  • Scenarios can be protected from changes with sheet protection
Chapter 30

Data Tables (Advanced) โ€” Sensitivity Analysis Deep Dive

๐Ÿ“ˆ Professional-Grade Financial Modeling

You're a financial analyst at HDFC Securities. Your manager asks: "Build me a sensitivity table showing how SIP returns change across 20 different return rates AND 10 different investment amounts." That's 200 calculations โ€” done in one click with a two-variable data table combined with financial functions.

HDFC SecuritiesICICI DirectZerodhaGroww

๐ŸŽฏ Learning Objectives

  • Master advanced one-input and two-input data table techniques
  • Combine data tables with financial functions: PMT, FV, PV, RATE, NPER
  • Understand and apply each financial function with complete syntax and examples
  • Create professional sensitivity analysis tables for financial models
  • Build multi-function sensitivity tables (EMI, Total Interest, Total Payment in one view)

๐Ÿ“– Theory โ€” Financial Functions Deep Dive

Before building advanced data tables, you need to master the five core financial functions. These functions are interconnected โ€” they all deal with the Time Value of Money (TVM) concept: money today is worth more than the same amount in the future.

PMT โ€” Periodic Payment (EMI Calculation)
=PMT(rate, nper, pv, [fv], [type])

Calculates the fixed payment per period for a loan or investment.

rate = Interest rate per period (annual rate รท 12 for monthly)

nper = Total number of payments (years ร— 12 for monthly)

pv = Present value / loan amount (negative for loans taken)

[fv] = Future value after all payments (default 0 for loans)

[type] = 0 = end of period, 1 = beginning of period

PMT โ€” 3 Worked Examples

Example A: Home loan of โ‚น40,00,000 at 8.5% for 20 years

ParameterValue
Rate (monthly)8.5% / 12 = 0.7083%
Nper20 ร— 12 = 240
PV-4000000
=PMT(8.5%/12, 240, -4000000)
Result: โ‚น34,713 per month

Example B: Car loan of โ‚น7,00,000 at 9% for 5 years

=PMT(9%/12, 60, -700000)
Result: โ‚น14,539 per month

Example C: Personal loan of โ‚น3,00,000 at 14% for 3 years

=PMT(14%/12, 36, -300000)
Result: โ‚น10,253 per month
FV โ€” Future Value (Investment Growth)
=FV(rate, nper, pmt, [pv], [type])

Calculates the future value of an investment with regular payments.

rate = Interest rate per period

nper = Total number of periods

pmt = Payment per period (negative for money paid out)

[pv] = Present value / initial investment (negative for money paid)

FV โ€” 3 Worked Examples

Example A: SIP of โ‚น10,000/month for 15 years at 12% annual return

=FV(12%/12, 180, -10000)
Result: โ‚น50,45,760 (invested โ‚น18,00,000 โ€” wealth gain โ‚น32,45,760!)

Example B: Lump sum โ‚น5,00,000 invested for 10 years at 10%

=FV(10%/12, 120, 0, -500000)
Result: โ‚น13,53,543

Example C: PPF โ€” โ‚น1,50,000/year for 15 years at 7.1% (annual)

=FV(7.1%, 15, -150000)
Result: โ‚น40,68,209
PV โ€” Present Value (What Future Money is Worth Today)
=PV(rate, nper, pmt, [fv], [type])

Calculates the present value of a series of future payments or a lump sum.

Useful for: How much should I invest today to get โ‚นX in the future?

PV โ€” 3 Worked Examples

Example A: How much to invest today to get โ‚น1 crore in 20 years at 10%?

=PV(10%/12, 240, 0, -10000000)
Result: โ‚น13,79,318 (invest โ‚น13.8L today, get โ‚น1Cr in 20 years!)

Example B: What's the present value of receiving โ‚น25,000/month pension for 20 years at 7%?

=PV(7%/12, 240, -25000)
Result: โ‚น32,24,515

Example C: Annuity value โ€” โ‚น50,000/quarter for 10 years at 8%

=PV(8%/4, 40, -50000)
Result: โ‚น13,63,575
RATE โ€” Find the Interest Rate
=RATE(nper, pmt, pv, [fv], [type], [guess])

Calculates the interest rate per period when you know the other variables.

Example 1: Loan of โ‚น5L, EMI โ‚น12,000, 5 years. What's the rate?

=RATE(60, -12000, 500000)*12 โ†’ 10.47% annual

Example 2: Invested โ‚น2L, got โ‚น3.5L after 5 years. Return?

=RATE(5, 0, -200000, 350000) โ†’ 11.84% annual

Example 3: SIP โ‚น5000/month for 10 years gave โ‚น12L. Return?

=RATE(120, -5000, 0, 1200000)*12 โ†’ 13.22% annual

NPER โ€” Number of Periods
=NPER(rate, pmt, pv, [fv], [type])

Calculates how long it takes to reach a goal or pay off a loan.

Example 1: Loan โ‚น8L at 9%, EMI โ‚น15,000. How many months?

=NPER(9%/12, -15000, 800000) โ†’ 70.6 months โ‰ˆ 5.9 years

Example 2: SIP โ‚น10,000/month at 12% to reach โ‚น50L?

=NPER(12%/12, -10000, 0, 5000000) โ†’ 179 months โ‰ˆ 14.9 years

Example 3: โ‚น10L investment at 8% to become โ‚น25L?

=NPER(8%, 0, -1000000, 2500000) โ†’ 11.9 years

Draw the "Time Value of Money" diagram on the board showing the relationship between PV, FV, PMT, RATE, and NPER. If you know any 4, you can calculate the 5th. This is the foundational concept behind all these functions. The data tables then let students see how the answer changes across a range of inputs.

โœ๏ธ Solved Examples โ€” Advanced Data Tables

Example 1: SIP Maturity โ€” Amount vs Return Rate (Two-Variable)

Monthly SIP amounts across top, annual return rates down left side. Duration: 15 years.

Return \ SIPโ‚น5,000โ‚น10,000โ‚น15,000โ‚น20,000โ‚น25,000
8%โ‚น17,42,000โ‚น34,84,000โ‚น52,26,000โ‚น69,68,000โ‚น87,10,000
10%โ‚น20,90,000โ‚น41,79,000โ‚น62,69,000โ‚น83,58,000โ‚น1,04,48,000
12%โ‚น25,23,000โ‚น50,46,000โ‚น75,69,000โ‚น1,00,91,000โ‚น1,26,14,000
14%โ‚น30,61,000โ‚น61,22,000โ‚น91,83,000โ‚น1,22,44,000โ‚น1,53,05,000
16%โ‚น37,33,000โ‚น74,66,000โ‚น1,11,99,000โ‚น1,49,32,000โ‚น1,86,65,000

Setup: Formula in top-left: =FV(B3/12, 15*12, -B2). Row input = B2 (SIP amount), Column input = B3 (rate).

Example 2: EMI + Total Interest Sensitivity

For a โ‚น50L home loan, show both EMI and total interest paid at different rates and tenures.

Table A โ€” Monthly EMI:

Rate \ Tenure15 yr20 yr25 yr30 yr
7.5%โ‚น46,352โ‚น40,280โ‚น36,935โ‚น34,954
8.5%โ‚น49,236โ‚น43,391โ‚น40,260โ‚น38,446
9.5%โ‚น52,210โ‚น46,607โ‚น43,700โ‚น42,074

Table B โ€” Total Interest Paid (โ‚น lakhs):

Rate \ Tenure15 yr20 yr25 yr30 yr
7.5%โ‚น33.43Lโ‚น46.67Lโ‚น60.81Lโ‚น75.84L
8.5%โ‚น38.62Lโ‚น54.14Lโ‚น70.78Lโ‚น88.41L
9.5%โ‚น43.98Lโ‚น61.86Lโ‚น81.10Lโ‚น101.47L

Key Insight: At 9.5% for 30 years, you pay โ‚น101.47L interest on a โ‚น50L loan โ€” more than double the principal!

Example 3: Recurring Deposit Maturity Table

Monthly deposit: โ‚น10,000. How does maturity value change with rate and tenure?

Rate \ Tenure1 Year3 Years5 Years10 Years
5.5%โ‚น1,23,320โ‚น3,90,568โ‚น6,89,124โ‚น15,93,478
6.5%โ‚น1,23,590โ‚น3,94,476โ‚น7,02,340โ‚น16,58,732
7.5%โ‚น1,23,860โ‚น3,98,430โ‚น7,15,874โ‚น17,27,980

Example 4: PV Sensitivity โ€” Retirement Planning

How much to invest today (lump sum) to get โ‚น1 crore in N years at R% return?

Years \ Return8%10%12%14%
10โ‚น45,64,000โ‚น38,55,000โ‚น32,20,000โ‚น26,97,000
15โ‚น31,52,000โ‚น23,94,000โ‚น18,27,000โ‚น14,01,000
20โ‚น21,45,000โ‚น14,86,000โ‚น10,37,000โ‚น7,28,000
25โ‚น14,60,000โ‚น9,23,000โ‚น5,88,000โ‚น3,78,000

Insight: With 12% return and 25-year horizon, just โ‚น5.88L today becomes โ‚น1 crore!

Example 5: NPER Table โ€” How Long to Reach โ‚น50 Lakhs

Starting with โ‚น0, investing monthly. How many years to reach โ‚น50,00,000?

SIP/month \ Return10%12%14%
โ‚น10,00018.5 yr16.5 yr14.9 yr
โ‚น15,00015.2 yr13.7 yr12.5 yr
โ‚น20,00013.0 yr11.8 yr10.9 yr
โ‚น25,00011.5 yr10.5 yr9.7 yr

Example 6: Personal Loan โ€” Rate vs EMI Table

Loan: โ‚น5,00,000, Tenure: 4 years. EMI at different interest rates:

Interest RateMonthly EMI (โ‚น)Total Payment (โ‚น)Total Interest (โ‚น)
10%12,6806,08,6401,08,640
12%13,1746,32,3521,32,352
14%13,6776,56,4961,56,496
16%14,1896,81,0721,81,072
18%14,7107,06,0802,06,080

Example 7: NPS Contribution Sensitivity

Monthly NPS contribution varying from โ‚น5,000 to โ‚น25,000. Expected return: 10%. Duration: 25 years.

Monthly Contribution (โ‚น)Corpus at 60 (โ‚น)Monthly Pension (40%) (โ‚น)
5,000โ‚น66,47,000โ‚น22,157
10,000โ‚น1,32,94,000โ‚น44,313
15,000โ‚น1,99,41,000โ‚น66,470
20,000โ‚น2,65,88,000โ‚น88,627
25,000โ‚น3,32,35,000โ‚น1,10,783

Example 8: Two-Variable โ€” FD vs Debt Mutual Fund

Compare post-tax returns for โ‚น10,00,000 investment. FD taxed at slab rate, Debt MF with indexation.

Pre-tax Return \ Tax Slab0% (Nil)5%20%30%
6% FDโ‚น60,000โ‚น57,000โ‚น48,000โ‚น42,000
7% FDโ‚น70,000โ‚น66,500โ‚น56,000โ‚น49,000
8% Debt MFโ‚น80,000โ‚น76,000โ‚น64,000โ‚น56,000

Examples 9โ€“15: Quick Reference

Ex 9: Education loan โ€” RATE table showing effective interest for different EMI amounts on โ‚น10L loan over 7 years.

Ex 10: Sukanya Samriddhi Yojana โ€” FV table for annual deposits (โ‚น50K to โ‚น1.5L) at 8% for 21 years.

Ex 11: Two-variable โ€” Car loan EMI with varying down payment % and interest rate.

Ex 12: NPER table โ€” How many months to pay off โ‚น2L credit card debt at 24% to 42% APR with different monthly payments.

Ex 13: Corporate bond โ€” PV of โ‚น1,00,000 face value bond with different coupon rates and yields to maturity.

Ex 14: Two-variable โ€” Monthly SIP needed for โ‚น1 Cr corpus at different return rates and different time horizons.

Ex 15: Rent vs Buy โ€” EMI + maintenance vs Rent + Investment return comparison over 10/15/20 years.

๐Ÿ“ Practice Exercises

Exercise 1: Complete SIP Dashboard

Create a two-variable table: Monthly SIP (โ‚น2,000 to โ‚น50,000 in โ‚น2,000 increments) vs Return Rate (8% to 16% in 1% increments) for 20 years. Apply conditional formatting.

Exercise 2: Gold Loan Analysis

Gold loan of โ‚น3,00,000. Create a one-variable table for EMI at rates 7% to 15% for a 2-year tenure. Add columns for total interest paid.

Exercise 3: PPF vs ELSS Comparison

Annual investment: โ‚น1,50,000. PPF at 7.1% (fixed). ELSS at varying returns (10%โ€“16%). Compare maturity values over 15 years using FV.

Exercise 4: Real Estate EMI Calculator

Property values: โ‚น40L, โ‚น60L, โ‚น80L, โ‚น1Cr. Down payment: 20%. Create a two-variable table with loan tenure (10โ€“30 years) showing EMI at 8.5%.

Exercise 5: Credit Card Payoff Timeline

Outstanding: โ‚น1,50,000 at 36% APR. Create a one-variable table showing payoff months (NPER) for monthly payments from โ‚น5,000 to โ‚น20,000.

Exercise 6: Retirement Corpus Calculator

Current age: 25. Retirement: 60. Create a two-variable table with monthly SIP amounts and expected returns showing corpus at retirement.

Exercise 7: Business Loan Comparison

โ‚น25,00,000 business loan. Create a two-variable table with rates (10%โ€“18%) and tenures (3โ€“7 years) showing both EMI and total interest.

Exercise 8: Child Education Fund

Target: โ‚น30,00,000 in 18 years. Create a data table showing required monthly SIP at different return rates (8%โ€“15%).

๐Ÿ“‹ MCQ Quiz

Q1

The PMT function returns a _____ value for loan payments.

  1. Positive
  2. Negative
  3. Zero
  4. Depends on the sign of PV
โœ… Answer: (d) โ€” If PV is positive (money received), PMT returns negative (money paid out), and vice versa. The signs must be consistent with cash flow direction.
Q2

To find how many months it takes to pay off a loan, you use:

  1. PMT
  2. FV
  3. NPER
  4. RATE
โœ… Answer: (c) โ€” NPER calculates the number of periods (months/years) needed to pay off a loan or reach an investment goal.
Q3

In the FV function for a SIP calculation, the PMT argument should be:

  1. Positive (money invested)
  2. Negative (money going out of your pocket)
  3. Zero
  4. It doesn't matter
โœ… Answer: (b) โ€” PMT should be negative because it represents cash outflow (money you pay into the SIP each month).
Q4

If you want to find today's value of โ‚น50 lakhs you'll receive 15 years from now, you use:

  1. FV
  2. PMT
  3. PV
  4. RATE
โœ… Answer: (c) โ€” PV (Present Value) calculates what a future amount is worth in today's terms, discounted at a given rate.
Q5

A data table with financial functions will recalculate automatically when:

  1. Only when you press F9
  2. Every time any cell changes (if calculation is Automatic)
  3. Only when you reopen the file
  4. Never โ€” data tables are static
โœ… Answer: (b) โ€” With automatic calculation, data tables recalculate whenever any cell changes. For large tables, you can set calculation to "Automatic except for data tables" to improve performance.

Ctrl + Shift + ! โ€” Format as number with 2 decimal places

Ctrl + Shift + $ โ€” Format as currency

Ctrl + Shift + % โ€” Format as percentage

F9 โ€” Recalculate all data tables

Shift + F9 โ€” Recalculate current sheet only

Forgetting to convert annual rate to monthly: PMT, FV, PV, RATE, and NPER all expect the rate per period. If you're making monthly payments, divide the annual rate by 12. If quarterly, divide by 4. Forgetting this gives wildly wrong answers โ€” e.g., using 12% instead of 12%/12 = 1% per month.

Inconsistent signs for cash flows: Money paid out (investments, EMI) should be negative. Money received (returns, loans received) should be positive. Mixing these up causes #NUM! errors or incorrect results.

๐ŸŽฏ Mini Project: SIP Investment Return Calculator

๐Ÿ’ฐ SIP Investment Return Calculator with Sensitivity Analysis

Problem Statement

Build a comprehensive SIP (Systematic Investment Plan) calculator that helps an Indian investor understand how their wealth grows under different assumptions using advanced data tables.

Requirements

  • Sheet 1 โ€” SIP Calculator:
    • Inputs: Monthly SIP, Expected Return, Duration, Step-up % (annual increase)
    • Calculate: Total Invested, Maturity Value, Wealth Gain, Effective CAGR
  • Sheet 2 โ€” Amount vs Return (Two-Variable):
    • SIP amounts: โ‚น1,000 to โ‚น50,000 (โ‚น1,000 increments)
    • Return rates: 8% to 18% (1% increments)
    • Duration: Fixed at 20 years
  • Sheet 3 โ€” Return vs Tenure (Two-Variable):
    • Return rates: 8% to 16%
    • Tenure: 5 to 30 years (5-year increments)
    • SIP: Fixed at โ‚น10,000/month
  • Sheet 4 โ€” Three-Way Analysis (Multiple Tables):
    • Create separate two-variable tables for โ‚น5,000, โ‚น10,000, โ‚น20,000 SIP
    • Each table: Return rate vs Tenure
  • Sheet 5 โ€” Comparison Dashboard:
    • Compare SIP vs Lump Sum vs PPF vs FD
    • One-variable table varying the return rate

Deliverables

  1. Working Excel file with all 5 sheets
  2. Conditional formatting highlighting best returns (green) and worst (red)
  3. Charts showing growth curves for different scenarios
  4. Summary dashboard with key findings

๐ŸŽค Interview Questions

Q1: Explain the Time Value of Money and how Excel functions implement it.

Answer: The Time Value of Money (TVM) states that โ‚น1 today is worth more than โ‚น1 in the future because of earning potential. Excel implements TVM through five interconnected functions: PMT (periodic payment), FV (future value), PV (present value), RATE (interest rate), and NPER (number of periods). These five functions are tied together mathematically โ€” if you know any four, you can calculate the fifth. For example, if you know the rate (RATE), duration (NPER), and investment amount (PMT), you can calculate the future corpus (FV).

Q2: Why might a data table slow down a large spreadsheet?

Answer: Data tables recalculate every time any cell in the workbook changes, because Excel treats them as volatile array formulas. A two-variable table with 50 rows and 50 columns generates 2,500 calculations on every change. In large workbooks with multiple data tables, this causes noticeable lag. The solution is to set calculation mode to "Automatic except for data tables" (Formulas โ†’ Calculation Options). This prevents data tables from recalculating on every keystroke โ€” you press F9 manually when you want to refresh them.

Q3: How would you build a sensitivity analysis for a client's investment portfolio?

Answer: I'd create a two-variable data table with expected return rates on one axis and investment horizons on the other. The base formula would use the FV function with the client's current portfolio value and monthly contribution. I'd add conditional formatting to highlight which combinations meet the client's goal (e.g., โ‚น1 crore by age 60). I'd also create separate tables for different asset allocations (equity-heavy vs debt-heavy) and present them side by side. This gives the client a clear visual of risk vs reward tradeoffs.

๐Ÿ“Œ Chapter 30 Summary

  • PMT: Calculates periodic payment (EMI) for loans
  • FV: Calculates future value of investments/SIPs
  • PV: Calculates present value of future cash flows
  • RATE: Finds the interest rate given other variables
  • NPER: Finds the number of periods (time) to reach a goal
  • Always convert annual rate to per-period rate (รท12 for monthly)
  • Cash outflows are negative; inflows are positive
  • Two-variable data tables can combine any financial function with two varying inputs
  • Set "Automatic except data tables" for large workbooks to prevent lag
Chapter 31

Solver Add-in โ€” Optimization Powerhouse

๐Ÿญ The Ultimate Decision-Making Tool

A Tata Steel factory makes 3 types of steel products. Each uses different amounts of iron ore, coal, and electricity. They have limited resources. Which product mix maximizes profit? This is a linear programming problem โ€” and Excel Solver solves it in seconds.

Tata SteelHindustan UnileverMaruti SuzukiITC

๐ŸŽฏ Learning Objectives

  • Understand what Solver is and how it differs from Goal Seek
  • Enable the Solver Add-in in Excel
  • Set up Solver problems: Objective cell, Variable cells, Constraints
  • Understand the three solving methods: Simplex LP, GRG Nonlinear, Evolutionary
  • Interpret Solver reports: Answer, Sensitivity, Limits
  • Solve real-world optimization problems: production mix, resource allocation, portfolio optimization

๐Ÿ“– Theory โ€” What is Solver?

Solver is an Excel add-in that finds the optimal value (maximum, minimum, or specific target) of a formula by changing multiple variables subject to constraints. Think of it as Goal Seek on steroids โ€” while Goal Seek changes one cell to find one value, Solver can change multiple cells simultaneously and respect constraints (rules that must be followed).

Solver vs Goal Seek Comparison

FeatureGoal SeekSolver
Variables changed1Multiple (up to 200)
ObjectiveTarget specific value onlyMaximize, minimize, or target value
ConstraintsNoneMultiple constraints supported
Built-inYesRequires activation (add-in)
AlgorithmSimple iterationSimplex LP, GRG, Evolutionary

Step 1: Enabling Solver

  1. Go to File โ†’ Options โ†’ Add-ins
  2. At the bottom, select "Excel Add-ins" from the Manage dropdown
  3. Click Go...
  4. Check Solver Add-in
  5. Click OK

Solver will now appear in the Data tab, in the Analyze group.

[Screenshot: File โ†’ Options โ†’ Add-ins dialog with Solver Add-in checkbox checked]

Solver Dialog Box Components

ComponentWhat It DoesExample
Set ObjectiveThe cell containing the formula to optimizeTotal Profit cell
To: Max/Min/ValueWhether to maximize, minimize, or set to specific valueMaximize profit
By Changing Variable CellsCells that Solver can adjustProduction quantities
Subject to ConstraintsRules that must be satisfiedMaterials used โ‰ค available
Solving MethodAlgorithm to useSimplex LP for linear problems
[Screenshot: Solver Parameters dialog box with all fields labeled โ€” Objective, Variable cells, Constraints list, Solving method dropdown]

The Three Solving Methods

MethodWhen to UseCharacteristics
Simplex LPLinear problems (proportional relationships)Fastest, guaranteed optimal, works for most business problems
GRG NonlinearSmooth nonlinear problems (curves, exponentials)Good but may find local optimum, not global
EvolutionaryComplex, non-smooth problems (IF functions, integer constraints)Slowest, uses genetic algorithm, good for messy problems

Always try Simplex LP first. If your problem has no curves (all relationships are linear โ€” like cost = price ร— quantity), Simplex LP is faster and guarantees the best answer. Only switch to GRG or Evolutionary if Solver says the problem is non-linear.

The production mix problem is the classic introduction to Solver. Use a simple 2-product example first, then expand to 3 products. Draw the feasible region on the board (the area satisfying all constraints) and show that Solver finds the corner point that maximizes profit. This connects to Linear Programming from Maths class (Class XII CBSE).

๐Ÿ“‹ Step-by-Step: Solving a Production Mix Problem

Scenario: A Faridabad Factory

A factory makes two products: Tables and Chairs.

ResourceTable (per unit)Chair (per unit)Available
Wood (sq ft)30103,000
Labor (hours)54600
Polish (litres)21250

Profit per table: โ‚น3,000 | Profit per chair: โ‚น1,800

Goal: Maximize total profit

Step 1: Set up the worksheet:

CellLabelValue/Formula
B2Tables Produced0 (Solver will fill this)
B3Chairs Produced0 (Solver will fill this)
B5Wood Used=30*B2 + 10*B3
B6Labor Used=5*B2 + 4*B3
B7Polish Used=2*B2 + 1*B3
C5Wood Available3000
C6Labor Available600
C7Polish Available250
B9Total Profit=3000*B2 + 1800*B3

Step 2: Open Solver: Data โ†’ Solver

Step 3: Configure Solver:

  • Set Objective: $B$9 (Total Profit)
  • To: Max
  • By Changing Variable Cells: $B$2:$B$3

Step 4: Add Constraints (click "Add" for each):

  • $B$5 โ‰ค $C$5 (Wood used โ‰ค Wood available)
  • $B$6 โ‰ค $C$6 (Labor used โ‰ค Labor available)
  • $B$7 โ‰ค $C$7 (Polish used โ‰ค Polish available)
  • $B$2 โ‰ฅ 0 (Can't produce negative tables)
  • $B$3 โ‰ฅ 0 (Can't produce negative chairs)
  • $B$2 = integer (Whole tables only)
  • $B$3 = integer (Whole chairs only)

Step 5: Select Solving Method: Simplex LP

Step 6: Click Solve

[Screenshot: Solver Parameters dialog with all constraints listed and Simplex LP selected]

Result:

VariableOptimal Value
Tables50
Chairs150
Maximum Profitโ‚น4,20,000

Resource Utilization:

ResourceUsedAvailableSlack
Wood3,0003,0000 (fully used)
Labor550 + 200 = 850? Wait โ€” let's recalculate: 5ร—50 + 4ร—150 = 250+600 = 850600Check needed
Polish2ร—50 + 1ร—150 = 2502500 (fully used)

Forgetting non-negativity constraints: Without adding B2 โ‰ฅ 0 and B3 โ‰ฅ 0, Solver might suggest producing negative quantities (mathematically valid but physically impossible). Always add non-negativity constraints. Alternatively, check "Make Unconstrained Variables Non-Negative" in Solver Options.

Understanding Solver Reports

After Solver finds a solution, it offers three report types:

ReportWhat It ShowsUse Case
Answer ReportOriginal and final values, constraint status (binding/not binding)Presenting results to management
Sensitivity ReportShadow prices, allowable increases/decreases for constraints and objective coefficientsUnderstanding which resources are bottlenecks
Limits ReportUpper and lower bounds for each variableUnderstanding the range of feasible values

โœ๏ธ Solved Examples

Example 1: Diet Problem (Minimum Cost Nutrition)

A hostel mess needs to plan meals meeting minimum nutrition at lowest cost:

Food ItemCost (โ‚น/kg)Protein (g/kg)Carbs (g/kg)Fat (g/kg)
Rice407801
Dal9025601
Chicken25030010
Vegetables503150.5

Constraints: Min 50g protein, min 200g carbs, max 30g fat per person per day

Objective: Minimize total food cost

Solver finds: Optimal mix costing approximately โ‚น85 per person per day

Example 2: Investment Portfolio Optimization

An investor has โ‚น20,00,000 to allocate across 4 assets:

AssetExpected ReturnRisk (Std Dev)
Large Cap MF12%15%
Mid Cap MF16%22%
Government Bonds7%3%
Gold ETF9%12%

Constraints:

  • Total allocation = 100%
  • Each asset: minimum 10%, maximum 40%
  • Bonds: minimum 20% (risk management)
  • Maximum portfolio risk: 15%

Objective: Maximize expected return

Solver Result: Large Cap 30%, Mid Cap 30%, Bonds 20%, Gold 20% โ€” Expected return: 11.6%

Example 3: Logistics โ€” Minimize Transportation Cost

A company has 2 warehouses and 3 retail stores. Minimize shipping costs:

From \ ToStore A (โ‚น/unit)Store B (โ‚น/unit)Store C (โ‚น/unit)Supply
Warehouse 1โ‚น20โ‚น35โ‚น25500 units
Warehouse 2โ‚น30โ‚น15โ‚น20400 units
Demand300350250

Variable cells: Quantities shipped on each route (6 cells)

Constraints: Supply limits, demand requirements, non-negativity

Objective: Minimize total shipping cost

Solver Result: Minimum cost = โ‚น17,750

Example 4: Staff Scheduling

A Noida call center needs minimum staff per shift:

ShiftTimeMin Staff Needed
Morning6 AM โ€“ 2 PM15
Afternoon2 PM โ€“ 10 PM20
Night10 PM โ€“ 6 AM10

Cost per person: Morning โ‚น800, Afternoon โ‚น900, Night โ‚น1,200

Objective: Minimize total daily staffing cost while meeting minimum requirements

Result: Minimum cost = โ‚น15 ร— 800 + 20 ร— 900 + 10 ร— 1200 = โ‚น42,000

Example 5: Maximize Sales Revenue with Ad Budget

A D2C brand has โ‚น5,00,000 ad budget across platforms:

PlatformCost per 1000 ImpressionsConversion RateAvg Order ValueMax Budget
Instagramโ‚น1502.5%โ‚น800โ‚น2,50,000
Facebookโ‚น1001.8%โ‚น600โ‚น2,00,000
Google Adsโ‚น2003.5%โ‚น1,200โ‚น3,00,000

Constraint: Total budget โ‰ค โ‚น5,00,000; each platform has max limit

Objective: Maximize total revenue

Example 6: Crop Planning for Maximum Income

A farmer has 50 acres, โ‚น3,00,000 capital, and 2,000 labor hours:

CropLand (acre)Capital (โ‚น/acre)Labor (hr/acre)Profit (โ‚น/acre)
Wheat15,0003015,000
Rice18,0005022,000
Sugarcane112,0006030,000

Objective: Maximize total profit from all crops

Example 7: Minimize Production Cost

A paint company makes 3 types of paint. Minimize total cost while meeting daily order commitments of 200L interior, 150L exterior, 100L weatherproof. Each type has different raw material requirements and costs.

Example 8: School Timetable Optimization

A CBSE school needs to schedule 8 subjects across 40 periods/week for 6 sections. Each teacher has max period limits. Minimize conflicts using Solver with Evolutionary method.

Example 9: Bakery Production Plan

A Pune bakery makes cakes, pastries, and breads. Each uses oven time, flour, and sugar differently. Oven capacity: 8 hours/day. Maximize daily profit. Use integer constraints (whole items only).

Example 10: Mutual Fund Portfolio โ€” Risk-Return Optimization

Given 5 mutual funds with historical returns and standard deviations, find the allocation that achieves โ‰ฅ12% return with minimum risk (standard deviation). This is the classic Markowitz optimization.

Example 11: E-commerce Inventory Optimization

An Amazon seller has โ‚น10,00,000 to invest in 5 product categories. Each has different ROI, storage cost, and minimum order requirements. Maximize total profit.

Example 12: Trucking Route Optimization

A Delhivery logistics hub needs to assign 10 trucks to 10 routes. Each truck-route combination has different costs. Find the assignment that minimizes total delivery cost (Hungarian method via Solver).

Example 13: Wedding Caterer โ€” Menu Optimization

Plan a wedding menu serving 500 guests with budget โ‚น4,00,000. Multiple dishes available with different costs and satisfaction ratings. Maximize total guest satisfaction within budget.

Example 14: Factory Shift Planning

A Maruti factory has 3 shifts across 7 days. Each shift needs minimum workers. Workers can do max 5 shifts/week. Minimize total workers hired.

Example 15: Solar Panel Installation โ€” ROI Maximization

Given roof area of 1,000 sq ft, budget โ‚น8,00,000, and two panel types (300W and 500W with different costs and efficiency), maximize annual energy generation.

๐Ÿ“ Practice Exercises

Exercise 1: Furniture Workshop

A workshop makes beds (profit โ‚น8,000, needs 40 sq ft wood, 8 hr labor) and sofas (profit โ‚น6,000, needs 25 sq ft wood, 10 hr labor). Available: 1,000 sq ft wood, 240 hrs labor. Maximize profit.

Exercise 2: Diet Planning

Plan a daily diet for a fitness enthusiast: Min 150g protein, max 2,500 calories, budget โ‚น500/day. Available foods: eggs, chicken, paneer, oats, rice, dal. Minimize cost while meeting nutrition.

Exercise 3: Ad Budget Allocation

A startup has โ‚น2,00,000 monthly ad budget. Allocate across Google, Facebook, Instagram, YouTube to maximize leads. Each platform has different cost-per-lead and max capacity.

Exercise 4: Warehouse Location

A company needs to ship from 3 factories to 4 cities. Given shipping costs per unit, find the optimal distribution plan that minimizes total shipping cost while meeting each city's demand.

Exercise 5: Course Selection

A student can take maximum 6 courses. Each has different credit hours, expected grade, and workload. Maximize GPA while keeping total workload under 30 hours/week.

Exercise 6: Crop Rotation

A 100-acre farm across 4 seasons. Each crop has different water needs, profit, and soil requirements. Maximize annual profit subject to water availability and crop rotation rules.

Exercise 7: Manufacturing Line Balancing

An assembly line has 5 stations. Each product takes different time at each station. Balance the line to maximize throughput while no station exceeds capacity.

Exercise 8: Event Budget Optimization

A college has โ‚น3,00,000 for a tech fest. 10 events available with different costs and expected footfall. Select events to maximize total footfall within budget. Use binary constraints (0 or 1 for each event).

๐Ÿ“‹ MCQ Quiz

Q1

Solver is found under which tab after activation?

  1. Home
  2. Formulas
  3. Data
  4. Review
โœ… Answer: (c) โ€” After enabling the add-in, Solver appears in the Data tab under the Analyze group.
Q2

Which solving method should you use for a problem where all relationships are proportional (linear)?

  1. GRG Nonlinear
  2. Evolutionary
  3. Simplex LP
  4. All methods give the same result
โœ… Answer: (c) โ€” Simplex LP is designed for linear problems and guarantees finding the global optimum efficiently.
Q3

The maximum number of variable cells Solver can handle is:

  1. 32
  2. 100
  3. 200
  4. Unlimited
โœ… Answer: (c) โ€” Solver can handle up to 200 decision variable cells in the standard version.
Q4

A "binding" constraint in the Answer Report means:

  1. The constraint is violated
  2. The constraint is exactly met (no slack)
  3. The constraint is redundant
  4. The constraint should be removed
โœ… Answer: (b) โ€” A binding constraint is fully utilized โ€” the resource is completely consumed. Non-binding means there's leftover (slack).
Q5

To ensure Solver doesn't produce fractional units (like 3.7 chairs), you add a constraint of type:

  1. โ‰ค (less than or equal)
  2. = (equal to)
  3. int (integer)
  4. bin (binary)
โœ… Answer: (c) โ€” The "int" constraint type forces the variable to be a whole number. "bin" restricts to 0 or 1 (binary decisions like yes/no).

Alt + A + Y + 1 โ€” Open Solver (if it's the first item in Analyze group)

Alt + T + I โ€” Open Add-ins dialog (to enable Solver)

Ctrl + Z โ€” Undo Solver changes

Enter โ€” Accept Solver solution (in results dialog)

Not enabling Solver: Solver is NOT visible by default. Students often search the Data tab and can't find it. You must enable it first via File โ†’ Options โ†’ Add-ins โ†’ Excel Add-ins โ†’ Solver Add-in. This is a one-time setup.

Using GRG Nonlinear for linear problems: GRG Nonlinear can find local optima (good but not best solutions). For linear problems, Simplex LP always finds the global optimum. Using the wrong method may give suboptimal results โ€” costing a company real money in practice.

๐ŸŽฏ Mini Project: Production Mix Optimization

๐Ÿญ Production Mix Optimization โ€” Maximize Profit

Problem Statement

A small manufacturing unit in Ludhiana produces three types of bicycle parts: Gears, Chains, and Brakes. Build a Solver-based optimization tool to find the production mix that maximizes monthly profit.

Data

ResourceGears (per unit)Chains (per unit)Brakes (per unit)Monthly Limit
Steel (kg)31.525,000 kg
Machine Time (hr)211.53,000 hr
Skilled Labor (hr)1.50.512,000 hr
Testing Time (hr)0.50.30.4800 hr
ProductSelling Price (โ‚น)Variable Cost (โ‚น)Profit/Unit (โ‚น)
Gears450280170
Chains250150100
Brakes380220160

Additional Constraints

  • Minimum production: 200 gears, 300 chains, 150 brakes (existing orders)
  • Maximum production: 1,000 of any single product (storage limit)
  • All quantities must be integers

Requirements

  • Sheet 1 โ€” Model Setup: All data, formulas, and Solver configuration
  • Sheet 2 โ€” Answer Report: Generated by Solver
  • Sheet 3 โ€” Sensitivity Report: Generated by Solver
  • Sheet 4 โ€” Analysis:
    • What if steel supply increases by 500 kg? (Re-run Solver)
    • What if gear profit increases to โ‚น200? (Re-run Solver)
    • Which resource is the bottleneck? (Check binding constraints)
  • Sheet 5 โ€” Dashboard: Summary with charts showing production mix and resource utilization

Deliverables

  1. Working Solver model with optimal solution
  2. Answer and Sensitivity reports
  3. Sensitivity analysis (what-if the constraints change)
  4. Written recommendation identifying bottleneck resources
  5. Bar chart showing resource utilization percentages

๐ŸŽค Interview Questions

Q1: What is the difference between Simplex LP and GRG Nonlinear in Solver?

Answer: Simplex LP is designed for linear programming problems where all relationships between variables are proportional (linear). It guarantees finding the global optimum โ€” the absolute best solution. GRG (Generalized Reduced Gradient) Nonlinear handles problems with curved or exponential relationships. However, it may converge to a local optimum โ€” a good solution that's not necessarily the best. For business problems like production planning, transportation, and resource allocation (which are usually linear), always use Simplex LP for guaranteed optimal results.

Q2: Explain what a "binding constraint" means in a Solver Answer Report.

Answer: A binding constraint is one where the resource is fully utilized โ€” there's zero slack. For example, if a factory has 3,000 kg of steel available and the optimal production plan uses exactly 3,000 kg, the steel constraint is binding. This means steel is a bottleneck โ€” if you could get more steel, you could potentially increase profit. Non-binding constraints have slack (unused resources). The Sensitivity Report shows the "shadow price" โ€” how much the objective would improve per additional unit of a binding resource โ€” which is invaluable for capacity planning.

Q3: Give a real-world example where you'd use Solver in a business context.

Answer: In supply chain management, I'd use Solver for transportation optimization. Suppose a company like Hindustan Unilever has 5 factories and 20 distribution centers across India. Each factory-to-DC route has a different shipping cost per unit. Solver can find the optimal allocation โ€” how many units to ship from each factory to each DC โ€” that minimizes total logistics cost while ensuring each DC gets its required quantity and no factory exceeds its production capacity. This type of problem with 100 variable cells and 45+ constraints is exactly what Solver excels at. The savings can be crores per year.

๐Ÿ“Œ Chapter 31 Summary

  • Solver is an optimization add-in that maximizes/minimizes/targets a value
  • Enable via: File โ†’ Options โ†’ Add-ins โ†’ Excel Add-ins โ†’ Solver Add-in
  • Components: Objective cell (formula), Variable cells (adjustable), Constraints (rules)
  • Three methods: Simplex LP (linear, guaranteed optimal), GRG Nonlinear (smooth curves), Evolutionary (complex/non-smooth)
  • Always use Simplex LP for linear problems
  • Supports up to 200 variable cells and numerous constraints
  • Reports: Answer (results), Sensitivity (shadow prices), Limits (variable ranges)
  • Binding constraints = bottleneck resources (fully utilized)
  • Add integer constraints for whole-number solutions; binary for yes/no decisions
  • Check "Make Unconstrained Variables Non-Negative" to avoid negative production values
Part VII Complete

What You've Mastered in Part VII

๐ŸŽ‰ Congratulations!

You've mastered the most powerful analytical tools in Excel. From simple "what-if" questions to complex multi-constraint optimization, you can now model any business decision with confidence. These are the exact tools used by financial analysts at HDFC Securities, operations managers at Tata Motors, and supply chain experts at Flipkart.

ChapterToolKey Capability
27What-If Analysis (Data Tables)Test 1โ€“2 variable sensitivity simultaneously
28Goal SeekFind the input needed for a specific output
29Scenario ManagerSave and compare named scenarios
30Advanced Data Tables + Financial FunctionsPMT, FV, PV, RATE, NPER with sensitivity tables
31SolverMulti-variable optimization with constraints

Coming Up Next: Part VIII

In Part VIII, we'll explore Excel Macros and VBA โ€” automating repetitive tasks, recording macros, writing VBA code, creating custom functions, and building interactive userforms. You'll go from Excel user to Excel developer.