fbpx

What-if Analysis using Excel Dashboard, Indirect Function & more

In this topic, I will try to cover the features of what-if Analysis. It is a tool that allows you to try to different formulas. If you apply what-if analysis you will notice changing the values in cells and how those changes will affect the outcome of the formulas in your spreadsheet.

Before we start with What-if Analysis using Excel Dashboard, Indirect Function & more, we will learn the types of what if analysis

There is three type of what-if Analysis.

  • Goal Seek
  • Scenario Manager
  • Data Table

Let’s try to cover all these one by one:

Goal Seek

First, we will discuss the PMT formula which is often used to find the easy monthly installments for any loan you have taken or you wish to take in the future. You want to take a home loan and how will you calculate this thing in Excel and the next one we will cover the Goal Seek, the back-calculation of the certain desired number in Excel.

For example, you want to take Rs. 50000 and the interest rate is 13.25% and within 5 years you want to repay the loan. What will your monthly EMI?

Calculate-EMI-What-if-analysis

In that case, we will use PMT formula to calculate EMI. PMT formula requires the following input:

PMT-formula-Calculate-EMI-What-if-analysis

Rate: the interest of the loan. It is required.

Nper: the total number of payment for the loan. It is required

Pv: Principal amount. It is also required.

Fv:  optional. The future value. If it is omitted then it is assumed to be zero.

Type: Option. You can put only 0 and 1 here which indicates when payment is due.

Now go back to our example. I want to take Rs. 500000 and the interest rate is 13.25% and within 5 years you want to repay the loan. And I want to give my EMI at the end of the month.

Repay-EMI-What-if-Analysis

As soon as you will press enter you will get the EMI value. I have divided my interest with 12 for the monthly rate of interest and nper is multiplied with 12 for 60 months.
Get-EMI-Value-What-if-Analysis

Now you can see your monthly EMI is Rs. 11,441. Now if you think it can pay Rs. 20000/month for next 5 years then what loan amount you can get from your bank. Then you need to apply Goal seek formula. To apply goal seek you need to go to Data – What-if Analysis – Goal Seek.

Data-What-if-analysis-Goal-Seek

As soon as you click on Goal Seek you will get a tool box. You need to put the value there as shown in the below picture⇓.

Goal-Seek-Tool-Box-for-What-if-Analysis

Look at the Goal Seek tool box. First, it is asking for Set Cell. Which cell you to set and the next option is to value. Remember here you cannot choose a cell. You need to write it manually what value you want to set. I have given -20000 as it will be in a loop. And finally which cell value you want to change. I want to check how many loans I can get so it is my loan amount. Then Press ok.

Loan-Amount-changed-using-Goal-Seek

This time, your loan amount is changed and you can get loan Rs. 874,077 from your bank.

Data Table in What-If analysis:

Now we will discuss the features of the data table. This option is not used too much. It is important if you are in the field of finance, Analysis, cost determination and profitability analysis. (Refer this link for use of Excel in Financial Modelling) We will see how this can be used to our benefits.

Let’s say you are working in a product company and assuming your product price is Rs. 15.00 and products sold monthly are 2000. So it is clear that your monthly revenue is Rs. 30,000. Let’s assume I am giving 10% discount so my net profit is Rs. 27000/-.

Data-Table-in-What-if-Analysis

Now if you have various level of prices and various level of quantities then what will be the impact of revenue?

Now I assume you have the various prices like 12, 13,14,15,16,17,18,19 and 20. You also have the various quantity like 1500, 2000, 2500, 3000 and 3500. Now if you don’t the right technique then every time you change the number and check the numbers. If you know the usage of data table it won’t have to find it manually. Here is the trick.

You need to first create a table like below:

Create-table-for-various-price-and-quantity-1024x488

You need to put two variables vertically and horizontally and in the process please ensure that one cell is blank (the first cell of the table). This is the first step.

Now you have a table in the sheet. Table 1 and table 2.Now-you-have-2-Tables-in-that-sheetYour table 1 knows how to calculate but table 2 does know which we have created right now. So you need to establish a connection between tables no 1 and 2 such that this logic of how to calculate revenue gets known to the table no 2. You need to create the connection in the empty cell of your table no 2 which is the brain of the table. That was step no 2.

