← Back to all guides
Technology · 2 min READ

How to Use Goal Seek in Excel to Find a Missing Input

How to Use Goal Seek in Excel to Find a Missing Input guide illustration

Find the unit price that produces a target order total. Learn which cell Excel changes, how to keep or discard the result and how to check rounding.

Quick note

Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.

Quick answer

In desktop Excel for Windows, choose Data → What-If Analysis → Goal Seek. Set the formula cell as Set cell, enter your target under To value and select one editable input under By changing cell. Excel tries different values for that input until the formula reaches your target.

1. Make a formula with one unknown

Suppose you have 25 kits and want the order to total $300. In A2:A4 type Kits, Price per kit and Total. Enter 25 in B2 and a starting price of 10 in B3. In B4 enter =B2*B3. Check that B4 shows 250. Save the workbook or note the starting price before you try a different one.

2. Tell Excel what it can change

Click B4, then open Data → What-If Analysis → Goal Seek. Enter the settings below. You can click in each cell-reference box and then click the corresponding worksheet cell. Excel may display dollar signs around the addresses. In this example, $B$4 and B4 point to the same total.

Goal Seek fieldEnterMeaning
Set cellB4Formula for the total
To value300Target order total
By changing cellB3Price per kit

3. Review the proposed result

Click OK in the setup dialog. When the status box appears, check the target and current values. On the sheet, B2 should still contain 25, B3 should show 12 and B4 should display 300. Click OK to keep the proposed price or Cancel to return to 10. If you keep it, click B4 and confirm the original multiplication formula remains in the formula bar.

4. Check whether the answer works at your required precision

Try a target of 301 with the same 25 kits. A unit price of $12.04 gives exactly $301. Now change the quantity to 24 and run Goal Seek again with the same target. Excel can find a price near 12.541667. At two decimal places, $12.54 multiplied by 24 gives $300.96. Displaying two decimals can hide the extra precision.

What if Goal Seek cannot find a solution?

Change the proposed input by hand and see whether the formula responds. If B4 stays fixed, check its references and whether it contains a typed number. Goal Seek changes one input per run. Keep the quantity fixed when solving for the price.

Microsoft Support · Use Goal Seek to adjust an input value

SHARE THIS GUIDE

Know someone who could use this?

DISCUSSION

Comments

Read or join the discussion.