Resources | Subject Notes | Information Technology IT
This section explores techniques for performing what-if analysis and goal seek within a model. These tools are crucial for understanding how changes in input variables affect output variables and for determining the input values needed to achieve a desired outcome.
What-if analysis involves changing input values in a model to see the resulting impact on the output. This allows for exploring different scenarios and assessing the sensitivity of the model to various factors.
In spreadsheet software like Microsoft Excel or Google Sheets, what-if analysis can be performed using several tools:
Goal seek is a powerful tool for finding the input value that results in a desired output. It works by iteratively adjusting the input value until the target output is achieved.
Syntax (in Excel/Sheets): =GoalSeek(set_cell, changed_cell, target_value, [tolerance], [absolute_reference])
Arguments:
set_cell
: The cell containing the value that you want to change to achieve the goal.changed_cell
: The cell containing the output that you want to target.target_value
: The desired value for the output cell.[tolerance]
: (Optional) The acceptable level of accuracy for the target value. Defaults to 0.001.[absolute_reference]
: (Optional) A Boolean value (TRUE or FALSE) indicating whether to refer to the set_cell
using absolute cell references. Defaults to FALSE.Consider a simple investment scenario where we want to determine the initial investment amount needed to achieve a specific future value.
Scenario: You want to invest a certain amount today and have it grow to a target value after a specified number of years with a given interest rate.
Model Setup (Example):
Cell | Description |
---|---|
A1 | Initial Investment (to be changed) |
A2 | Interest Rate (e.g., 0.05 for 5%) |
A3 | Number of Years |
A4 | Future Value (Target Value) |
A5 | Formula (FV = PV * (1 + r)^n) |
Goal Seek Application:
The Goal Seek tool will then iteratively adjust the value in cell A1 until the future value in cell A4 reaches the target value. The resulting initial investment amount will be displayed in cell A1.
Data tables allow you to see how the output of a formula changes when you vary one or two input variables.
Syntax (in Excel/Sheets): =DataTable(array_reference, [row_input], [column_input])
Arguments:
array_reference
: The range containing the formula you want to analyze.[row_input]
: (Optional) The cell containing the row input variable.[column_input]
: (Optional) The cell containing the column input variable.Example: Suppose you have a formula in cell A1 that calculates a total cost based on quantity in cell B1 and unit price in cell C1. You can use a data table to see how the total cost changes for different quantities.
Steps:
The data table will then display a table of total costs for different combinations of quantity and unit price.
What-if analysis and goal seek are essential tools for model building and analysis. They enable users to explore different scenarios, understand model sensitivity, and determine optimal input values to achieve desired outcomes. Understanding how to use these tools effectively is a key skill for any IT professional.