Create-connection-with-table-2-empty-cell-1

After pressing the enter you will create the connection between 2 tables. The connection will be established only in the one dedicated cell. Then choose the entire table no 2 as shown in the below picture (Picture 1.3). Please do not choose less or more rows and columns. Just chose the entire table only.

Choose-Table-2-what-if-analysis

As soon as you select your table you need to go to data- what-if Analysis – Data Table. As you press on data table a small toolbox will appear. It was looking for row input cell and column input cell.  You can write only one cell reference like A1, B1 etc.

Data-What-if-analysis-Data-table-tool-box
Now, what will be the value in Row input cell and what will be the value in column input cell? Remember the two terms VC and HR. VC means vertical column and HR means horizontal row. So whatever data is placed vertically will go to the column input cell. And whatever data is placed horizontally will go to row input cell. So in our example price must be paired up with column input cell and quantity must be paired up with row input cell from your main model.

Put-Value-in-Data-Table-Tool-Box-What-if-analysis
After your choosing row and column input cell please press ok to get the desired result in your data table. You will get the impact on your revenue. And your result will look like below.

Output-of-Data-Table-2-What-if-analysis

Now your data table is ready. You can notice that if your product price is 19 and if you sell 2000 quantity then revenue will be 38,000. More quantity sold means more revenue comes into your pocket. Just remember the VC (Vertical column) and HR (Horizontal row) rule when you are applying data table.

You will also like:

  1. How to create Pivot table slicer
  2. How to use Indirect Function
  3. What is wrap text in Excel?
  4. Transpose Function in Excel

Excel Dashboard using What-If analysis:

Now you will learn how to create a perfect dashboard for your analysis. You need to know how to create a named range, data table, indirect function and conditional formatting and how to create scroll bar using your developer tab and a drop down list.

First look what dashboard we are going to prepare:
Excel-Dashboards-using-what-if-analysis-1024x398

You can use the vertical and horizontal scroll bar to get the data in a table. You can also choose what you want to from your data table. The changes in drop drown should reflect in your data table. To prepare this kind of dashboard please follow the below steps.

Step A: I hope that your model table is ready so that you can prepare your data table:

Model-Table-for-Dashboards-in-what-if-analysis

Now prepare your data table. In my example, I am placing price vertically and quantity horizontally.

Your table should look like below:

Placing-price-vertically-and-quantity-horizontally

The brain of the table is marked as yellow colour so that it can easily be noticeable. You need to first set up the connection between your two tables because this is the one which leads us the way. In my case, I have connected it with profit value of my model table which is 5000. In my case, I have created the first price value hard coded which is 10 in the F5 cell. And in the next cell (F6) I have used a very simple formula = F5+1 (F5=10). Then I have simply dragged it. Similar case for the quantity also. The first one (cell G4) is manually written and then in the H4 cell simply add 500 with earlier using the formula (=G4+500).

Then please choose your entire table (here data table) and go to data – what-if analysis and then click on the data table and then apply VC and HR (discussed above) to get the output in your data table. Your result will look like below.

Choose-entire-table-What-if-analysis-data-table

So far so good. What we have achieved is that variety of answers that are showing profit level based on our price and different quantities. Now if you change the value price value 10 to 11 all the value in the price field will be changed and the value in the data table also be changed. But we trying to do it in a more advanced way.

Step B:Take the scroll bar from your developer tab:

The next step is that we are going to create a scroll bar from our developer tab. Remember we will choose the scroll bar from Control section not form ActiveX Controls.

Scroll-bar-Developer-tab-for-Dashboards

Click on the scroll bar icon and create the scroll bar in excel. To configure the configure the scrollbar you need to right click and then click on format control. Then you will get another box where you need to configure it.

Configure-scroll-bar-button-what-is-analysis

Set the value as per your requirement. I have set the values like below

Minimum value: 500

Maximum value: 10000 (Limit is 30000)

Incremental changes: 200

Cell Link: Linked with an N4 cell. Leader of the quantity

After the setting please press ok. Your scrollbar configuration is done. Then click outside of the scrollbar. Now you can see if you click on the edge of the scroll the quantity will be changed and as the quantity is changing the value in the data table will also be changed.

In a similar way, you can create the vertical scroll bar. Do the configuration in the same as you have done it for the quantity.

