How to Use What If Analysis in Excel (with All 3 Features)

Feature 1 – What If Analysis Using the Scenario Manager Option

To calculate EMI for a loan, we have 3 parameters, Loan Amount, Interest Rate, and Number of Monthly Payments. You can compare the result of EMI based on the change of these parameters with the Scenario manager tool.

Step 1 – Make a Dataset of the First Scenario

  • Create input cells for the Loan Amount, Interest Rate, and Number of Monthly Payments and type.
  • Use the PMT function to calculate the EMI per month in C8:
=PMT(C5/12,C6,C4,0,0)

Formula Breakdown:

Syntax =PMT(rate, nper, PV, [fv], [type])

  • Rate = C5/12: D5 represents the annual interest rate of 8%, we divide it by 12 to adjust it for one month.
  • NPER = C6 = 60: for 5 years 5*12=60
  • PV= C4 = 2000000: the present value is the total loan amount

How to Use What If Analysis in Excel - EMI Calculation Example

Read More: How to Do Sensitivity Analysis in Excel


Step 2 – Create the First Scenario

  • Select the cells that affect the output EMI. We selected the cell of range C4:C7.
  • Go to Data.
  • Click on the WhatIf Analysis option and select Scenario Manager.

Create New Scenario for EMI Calculations in What if analysis

  • The scenario manager pop-up window will appear.
  • Click on the Add button.

Scenario Manager Window

  • Another new window will appear named “Add Scenario”.
  • Give the name of the Scenario.
  • The Changing cells box is already filled with the selected cells range.
  • Check that the prevent changes box is marked.
  • Press OK.

Add New Scenario using What If Analysis in Excel

  • Another pop-up window will appear and will ask you to give values of the parameter for the new Scenario.
  • Insert the values in the respective cells and press OK to save.

Scenario Values Window

Read More: How to Get Sensitivity Report from Solver in Excel


Step 3 – Create More Scenarios

  • If you want to add another scenario, click Add.
  • Repeat Step 2 to get all the scenarios.

Create More Scenarios from scenario manager


Step 4 – Switch to Another Scenario

  • In the Scenario Manager window, select the scenario that you want to show and click on the Show button below.
  • Alternatively, you can simply doubleclick on the scenario name to show it in the worksheet.

Switch to Another Scenario from Scenario managerRead More: How to Perform Sensitivity Analysis for Capital Budgeting in Excel


Step 5 – Create the Scenario Summary

  • Click on the Summary button in the Scenario Manager

Create Scenario Summary from scenario manager

  • A pop-up window will appear which will ask you to select the result cell. The result cell will be C8 which is giving the monthly EMI.

Create Scenario Summary for EMI Calculation

  • A new worksheet will be created.

Scenario Summary in Excel

Read More: Sensitivity Analysis for NPV in Excel


Feature 2 – What If Analysis Using the Goal Seek Feature


Step 1 – Create the Dataset

  • We have an example dataset where sales of 5 products, profit percentage, and revenue coming from each product are shown. We have listed sales for the first four products but need to determine the required sale amount for product 5 to achieve the target revenue of $8,000.

Performing What If Analysis Using Goal Seek Feature - Dataset


Step 2 – Go to the Goal Seek Feature

  • Go to Data.
  • Click on What If Analysis.
  • Select the Goal Seek feature.

Go to Goal Seek Feature in What if Analysis Option

  • A new window will appear named “Goal Seek”.
  • Select cell E10 as the Set Cell box which is the output.
  • Insert the target amount 8000 in the To Value.
  • Select cell C9 as the Changing cell.
  • Press OK.

Using Goal Seek Option for Profit Goal Calculation

  • You’ll get the result.

Goal Seek Feature - Output

Read More: How to Delete What If Analysis in Excel


Feature 3 – What If Analysis with the Data Table Option

We’ll create a dataset to calculate the EMI per month as described in the Scenario Manager example.

EMI Calculation using PMT Function


Case 3.1 – One-Variable Table in a Column

  • Create different interest rates in a column and assign cells to get the corresponding EMI value.

One-Variable Data Table for EMI Calculation

  • As our data table is Column-oriented, we have entered the formula in cell F6 to calculate EMI per month in the first row of the EMI column of the data table.

  • Select the data table including the cell that contains Present EMI.
  • Go to the Data tab in the top Ribbon.
  • Click on the What If Analysis option and select Data Table.

Apply Data Table Feature

  • A new window named Data Table will appear.
  • Enter the input cell reference C5 in the Column input cell.
  • Press OK.

Select Column Input Cell in One Variable Data Table

  • You will get the column filled with the EMI value respective to the interest rate

Output of One Variable Data Table


Case 3.2 – One-Variable in Row Input

  • Insert the present EMI value with the formula in cell B13 which is the First column of the Term row.
  • Select the data table including the cell that contains Present EMI.
  • Go to the Data tab in the top Ribbon.
  • Click on the What If Analysis option and select Data Table

Select Data Table in the What if analysis option

  • A new window named Data Table will appear.
  • Enter the input cell reference C6 in the Row input cell.
  • Press OK.

Select Row Input Cell in One Variable Data Table

  • You will get the column filled with the EMI value respective to the number of terms.

One-Variable in the Row Input Cell for EMI Calculation

Read More: How to Build a Sensitivity Analysis Table in Excel


Case 3.3 – Two-Variable Data Table

  • Make a data table where you have interest rates along the first column and No. of payment terms along the first row.

Two-Variable Data Table for EMI Calculation

  • Insert the present EMI value with the formula in cell F5 which is the cell first row and first column cell of the data table.

  • Select the data table including the cell that contains Present EMI.
  • Go to the Data tab in the top Ribbon.
  • Click on the What If Analysis option and select Data Table.

Select Data Table in What if Analysis Option

  • Anew window named Data Table will appear.
  • Enter the input cell reference C6 in the Row input cell.
  • Enter the input cell reference C5 in the Column input cell.
  • Press OK.

Select Row and Column input cell for EMI Calculation

  • You will get the column filled with the EMI value respective to the NPER terms and Interest Rates.

Two-Variable Data Table for EMI Calculation


Things to Remember

  • Use the Scenario Manager feature when you have a certain number of datasets of an irregular pattern.
  • Use the Data Table feature when the input variables change in a regular pattern.
  • Use the Goal Seek feature to do a back calculation to find an input value using the output formula.

Download the Practice Workbook


Related Article


<< Go Back to What-If Analysis in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Osman Goni Ridwan
Osman Goni Ridwan

OSMAN GONI RIDWAN is a marine engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks. He is proficient in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, Excel, and VBA and goes beyond the basics. Armed with a B.Sc in Naval Architecture & Marine Engineering from BUET, OSMAN has transitioned into the role of a content developer. Specializing in creating technical content exclusively centered around Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo