Skip to content

What-if analysis

What-if analysis tries different numbers in your formulas and shows what comes out. Ganit has three tools for it, all in Data ▸ Forecast ▸ What-If Analysis:

Tool The question it answers
Goal Seek What value gives the answer I want? For example, how big a loan can I take for an EMI of ₹25,000?
Scenario Manager How do a few sets of numbers compare? For example, three loan offers side by side.
Data Table What does a formula give for a list of values? For example, the EMI at rates from 8% to 10%.

The examples in this chapter use the EMI Schedule template: File ▸ New from Template… ▸ EMI Schedule. Its yellow cells are the loan:

Cell Holds Value
C3 Loan amount ₹ 25,00,000.00
C4 Interest rate (yearly) 8.50%
C5 Tenure (months) 240
E3 Monthly EMI =PMT(C4/12,C5,-C3), which gives ₹ 21,695.58
E4 Total interest =E3*C5-C3, which gives ₹ 27,06,939.40

See Templates for the rest of the template.

Goal Seek

Goal Seek changes one cell until a formula comes to the value you want. It works backwards from the answer.

What loan for a ₹25,000 EMI?

  1. Click E3, the Monthly EMI.
  2. Go to Data ▸ Forecast ▸ What-If Analysis ▸ Goal Seek….
  3. Set cell shows the active cell, $E$3. This cell must hold a formula.
  4. In To value, type 25000. You can also type 25,000 or ₹ 25,000.
  5. In By changing cell, type C3, the loan amount. This cell must hold a number, not a formula, and the formula in the set cell must use it.
  6. Click OK.

The Goal Seek Status box says "Goal Seeking with Cell E3 found a solution.", with the Target value and the Current value: ₹ 25,000.00 each.

The loan amount in C3 is now ₹ 28,80,771.00. The whole schedule follows: total interest ₹ 31,19,229.00 and total payment ₹ 60,00,000.00.

  • Click OK to keep the new value.
  • Click Cancel to put the old value back.

The EMI Schedule template after Goal Seek: the loan amount is ₹ 28,80,771.00 and the Monthly EMI ₹ 25,000.00. The Goal Seek Status box says Goal Seeking with Cell E3 found a solution, with Target value and Current value both ₹ 25,000.00.

Goal Seek keeps the exact answer, here 2880770.99559…, and the cell's format shows it rounded. If you want a round figure, type it in C3 afterwards, such as 2880000.

Other questions for the same loan

Start from the template's own values each time (₹25 lakh at 8.5% for 240 months):

To find Set cell To value By changing cell Answer
The tenure for a ₹25,000 EMI E3 25000 C5 174.57 months, shown as 175
The rate at which the EMI is ₹25,000 E3 25000 C4 10.52%

Goal Seek changes only one cell. To change several at once, use scenarios.

When no value gives the target, the status box says Goal Seek "may not have found a solution", and shows the nearest value it reached. Click Cancel to put the cell back.

Note

The By changing cell must be on the same sheet as the set cell.

Scenario Manager

A scenario is a named set of values for some cells, such as one bank's loan offer. Save a few scenarios, show any of them in the sheet, and compare them all in a summary.

Adding scenarios

  1. Go to Data ▸ Forecast ▸ What-If Analysis ▸ Scenario Manager…. The list says "No Scenarios defined. Choose Add to add scenarios."
  2. Click Add….
  3. In Add Scenario, type a Scenario name, such as 20 years at 8.5%.
  4. In Changing cells, type the cells the scenario sets: C3:C5 for the loan amount, rate and tenure. Separate cells with commas, such as C3,C5. A scenario changes up to 32 cells. If you select the cells before clicking Add…, they are filled in for you.
  5. Add a Comment if you like, and click OK.
  6. In Scenario Values, type a value for each changing cell, and click OK. The boxes start with the cells' values now.

Add the other scenarios the same way. For example:

Scenario name C3 Loan amount C4 Rate C5 Tenure
20 years at 8.5% 2500000 8.5% 240
15 years at 8.5% 2500000 8.5% 180
30 lakh, 20 years at 9% 3000000 9% 240

Changing cells must hold values, not formulas. Scenarios belong to the sheet they were made on, and each name can be used once on a sheet.

Showing a scenario

In Scenario Manager, click a scenario and click Show, or double-click it. Its values go into the changing cells and every formula follows. With 15 years at 8.5% shown, the EMI in E3 is ₹ 24,618.49.

The dialog stays open, so you can show one scenario after another. Ctrl+Z puts the earlier values back.