Step C:Now come to the next trick:

Till now records of my data table shows my profit. But now I want to see the revenue also. Which means I need to connect the brain of the table with the revenue of the model table. Now the import thing is that how do I connect revenue and profit at the same time in a single cell?

For that, we need to create the validation which should be linked with the brain of a table. In my E2 cell, I am creating a data validation which will be like below.

Create-Validation-for-brain-of-the-table
Then you need to press ok to work it properly. Now your data validation is created and you need to link the brain of your data table with E2 cell where you have created your validation list.

Now if you simply connect the brain of the table (yellow cell ) with your E2 cell it will not work. You need a re-direction. That means you need to apply indirect function.

Step D:Name Range:

Now you need to create name range so that you can re-direct it. For revenue give name revenue and for-profit, sale gives name Profit from the name box.

Create-Name-Range-you-can-redirect

After setting your name ranges go back to your brain of the data table.

Step E: – Indirect Function:

Now you need to use an indirect function to re-direct the value. In the brain of the data, table writes the formula =indirect (then choose the value from your drop down).

Use-Indirect-function-What-if-analysis-1024x450

As soon as you press enter what will happen is your yellow cell will go to profit and profit will profit will redirect to the value of your model table. Now you can choose revenue from the drop down and the data table will show you revenue value.

Step F: – Conditional formatting:

The next thing I want to add in my data table is conditional formatting. Whenever the numbers are negative it will show as red font colour and when the numbers are positive it will show as green font colour.

To apply that I will first choose the record set of my data table (not the entire table). Then Go to home tab and then check on conditional formatting and then click on new rules and from there choose the second one (format only cell that contains ) and set the below setting.

Conditional-formatting-what-if-analysis

After setting this please click on format and set the font colour as red and font style as bold.

click-format-set-font-colour-font-style

Then press ok and again press ok. In the same way, just apply for the positive numbers and this time, you need to set cell value greater than or equal to as 0 and then format the font colour as green and font style as bold. Your data table will look like below table.

Output-of-Dashboards-what-if-analysis-1024x445

You may test it how it will look like by clicking on the edge of your scroll bar. You may also choose the value from your validation list which will directly reflect in your data table.

I am quite sure if you do this stuff in your office people will love it and they must want to know how you did that.

Related Items:

Excel Ninja Course
Limited Period Offer.

30-Day Money-Back Guarantee

Includes:


11+ hours on-demand video
Full Lifetime Access
Success on mobile and TV
Certificate of Completion
Downloadable Case Studies
Lifetime Support

Related Tutorials

Excel Formulas PDF
September 6, 2018
How To Lock Cells in Excel | Unprotect Excel
August 13, 2018
4x Faster at Excel
August 6, 2018
Separate Content of One Excel Cells into Separate Columns
August 3, 2018
How to Transpose Excel Columns to Rows | Paste Special Method
July 26, 2018
How to create sparklines in Excel
July 19, 2018
AutoSum in Excel with Shortcut
July 17, 2018
OFFSET Function in Excel
July 6, 2018
Strikethrough Shortcut in Excel & Word
July 4, 2018
INDIRECT Function with SUM, MAX, MIN & Independent Cell Value
June 29, 2018
Pivot Table Slicers In Excel
June 12, 2018
How to Split Cells in Excel using Text to Column
June 7, 2018
How to Wrap Text in Excel Automatically and Manually
June 6, 2018
How to Unhide Column in Excel
June 5, 2018
Highlight row based on cell value
June 4, 2018
Learn how to remove blank cells in Excel
June 3, 2018
How to Group Numbers, Dates & Text in Pivot table in Excel
June 1, 2018
5 Powerful Tricks to Format cells in Excel
May 31, 2018
Insert a Picture into a Cell in Excel
May 25, 2018
What is ISFORMULA Function and FORMULATEXT Function
May 21, 2018
How to Use SUBSTITUTE Function
May 21, 2018
Excel Quartile Function in Excel
May 8, 2018
How to use the Excel PERCENTILE function
May 7, 2018
Insert or Type degree symbol in Excel with Autocorrect Feature
May 7, 2018
Insert Symbol Dialog Box to Insert or Type degree symbol in Excel
May 7, 2018