Goal Seek

In the last section, we looked into what-if analysis, simulations, and scenarios, which involved modifying or simulating one or more input values to obtain new output values or the totals.

Goal Seek is also a type of what-if analysis, except in this method, we specify the desired output or goal value to calculate the necessary input value to achieve the goal.

Goal Seek can be used on a formula cell, either in a formula row or a formula column. You can also specify which rows and columns need to be changed to achieve the target value.

Prerequisites

  1. Goal seek can be applied only to target cells containing a mathematical formula or aggregations like sum, product, etc.

  2. To use Goal Seek, row and column aggregation for native and data input measures (inputs for the goal) must be set to 'Sum'.

Manage aggregation

This section discusses other important considerations when using goal seek.

Example

Let us take the following example, where we have the revenue and COGS details for all beverages. The gross profit for each beverage category can be calculated by subtracting COGS from revenue. We will insert a formula measure as shown below.

Gross Profit calculation

The formula measure is inserted, and the grand total is also calculated.

In the image below, the gross profit for the Beer category is 15,555.28 million. Let us assume that the target gross profit for this category is 18,000 million.

Gross profit for 'Beer' category

The relationship here is, Gross Profit = Revenue - COGS

Given a known COGS, we will use the Goal Seek function to calculate the required revenue to achieve a gross profit of 18,000 million in the beer category.

Note that in Goal Seek, you can change only one driver at a time. So, let's keep the COGS constant and work with changing one of its drivers—revenue.

Configuring Goal Seek

  1. Input values in the native columns cannot be changed through Goal Seek. So we will create a copy of it as a data input column to change it. In this example, a data input column has been created for the revenue.

Click on Home > Number (Insert Column section) > Copy from another series > Revenue.

Creating a data input column for 'Revenue'

A side panel opens as shown below. After naming it, click on Create.

Revenue data input measures
  1. Let's update the formula accordingly by including this data input column instead of the native column (replace the 'Revenue' measure with the 'Revenue copy' measure in the formula).

Updating the formula with data input measure
  1. Click on the required target cell (Beer > Grand Total > Gross Profit) and select Plan > Goal Seek.

Click 'Goal Seek'

Goal seek can be applied only to target cells containing a mathematical formula or aggregation like sum, product, etc.

  1. In the pop-up window:

  • Enter the desired goal value of 18,000 million.

  • Verify the target cell and its underlying formula.

  • Choose which of its drivers needs to be changed from the drop-down. This dropdown displays a list of all available data input columns. We will choose 'Revenue copy' since we want to adjust the revenue to reach the desired profit.

Entering the goal value and choosing the driver
  1. You can either apply the changes to all input rows and columns or choose which rows and column measures should be changed to meet the desired goal value. Let us first apply changes to all the input rows and columns. Click Run.

Run Goal Seek by applying changes to all rows and columns
  1. Click Apply to make the changes.

Apply Goal Seek

A new set of values is updated for the revenue to meet the specified profit for the beer category. Both 'Revenue' and 'Gross Profit' are automatically aggregated to the top as well as distributed to the child rows based on their updated values.

Results of Goal Seek

The new values are also distributed to the appropriate column hierarchical levels (here, Q1, Q2, Q3, and Q4).

Note: Goal Seek can also be applied to measures in rows. The example below shows the revised gross profit and revenue values when the beer category's gross profit target is set to 18,000 m.

Goal Seek applied on measures in rows

Applying Goal Seek Results to Specific Rows and Columns

Assume you want to meet the goal value by modifying the values of specific products or business units during a particular time of the year. In these scenarios, you have the option to modify specific input rows and columns to achieve the intended outcome.

In the example below, we set the same desired gross profit of 18,000 million for the Beer category. However, this time we intend to achieve this goal by adjusting the revenue only for the following brands: Artisan Ale, Eclipse Light, and Summit Lager. We also want to change these values for the first and second quarters, excluding the rest.

This can be done by selecting the above-specified rows and columns as below.

Applying Goal Seek to selected rows and columns

In the result below, only the selected rows and columns have been modified to meet the goal.

Results of Goal Seek
  1. Goal Seek can be used on any target cell containing a formula or mathematical operation, including SUM, AVERAGE, subtraction, multiplication, division, and other complex mathematical and financial formulas.

  2. The goal seek function can also be applied to formula cells that reference a column in their formulas, such as COLUMN.PARENT, COLUMN.TOTAL, and so on.

Referencing forecast measures

Above, we demonstrated how to modify a data input field to achieve the desired result. You can also adjust forecast drivers to achieve a specific target value.

The example below contains a forecasted revenue measure (Forecast) as well as a projected data input measure (Revenue copy).

Inserting a forecast

The profit is calculated here by using the projected revenue for closed periods and the forecasted revenue for open periods.

Gross profit formula

Now, when you set a target 'Gross Profit' and choose 'Forecast' in the pop-up as below, the forecast values are adjusted to meet the goal.

Forecast measures in Goal Seek
  • Only the open period forecast measures are adjusted to achieve the desired value. Closed periods are locked by default—you can change this behaviour from the measure settings.

  • Make sure the open period forecast values are configured as data input (as shown in the example above), so they are editable and the goal seek function can be applied.

Goal seek for formula rows

In addition to the target cell being in formula columns, goal seek can also be used on target cells that are present in formula rows.

Suppose you have a calculated row that refers to a data input or forecast row. In that case, you can use Goal Seek to automatically adjust the input row (data input or forecast) to achieve the desired result based on the row-level formula.

In this sheet, we've included a data input row (Heisler) and a formula row (Heisler 10% growth)—which incorporates this input row in its formula.

Formula row referring to a data input row

There is also a forecast measure for estimating gross profit.

Gross Profit - forecast measure

Let's set the 10% growth target for Q4 at 8 million instead of 5.29 million. We'll then use Goal Seek to calculate the Heisler brand's actual gross profit to accomplish this.

Updating the formula row using Goal Seek
Goal seek applied for 8m target

The values in the gross profit forecast measures are updated accordingly:

Goal seek applied for the formula row

Key Considerations for Goal Seek

  • Single input at a time: Goal Seek can only adjust one input measure at a time.

  • Clear relationship between the input and the target goal: The relationship between the input and the target must be clear and well-defined for the iterative process to work.

  • No circular references in the formula: Goal Seek does not work on target cells that contain formulas with circular references.

  • Editable input cells: While the target cell must be a formula, the input cells whose values must be changed to meet the goal should be editable (for example, data input columns and open-period forecast columns with default values configured as data input).

  • No Formula Errors: The formula should not contain errors, such as dividing by zero, as this will prevent Goal Seek from finding a solution.

  • Convergence: If the relationship is highly nonlinear, or if there are many possible solutions, Goal Seek may not be able to determine a solution. This will be notified on the pop-up window when goal seek cannot be achieved.

Last updated