Goal Seek and Data Tables, Others
Goal Seek and Data Tables, Others
So, in brief,
• Goal Seek is used to determine the required input value to reach a
specific target.
• It works by adjusting one cell to achieve the desired outcome in another
cell.
• Goal seek commonly used in financial analysis, break-even analysis,
forecasting, calculate loan payments or interest rates, What-if analysis.
Goal Seek Example: Sales Target
Let’s take an example,
You have a sales formula:
Total Revenue = Units Sold × Price per Unit
If the price per unit is $30 and you want to achieve a total revenue of $10,000, how
can you use Goal Seek in Excel to determine the required number of units to be sold?
v. Click OK.
After clicking ok we can see that, Excel will calculate and display the required number of
units to be sold. Using simple math, that is:
Hence, we can say that, to achieve a revenue of $10,000, you need to sell around
334 units.
Here, we saw some measurements to adjusting an input value that are used while working
on GOAL SEEK. Those are,
• Set Cell: The cell that contains the formula or the result you want to reach.
• By Changing Cell: The input cell that Goal Seek will adjust to reach the target value.
What are Data Tables?
• Data Tables help analyze multiple scenarios by varying one or two inputs.
• It is a tool present in Microsoft Excel as one of the three What-If Analysis
tools namely Scenario Manager, Goal Seek, and Data Table. It is a tool, that
allows one to try out various input values for the formulas present in their
sheet and see how changes in those values affect the output in the cells.
• They are useful in financial models, loan calculations, and sales forecasting.
• Types:
- One-variable Data Table: Changes one input.
- Two-variable Data Table: Changes two inputs.
To apply a data table tool anywhere in the Excel sheet, there must be a table and
the formula whose values will be replaced by the row and column values must
be kept in the top-left corner or the top-right corner of the table according to
the variables used to replace the formula
For example, there is an Excel sheet that is used to calculate simple
interest over a given amount for a given number of years for a given rate
of interest per annum. With the help of a Data Table, we can calculate the
interest for the same amount with different numbers of years and
with different rates of interest. Not only that, we can also, calculate the
interest for different amounts, for different numbers of years for a fixed
rate of interest very easily.
First of all, we will see the One-Variable Data Table, where only one of the formula
values is replaced with the row or column values of a table of data.
Where:
P = Loan Amount
r = Interest Rate (monthly) → (Annual Rate / 12)
n = Loan Tenure (in months)
Excel provides a built-in function to calculate EMI:
Where:
rate = Interest Rate per month (Annual Rate / 12)
nper = Loan tenure in months
pv = Principal amount (Loan amount)
One-Variable Data Table Example
We will analyze how different interest rates affect the EMI while
keeping loan amount and tenure constant.
The EMI formula in B19 calculates the monthly payment based on interest rate, tenure,
and loan amount.
The PMT function uses:
NOTE: Data Table analyze how changing one or two inputs in a formula affects the
results. They are useful for sensitivity analysis.
Set up the data by adding loan tenure
Loan Tenure
Data Tables (Months)
Interest Rate
A B ₹ 10,138.20
36 48 60 72
Loan Amount 5,00,000 10,138..20 #VALUE!
14985.44855 11514.64679 9435.616822 8052.466
Loan Tenure (months) 60 5% ₹ 9,435.62
15210.96873 11742.51452 9666.400765 8286.444
Interest Rate (Annual) 8% 6% 9666.400765
16133.5936 12681.29172 10623.52236 9262.919
EMI ₹ 10,138.20 7% 9900.59927
15899.86633 12442.52119 10379.17761 9012.769
8% 10138.19714
14321.28937 10847.56182 8763.880027 7375.221
9%
10379.17761 14985.44855 11514.64679 9435.616822 8052.466
Enter the EMI Formula. Here we are going to find the Loan Tenure, for that the formula
will be: =PMT(B18/12, B17, -B16)
Where,
B16 = Loan Amount, B17 = Loan Tenure, B18 = Interest Rate
Select the table range (including Interest Rate & Tenure values).
Go to What if analysis from Forecast group and click on Data Table
In the Data Table dialog box select $B$16 ( Loan Tenure) as a row input cell
In the Data Table dialog box select $B$16 ( Interest Rate (Annual)) as a column input cell
Click ok. We can see and compare, how loan amount is impacted on different interest
rate and different times to pay the Emi
Scenario Manager
Scenario Manager allows users to create and compare multiple sets of input values to see
how changes affect the outcome of a model.
It is a feature under What-If Analysis in Excel that allows you to create and compare
multiple "what-if" situations (called scenarios) based on different sets of inputs.
You can use it to test best case, worst case, or expected case results for things like
budgets, profits, forecasts, etc., without changing your actual data each time.
QUESTION: A business wants to forecast its potential profit under different situations using
Excel. The profit is calculated as Profit = Sales – Cost. The company considers the following
scenarios:
• Best Case: Sales = ₹100,000, Cost = ₹30,000
• Worst Case: Sales = ₹60,000, Cost = ₹50,000
• Expected Case: Sales = ₹80,000, Cost = ₹40,000
Explain how to use the Scenario Manager feature in Excel to create and compare these
scenarios. Also, provide the calculated profit in each case.
To compare profit under various conditions without manually changing the values each
time, we will follow some steps:
Step 2: Go to the Data tab → click What-If Analysis → choose Scenario Manager.
Click Add to create your first scenario.
Step 3: Add Scenarios: Now we will start to add our first Scenario
For example:
•Allow only numbers between 1 and 100
•Create a drop-down list for predefined options
•Block duplicate entries or invalid dates
To Apply Data Validation:
Apply a PivotTable Style :Design > PivotTable Styles to apply a pre-designed format
2
1
3
Group Data
•Right-click on date or number field → Group
• Group dates by month/quarter/year
• Group numeric values into ranges
• Go to Field Settings
• Click OK
you will see several options. Select the one that best
meets your security needs:
To record a macro:
Go to the View tab or
Developer tab.
Click “Record
Macro”.
Give your macro a name.
• Pressing the assigned shortcut key (In our case it’s Ctrl+shift+H, or
• Going to View > Macros > View Macros, selecting your macro name, and clicking Run