Under the list, Changing cells and Comment show what the scenario picked sets.

Button What it does
Add… A new scenario
Delete Removes the scenario picked
Edit… Changes its name, cells or comment, then its values
Summary… A report of all the scenarios (below)
Show Puts the scenario's values in the sheet
Close Closes the dialog

A scenario summary

  1. In Scenario Manager, click Summary….
  2. In Result cells, type the cells to compare, usually formulas. Type E3,E4 for the EMI and the total interest.
  3. Click OK.

Ganit adds a sheet named Scenario Summary with the changing cells and the result cells under each scenario:

Current Values: 20 years at 8.5% 15 years at 8.5% 30 lakh, 20 years at 9%
Changing Cells:
$C$3 ₹ 25,00,000.00 ₹ 25,00,000.00 ₹ 25,00,000.00 ₹ 30,00,000.00
$C$4 8.50% 8.50% 8.50% 9.00%
$C$5 240 240 180 240
Result Cells:
$E$3 ₹ 21,695.58 ₹ 21,695.58 ₹ 24,618.49 ₹ 26,991.78
$E$4 ₹ 27,06,939.40 ₹ 27,06,939.40 ₹ 19,31,328.01 ₹ 34,78,026.88

The Current Values column shows the cells as they were when you made the report. The summary holds values, not formulas, so make a new one after you change the scenarios.

Tip

Give the cells names (Formulas ▸ Define Name), such as LoanAmount and EMI. The summary then shows the names in place of $C$3 and $E$3. See Formulas.

Scenarios are saved in the .xlsx file.

Data tables

A data table works out a formula for a list of values and shows all the answers at once. Make one with Data ▸ Forecast ▸ What-If Analysis ▸ Data Table….

A data table with one input: EMI by interest rate

Beside the EMI Schedule template:

  1. In I4:I8, type the rates to try: 8%, 8.5%, 9%, 9.5%, 10%.
  2. In J3, one row above the first rate and one column to the right, type =E3, the formula to work out. Type a heading such as Rate in I3 if you like.
  3. Select I3:J8: the rates, the formula and the empty cells for the answers.
  4. Go to Data ▸ Forecast ▸ What-If Analysis ▸ Data Table….
  5. Leave Row input cell empty. In Column input cell, type C4, the cell each rate goes into.
  6. Click OK.

Ganit fills J4:J8 with the EMI at each rate. Format them with Home ▸ Number ▸ ₹:

Rate EMI on ₹25 lakh, 240 months
8% ₹ 20,911.00
8.5% ₹ 21,695.58
9% ₹ 22,493.15
9.5% ₹ 23,303.28
10% ₹ 24,125.54

To lay the values across a row instead, type them in the top row, put the formula in the first column one row below, and type the cell they go into in Row input cell.

A data table with two inputs: EMI by rate and tenure

  1. In I11, the corner, type =E3.
  2. Type the tenures across the row to its right, J11:M11: 120, 180, 240, 300.
  3. Type the rates down the column under it, I12:I15: 8%, 8.5%, 9%, 9.5%.
  4. Select I11:M15 and open Data Table….
  5. Row input cell: C5, where the tenures go. Column input cell: C4, where the rates go.
  6. Click OK.

The EMI on ₹25 lakh, after formatting with ₹:

Rate \ Months 120 180 240 300
8% ₹ 30,331.90 ₹ 23,891.30 ₹ 20,911.00 ₹ 19,295.41
8.5% ₹ 30,996.42 ₹ 24,618.49 ₹ 21,695.58 ₹ 20,130.68
9% ₹ 31,668.94 ₹ 25,356.66 ₹ 22,493.15 ₹ 20,979.91
9.5% ₹ 32,349.39 ₹ 26,105.62 ₹ 23,303.28 ₹ 21,842.42

How data tables behave

  • The answers update when anything they depend on changes. Type 3000000 in C3 and both tables show the EMIs on ₹30 lakh.
  • A result cell shows {=TABLE(,C4)} in the formula bar: the row input cell, then the column input cell.
  • You can't change or delete one result on its own. Ganit says "Can't change part of a data table." To remove the table, select all its result cells (or the whole table) and press Delete.
  • The input cells can't be inside the data table, and two data tables can't overlap.
  • Data tables are saved in the .xlsx file.

Forecasts

The Forecast group holds only What-If Analysis. Ganit has no Forecast Sheet, no forecasting functions such as FORECAST or TREND, and no chart trendlines.