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
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.
๐ฏ 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
| Tool | Purpose | Variables | Best For |
|---|---|---|---|
| Data Tables | Test multiple values of 1 or 2 inputs | 1โ2 input variables | Sensitivity analysis, comparison tables |
| Goal Seek | Find the input needed for a desired output | 1 input variable | Break-even, target percentage, EMI targets |
| Scenario Manager | Save and compare named sets of inputs | Up to 32 variables | Best/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.
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:
| Cell | Label | Value |
|---|---|---|
| B2 | Loan Amount | 5000000 |
| B3 | Annual Interest Rate | 8.5% |
| B4 | Tenure (Years) | 20 |
| B5 | Monthly 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)
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)
Step 7: Click OK. Excel fills the table with EMIs for each interest rate!
| Interest Rate | Monthly 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)
Result: A grid showing EMI for every combination:
| Rate \ Tenure | 10 yr | 15 yr | 20 yr | 25 yr | 30 yr |
|---|---|---|---|---|---|
| 7.0% | 58,054 | 44,941 | 38,765 | 35,339 | 33,265 |
| 8.0% | 60,664 | 47,783 | 41,822 | 38,591 | 36,688 |
| 8.5% | 61,995 | 49,236 | 43,391 | 40,260 | 38,446 |
| 9.0% | 63,338 | 50,714 | 44,986 | 41,960 | 40,243 |
| 10.0% | 66,075 | 53,735 | 48,251 | 45,436 | 43,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.
| Cell | Label | Value |
|---|---|---|
| B2 | Principal | 1000000 |
| B3 | Annual Rate | 7% |
| B4 | Years | 5 |
| B5 | Maturity Amount | =FV(B3/4, B4*4, 0, -B2) |
One-Variable Table: Column input rates: 6%, 6.5%, 7%, 7.5%, 8%, 8.5%
| Annual Rate | Maturity 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 Rate | GST Amount (โน) | Final Price (โน) |
|---|---|---|
| 0% (Exempt) | 0 | 2,500 |
| 5% | 125 | 2,625 |
| 12% | 300 | 2,800 |
| 18% | 450 | 2,950 |
| 28% | 700 | 3,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?
=FV(rate/12, nper*12, -pmt)
| Monthly SIP (โน) | Total Invested (โน) | Maturity Value (โน) | Wealth Gain (โน) |
|---|---|---|---|
| 5,000 | 6,00,000 | 11,61,695 | 5,61,695 |
| 10,000 | 12,00,000 | 23,23,391 | 11,23,391 |
| 15,000 | 18,00,000 | 34,85,086 | 16,85,086 |
| 20,000 | 24,00,000 | 46,46,781 | 22,46,781 |
| 25,000 | 30,00,000 | 58,08,477 | 28,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 (โน) |
|---|---|---|---|
| 400 | 8,00,000 | 7,00,000 | -1,00,000 |
| 450 | 9,00,000 | 7,00,000 | 0 |
| 500 | 10,00,000 | 7,00,000 | 1,00,000 |
| 550 | 11,00,000 | 7,00,000 | 2,00,000 |
| 600 | 12,00,000 | 7,00,000 | 3,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 Marks | Total (out of 500) | Percentage |
|---|---|---|
| 60 | 403 | 80.6% |
| 70 | 413 | 82.6% |
| 80 | 423 | 84.6% |
| 90 | 433 | 86.6% |
| 95 | 438 | 87.6% |
| 100 | 443 | 88.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,000 | 4.50% | 6.00% | 7.50% | 9.00% |
| โน50,00,000 | 3.60% | 4.80% | 6.00% | 7.20% |
| โน60,00,000 | 3.00% | 4.00% | 5.00% | 6.00% |
| โน70,00,000 | 2.57% | 3.43% | 4.29% | 5.14% |
| โน80,00,000 | 2.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,000 | 22,422 | 2,45,320 |
| 15% | 10,20,000 | 21,176 | 2,31,580 |
| 20% | 9,60,000 | 19,931 | 2,17,840 |
| 25% | 9,00,000 | 18,685 | 2,04,100 |
| 30% | 8,40,000 | 17,440 | 1,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,999 | 300 | 1,699 | 899 |
| 10% | 1,799 | 270 | 1,529 | 729 |
| 20% | 1,599 | 240 | 1,359 | 559 |
| 30% | 1,399 | 210 | 1,189 | 389 |
| 40% | 1,199 | 180 | 1,019 | 219 |
| 50% | 999 | 150 | 849 | 49 |
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 Consumed | Bill Amount (โน) |
|---|---|
| 100 | 300 |
| 200 | 600 |
| 300 | 1,050 |
| 400 | 1,500 |
| 600 | 2,800 |
| 800 | 4,100 |
| 1000 | 5,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,000 | 0 |
| 6,00,000 | 15,000 |
| 9,00,000 | 45,000 |
| 12,00,000 | 90,000 |
| 15,00,000 | 1,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 (โน) |
|---|---|---|---|
| 15 | 22,50,000 | 40,68,209 | 18,18,209 |
| 20 | 30,00,000 | 66,58,288 | 36,58,288 |
| 25 | 37,50,000 | 1,02,41,694 | 64,91,694 |
Example 14: Petrol Bunk Daily Revenue
Petrol price: โน105/litre. Daily sales vary. How does daily revenue change?
| Litres Sold/Day | Revenue (โน) | Dealer Margin @โน3.5/L (โน) |
|---|---|---|
| 2,000 | 2,10,000 | 7,000 |
| 3,000 | 3,15,000 | 10,500 |
| 5,000 | 5,25,000 | 17,500 |
| 8,000 | 8,40,000 | 28,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
In a one-variable data table with column input, where should the formula be placed?
- In the first cell of the input column
- One row above and one column to the right of the first input value
- Anywhere on the sheet
- In the last row of the table
How many input variables can a two-variable data table handle?
- 1
- 2
- 3
- Unlimited
What special formula does Excel use inside data table result cells?
- =VLOOKUP()
- =INDEX()
- {=TABLE(row_input, col_input)}
- =IF()
Which menu path leads to What-If Analysis in Excel?
- Home โ What-If Analysis
- Insert โ What-If Analysis
- Data โ What-If Analysis
- Formulas โ What-If Analysis
Can you delete individual cells within a data table result range?
- Yes, like any other cell
- No, you must delete the entire result range
- Only if you press Ctrl+Delete
- Only in Excel 365
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
- Working Excel file with 5 interconnected sheets
- All data tables properly configured and calculating
- Conditional formatting applied to highlight affordable vs expensive EMIs
- 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
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.
๐ฏ 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
| Parameter | What It Means | Example |
|---|---|---|
| Set cell | The cell containing the formula whose result you want to control | EMI formula cell (B5) |
| To value | The desired result you want the formula to produce | 35000 (target EMI) |
| By changing cell | The input cell that Excel should adjust to achieve the result | Loan amount cell (B2) |
How to Access Goal Seek
Navigate to: Data โ What-If Analysis โ Goal Seek
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:
| Cell | Label | Value |
|---|---|---|
| B2 | Loan Amount | 5000000 (initial guess) |
| B3 | Annual Rate | 8.5% |
| B4 | Tenure (Years) | 20 |
| B5 | Monthly 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)
Step 4: Click OK. Excel iterates and finds: Loan Amount = โน40,33,062
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?
| Cell | Subject | Marks |
|---|---|---|
| B2 | English | 88 |
| B3 | Hindi | 82 |
| B4 | Science | 95 |
| B5 | Social Science | 91 |
| B6 | Maths | 80 (initial guess) |
| B7 | Total | =SUM(B2:B6) |
| B8 | Percentage | =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?
| Cell | Label | Value/Formula |
|---|---|---|
| B2 | Selling Price/Cup | 20 |
| B3 | Cost/Cup | 8 |
| B4 | Fixed Costs | 15000 |
| B5 | Cups Sold | 1000 (initial guess) |
| B6 | Revenue | =B2*B5 |
| B7 | Total Cost | =B3*B5+B4 |
| B8 | Profit | =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?
| Cell | Label | Value/Formula |
|---|---|---|
| B2 | Revenue | 1500000 (guess) |
| B3 | Variable Cost (40%) | =B2*0.4 |
| B4 | Fixed Cost | 800000 |
| B5 | Profit | =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.
| Cell | Label | Value/Formula |
|---|---|---|
| B2 | Annual CTC | 600000 |
| B3 | Tax (10%) | =B2*0.1 |
| B4 | Deductions | 60000 |
| B5 | Annual Take-Home | =B2-B3-B4 |
| B6 | Monthly 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
=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
The "Set cell" in Goal Seek must contain:
- A hardcoded number
- A formula
- Text
- Any value
How many variables can Goal Seek change at a time?
- 1
- 2
- 3
- Unlimited
Goal Seek is accessed from which tab?
- Home
- Formulas
- Data
- View
If Goal Seek cannot find a solution, it means:
- Your Excel is broken
- The formula has an error
- No value of the changing cell can produce the desired result, or Goal Seek hit its iteration limit
- You need to restart Excel
After Goal Seek finds a solution, the "By changing cell" value:
- Stays the same as before
- Is permanently changed to the solution value
- Is changed but you can click Cancel to undo
- Is saved in a separate sheet
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
| Item | Value |
|---|---|
| Rent | โน30,000/month |
| Salaries (4 staff) | โน60,000/month |
| Utilities | โน10,000/month |
| Cost per cake/pastry | โน120 |
| Average selling price | โน300 |
Deliverables
- Working Excel file with Goal Seek results documented
- Break-even chart with clearly marked break-even point
- Sensitivity table showing profit across different scenarios
- 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
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.
๐ฏ 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
| Term | Meaning |
|---|---|
| Scenario | A named set of input values (e.g., "Best Case") |
| Changing cells | The cells that will be given different values in each scenario (up to 32 cells) |
| Result cells | The cells containing formulas that show the output (used in Summary report) |
| Scenario Summary | An auto-generated report showing all scenarios side by side |
How to Access
Data โ What-If Analysis โ Scenario Manager
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 values | You need to optimize (max/min) with constraints |
| Multiple variables change together | 1โ2 variables change independently | Multiple variables with complex relationships |
| You need to present to stakeholders | You need a sensitivity grid | You 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:
| Cell | Label | Value |
|---|---|---|
| B2 | Units Sold/Month | 5000 |
| B3 | Price per Unit | 599 |
| B4 | Cost per Unit | 180 |
| B5 | Marketing Spend/Month | 200000 |
| B6 | Fixed Costs/Month | 300000 |
| B8 | Revenue | =B2*B3 |
| B9 | Variable Cost | =B2*B4 |
| B10 | Total Cost | =B9+B5+B6 |
| B11 | Monthly Profit | =B8-B10 |
| B12 | Annual 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:
| Cell | Best Case Value |
|---|---|
| B2 (Units) | 8000 |
| B3 (Price) | 649 |
| B4 (Cost) | 160 |
| B5 (Marketing) | 300000 |
Step 5: Click Add again for Worst Case:
| Cell | Worst Case Value |
|---|---|
| B2 (Units) | 2500 |
| B3 (Price) | 499 |
| B4 (Cost) | 200 |
| B5 (Marketing) | 150000 |
Step 6: Click Add again for Most Likely:
| Cell | Most 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
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 Values | Best Case | Worst Case | Most Likely | |
|---|---|---|---|---|
| Units Sold | 5,000 | 8,000 | 2,500 | 5,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:
| Parameter | Conservative | Moderate | Ambitious |
|---|---|---|---|
| Sponsors | 3 (โน1,50,000) | 5 (โน3,00,000) | 8 (โน6,00,000) |
| Ticket Sales | 500 ร โน200 | 800 ร โน250 | 1200 ร โน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:
| Parameter | Bootstrap | Seed Fund | Series A |
|---|---|---|---|
| Monthly Burn Rate | โน3,00,000 | โน8,00,000 | โน25,00,000 |
| Team Size | 5 | 15 | 40 |
| 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) | 10 | 66.7 | 100 |
Example 3: Farmer's Crop Planning (Rabi Season)
A farmer in Madhya Pradesh models income from wheat vs chickpea:
| Parameter | All Wheat | All Chickpea | Mixed (60:40) |
|---|---|---|---|
| Wheat Acres | 10 | 0 | 6 |
| Chickpea Acres | 0 | 10 | 4 |
| Wheat Yield (q/acre) | 20 | - | 20 |
| Chickpea Yield (q/acre) | - | 8 | 8 |
| Wheat MSP (โน/q) | 2,275 | - | 2,275 |
| Chickpea MSP (โน/q) | - | 5,440 | 5,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:
| Parameter | Lean Team | Standard | Full Scale |
|---|---|---|---|
| Developers | 3 | 6 | 10 |
| Testers | 1 | 2 | 4 |
| Lead | 1 | 1 | 2 |
| Avg Cost/Person/Month | โน80,000 | โน85,000 | โน90,000 |
| Monthly Team Cost | โน4,00,000 | โน7,65,000 | โน14,40,000 |
| Duration (months) | 12 | 8 | 5 |
| Total Project Cost | โน48,00,000 | โน61,20,000 | โน72,00,000 |
Example 5: Personal Finance โ Monthly Budget
| Parameter | Frugal | Moderate | Comfortable |
|---|---|---|---|
| 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:
| Parameter | Slow Day | Normal | Weekend Rush |
|---|---|---|---|
| Customers | 60 | 120 | 200 |
| Avg Bill | โน180 | โน220 | โน280 |
| Daily Revenue | โน10,800 | โน26,400 | โน56,000 |
Example 7: Solar Panel ROI
| Parameter | Pessimistic | Realistic | Optimistic |
|---|---|---|---|
| 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 Period | 12.5 years | 5.6 years | 2.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
How many changing cells can a single scenario have?
- 1
- 10
- 32
- 256
The Scenario Summary report is created on:
- The same sheet
- A new sheet automatically
- A separate workbook
- The clipboard
What types of reports can Scenario Manager generate?
- Scenario Summary only
- Scenario PivotTable only
- Both Scenario Summary and Scenario PivotTable
- Charts only
Can you merge scenarios from different workbooks?
- No, never
- Yes, using the Merge button in Scenario Manager
- Only in Excel 365
- Only if both workbooks are open
When you click "Show" for a scenario, what happens?
- A report is generated
- The changing cells are updated with that scenario's values
- A chart is created
- Nothing visible happens
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)
| Parameter | Best Case | Most Likely | Worst Case |
|---|---|---|---|
| Daily Footfall | 200 | 120 | 60 |
| 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
- Worksheet with all formulas and named cells
- Three scenarios created in Scenario Manager
- Scenario Summary report on a separate sheet
- Scenario PivotTable report
- 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
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.
๐ฏ 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(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
| Parameter | Value |
|---|---|
| Rate (monthly) | 8.5% / 12 = 0.7083% |
| Nper | 20 ร 12 = 240 |
| PV | -4000000 |
=PMT(8.5%/12, 240, -4000000)
Example B: Car loan of โน7,00,000 at 9% for 5 years
=PMT(9%/12, 60, -700000)
Example C: Personal loan of โน3,00,000 at 14% for 3 years
=PMT(14%/12, 36, -300000)
=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)
Example B: Lump sum โน5,00,000 invested for 10 years at 10%
=FV(10%/12, 120, 0, -500000)
Example C: PPF โ โน1,50,000/year for 15 years at 7.1% (annual)
=FV(7.1%, 15, -150000)
=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)
Example B: What's the present value of receiving โน25,000/month pension for 20 years at 7%?
=PV(7%/12, 240, -25000)
Example C: Annuity value โ โน50,000/quarter for 10 years at 8%
=PV(8%/4, 40, -50000)
=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(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 \ Tenure | 15 yr | 20 yr | 25 yr | 30 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 \ Tenure | 15 yr | 20 yr | 25 yr | 30 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 \ Tenure | 1 Year | 3 Years | 5 Years | 10 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 \ Return | 8% | 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 \ Return | 10% | 12% | 14% |
|---|---|---|---|
| โน10,000 | 18.5 yr | 16.5 yr | 14.9 yr |
| โน15,000 | 15.2 yr | 13.7 yr | 12.5 yr |
| โน20,000 | 13.0 yr | 11.8 yr | 10.9 yr |
| โน25,000 | 11.5 yr | 10.5 yr | 9.7 yr |
Example 6: Personal Loan โ Rate vs EMI Table
Loan: โน5,00,000, Tenure: 4 years. EMI at different interest rates:
| Interest Rate | Monthly EMI (โน) | Total Payment (โน) | Total Interest (โน) |
|---|---|---|---|
| 10% | 12,680 | 6,08,640 | 1,08,640 |
| 12% | 13,174 | 6,32,352 | 1,32,352 |
| 14% | 13,677 | 6,56,496 | 1,56,496 |
| 16% | 14,189 | 6,81,072 | 1,81,072 |
| 18% | 14,710 | 7,06,080 | 2,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 Slab | 0% (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
The PMT function returns a _____ value for loan payments.
- Positive
- Negative
- Zero
- Depends on the sign of PV
To find how many months it takes to pay off a loan, you use:
- PMT
- FV
- NPER
- RATE
In the FV function for a SIP calculation, the PMT argument should be:
- Positive (money invested)
- Negative (money going out of your pocket)
- Zero
- It doesn't matter
If you want to find today's value of โน50 lakhs you'll receive 15 years from now, you use:
- FV
- PMT
- PV
- RATE
A data table with financial functions will recalculate automatically when:
- Only when you press F9
- Every time any cell changes (if calculation is Automatic)
- Only when you reopen the file
- Never โ data tables are static
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
- Working Excel file with all 5 sheets
- Conditional formatting highlighting best returns (green) and worst (red)
- Charts showing growth curves for different scenarios
- 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
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.
๐ฏ 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
| Feature | Goal Seek | Solver |
|---|---|---|
| Variables changed | 1 | Multiple (up to 200) |
| Objective | Target specific value only | Maximize, minimize, or target value |
| Constraints | None | Multiple constraints supported |
| Built-in | Yes | Requires activation (add-in) |
| Algorithm | Simple iteration | Simplex LP, GRG, Evolutionary |
Step 1: Enabling Solver
- Go to File โ Options โ Add-ins
- At the bottom, select "Excel Add-ins" from the Manage dropdown
- Click Go...
- Check Solver Add-in
- Click OK
Solver will now appear in the Data tab, in the Analyze group.
Solver Dialog Box Components
| Component | What It Does | Example |
|---|---|---|
| Set Objective | The cell containing the formula to optimize | Total Profit cell |
| To: Max/Min/Value | Whether to maximize, minimize, or set to specific value | Maximize profit |
| By Changing Variable Cells | Cells that Solver can adjust | Production quantities |
| Subject to Constraints | Rules that must be satisfied | Materials used โค available |
| Solving Method | Algorithm to use | Simplex LP for linear problems |
The Three Solving Methods
| Method | When to Use | Characteristics |
|---|---|---|
| Simplex LP | Linear problems (proportional relationships) | Fastest, guaranteed optimal, works for most business problems |
| GRG Nonlinear | Smooth nonlinear problems (curves, exponentials) | Good but may find local optimum, not global |
| Evolutionary | Complex, 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.
| Resource | Table (per unit) | Chair (per unit) | Available |
|---|---|---|---|
| Wood (sq ft) | 30 | 10 | 3,000 |
| Labor (hours) | 5 | 4 | 600 |
| Polish (litres) | 2 | 1 | 250 |
Profit per table: โน3,000 | Profit per chair: โน1,800
Goal: Maximize total profit
Step 1: Set up the worksheet:
| Cell | Label | Value/Formula |
|---|---|---|
| B2 | Tables Produced | 0 (Solver will fill this) |
| B3 | Chairs Produced | 0 (Solver will fill this) |
| B5 | Wood Used | =30*B2 + 10*B3 |
| B6 | Labor Used | =5*B2 + 4*B3 |
| B7 | Polish Used | =2*B2 + 1*B3 |
| C5 | Wood Available | 3000 |
| C6 | Labor Available | 600 |
| C7 | Polish Available | 250 |
| B9 | Total 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
Result:
| Variable | Optimal Value |
|---|---|
| Tables | 50 |
| Chairs | 150 |
| Maximum Profit | โน4,20,000 |
Resource Utilization:
| Resource | Used | Available | Slack |
|---|---|---|---|
| Wood | 3,000 | 3,000 | 0 (fully used) |
| Labor | 550 + 200 = 850? Wait โ let's recalculate: 5ร50 + 4ร150 = 250+600 = 850 | 600 | Check needed |
| Polish | 2ร50 + 1ร150 = 250 | 250 | 0 (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:
| Report | What It Shows | Use Case |
|---|---|---|
| Answer Report | Original and final values, constraint status (binding/not binding) | Presenting results to management |
| Sensitivity Report | Shadow prices, allowable increases/decreases for constraints and objective coefficients | Understanding which resources are bottlenecks |
| Limits Report | Upper and lower bounds for each variable | Understanding 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 Item | Cost (โน/kg) | Protein (g/kg) | Carbs (g/kg) | Fat (g/kg) |
|---|---|---|---|---|
| Rice | 40 | 7 | 80 | 1 |
| Dal | 90 | 25 | 60 | 1 |
| Chicken | 250 | 30 | 0 | 10 |
| Vegetables | 50 | 3 | 15 | 0.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:
| Asset | Expected Return | Risk (Std Dev) |
|---|---|---|
| Large Cap MF | 12% | 15% |
| Mid Cap MF | 16% | 22% |
| Government Bonds | 7% | 3% |
| Gold ETF | 9% | 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 \ To | Store A (โน/unit) | Store B (โน/unit) | Store C (โน/unit) | Supply |
|---|---|---|---|---|
| Warehouse 1 | โน20 | โน35 | โน25 | 500 units |
| Warehouse 2 | โน30 | โน15 | โน20 | 400 units |
| Demand | 300 | 350 | 250 |
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:
| Shift | Time | Min Staff Needed |
|---|---|---|
| Morning | 6 AM โ 2 PM | 15 |
| Afternoon | 2 PM โ 10 PM | 20 |
| Night | 10 PM โ 6 AM | 10 |
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:
| Platform | Cost per 1000 Impressions | Conversion Rate | Avg Order Value | Max Budget |
|---|---|---|---|---|
| โน150 | 2.5% | โน800 | โน2,50,000 | |
| โน100 | 1.8% | โน600 | โน2,00,000 | |
| Google Ads | โน200 | 3.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:
| Crop | Land (acre) | Capital (โน/acre) | Labor (hr/acre) | Profit (โน/acre) |
|---|---|---|---|---|
| Wheat | 1 | 5,000 | 30 | 15,000 |
| Rice | 1 | 8,000 | 50 | 22,000 |
| Sugarcane | 1 | 12,000 | 60 | 30,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
Solver is found under which tab after activation?
- Home
- Formulas
- Data
- Review
Which solving method should you use for a problem where all relationships are proportional (linear)?
- GRG Nonlinear
- Evolutionary
- Simplex LP
- All methods give the same result
The maximum number of variable cells Solver can handle is:
- 32
- 100
- 200
- Unlimited
A "binding" constraint in the Answer Report means:
- The constraint is violated
- The constraint is exactly met (no slack)
- The constraint is redundant
- The constraint should be removed
To ensure Solver doesn't produce fractional units (like 3.7 chairs), you add a constraint of type:
- โค (less than or equal)
- = (equal to)
- int (integer)
- bin (binary)
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
| Resource | Gears (per unit) | Chains (per unit) | Brakes (per unit) | Monthly Limit |
|---|---|---|---|---|
| Steel (kg) | 3 | 1.5 | 2 | 5,000 kg |
| Machine Time (hr) | 2 | 1 | 1.5 | 3,000 hr |
| Skilled Labor (hr) | 1.5 | 0.5 | 1 | 2,000 hr |
| Testing Time (hr) | 0.5 | 0.3 | 0.4 | 800 hr |
| Product | Selling Price (โน) | Variable Cost (โน) | Profit/Unit (โน) |
|---|---|---|---|
| Gears | 450 | 280 | 170 |
| Chains | 250 | 150 | 100 |
| Brakes | 380 | 220 | 160 |
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
- Working Solver model with optimal solution
- Answer and Sensitivity reports
- Sensitivity analysis (what-if the constraints change)
- Written recommendation identifying bottleneck resources
- 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
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.
| Chapter | Tool | Key Capability |
|---|---|---|
| 27 | What-If Analysis (Data Tables) | Test 1โ2 variable sensitivity simultaneously |
| 28 | Goal Seek | Find the input needed for a specific output |
| 29 | Scenario Manager | Save and compare named scenarios |
| 30 | Advanced Data Tables + Financial Functions | PMT, FV, PV, RATE, NPER with sensitivity tables |
| 31 | Solver | Multi-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.