Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

If you know the result that you want from a formula, but are not sure what input value the formula needs to get that result, use the Goal Seek feature. For example, suppose that you need to borrow some money. You know how much money you want, how long you want to take to pay off the loan, and how much you can afford to pay each month. You can use Goal Seek to determine what interest rate you will need to secure in order to meet your loan goal.

If you know the result that you want from a formula, but are not sure what input value the formula needs to get that result, use the Goal Seek feature. For example, suppose that you need to borrow some money. You know how much money you want, how long you want to take to pay off the loan, and how much you can afford to pay each month. You can use Goal Seek to determine what interest rate you will need to secure in order to meet your loan goal.

Note: Goal Seek works only with one variable input value. If you want to accept more than one input value; for example, both the loan amount and the monthly payment amount for a loan, you use the Solver add-in. For more information, see Define and solve a problem by using Solver.

Step-by-step with an example

Let's look at the preceding example, step-by-step.

Because you want to calculate the loan interest rate needed to meet your goal, you use the PMT function. The PMT function calculates a monthly payment amount. In this example, the monthly payment amount is the goal that you seek.

Prepare the worksheet

  1. Open a new, blank worksheet.

  2. First, add some labels in the first column to make it easier to read the worksheet.

    1. In cell A1, type Loan Amount.

    2. In cell A2, type Term in Months.

    3. In cell A3, type Interest Rate.

    4. In cell A4, type Payment.

  3. Next, add the values that you know.

    1. In cell B1, type 100000. This is the amount that you want to borrow.

    2. In cell B2, type 180. This is the number of months that you want to pay off the loan.

      Note: Although you know the payment amount that you want, you do not enter it as a value, because the payment amount is a result of the formula. Instead, you add the formula to the worksheet and specify the payment value at a later step, when you use Goal Seek.

  4. Next, add the formula for which you have a goal. For the example, use the PMT function:

    1. In cell B4, type =PMT(B3/12,B2,B1). This formula calculates the payment amount. In this example, you want to pay $900 each month. You don't enter that amount here, because you want to use Goal Seek to determine the interest rate, and Goal Seek requires that you start with a formula.

      The formula refers to cells B1 and B2, which contain values that you specified in preceding steps. The formula also refers to cell B3, which is where you will specify that Goal Seek put the interest rate. The formula divides the value in B3 by 12 because you specified a monthly payment, and the PMT function assumes an annual interest rate.

      Because there is no value in cell B3, Excel assumes a 0% interest rate and, using the values in the example, returns a payment of $555.56. You can ignore that value for now.

Use Goal Seek to determine the interest rate

  1. On the Data tab, in the Data Tools group, click What-If Analysis, and then click Goal Seek.

  2. In the Set cell box, enter the reference for the cell that contains the formula that you want to resolve. In the example, this reference is cell B4.

  3. In the To value box, type the formula result that you want. In the example, this is -900. Note that this number is negative because it represents a payment.

  4. In the By changing cell box, enter the reference for the cell that contains the value that you want to adjust. In the example, this reference is cell B3.
     

    Note: The cell that Goal Seek changes must be referenced by the formula in the cell that you specified in the Set cell box.

  5. Click OK.

    Goal Seek runs and produces a result, as shown in the following illustration.

    Goal Seek

    Cells B1, B2, and B3 are the values for the loan amount, term length, and interest rate.

    Cell B4 displays the result of the formula =PMT(B3/12,B2,B1).

  6. Finally, format the target cell (B3) so that it displays the result as a percentage.

    1. On the Home tab, in the Number group, click Percentage.

    2. Click Increase Decimal or Decrease Decimal to set the number of decimal places.

If you know the result that you want from a formula, but are not sure what input value the formula needs to get that result, use the Goal Seek feature. For example, suppose that you need to borrow some money. You know how much money you want, how long you want to take to pay off the loan, and how much you can afford to pay each month. You can use Goal Seek to determine what interest rate you will need to secure in order to meet your loan goal.

Note: Goal Seek works only with one variable input value. If you want to accept more than one input value, for example, both the loan amount and the monthly payment amount for a loan, use the Solver add-in. For more information, see Define and solve a problem by using Solver.

Step-by-step with an example

Let's look at the preceding example, step-by-step.

Because you want to calculate the loan interest rate needed to meet your goal, you use the PMT function. The PMT function calculates a monthly payment amount. In this example, the monthly payment amount is the goal that you seek.

Prepare the worksheet

  1. Open a new, blank worksheet.

  2. First, add some labels in the first column to make it easier to read the worksheet.

    1. In cell A1, type Loan Amount.

    2. In cell A2, type Term in Months.

    3. In cell A3, type Interest Rate.

    4. In cell A4, type Payment.

  3. Next, add the values that you know.

    1. In cell B1, type 100000. This is the amount that you want to borrow.

    2. In cell B2, type 180. This is the number of months that you want to pay off the loan.

      Note: Although you know the payment amount that you want, you do not enter it as a value, because the payment amount is a result of the formula. Instead, you add the formula to the worksheet and specify the payment value at a later step, when you use Goal Seek.

  4. Next, add the formula for which you have a goal. For the example, use the PMT function:

    1. In cell B4, type =PMT(B3/12,B2,B1). This formula calculates the payment amount. In this example, you want to pay $900 each month. You don't enter that amount here, because you want to use Goal Seek to determine the interest rate, and Goal Seek requires that you start with a formula.

      The formula refers to cells B1 and B2, which contain values that you specified in preceding steps. The formula also refers to cell B3, which is where you will specify that Goal Seek put the interest rate. The formula divides the value in B3 by 12 because you specified a monthly payment, and the PMT function assumes an annual interest rate.

      Because there is no value in cell B3, Excel assumes a 0% interest rate and, using the values in the example, returns a payment of $555.56. You can ignore that value for now.

Use Goal Seek to determine the interest rate

  1. Do one of the following:

    In Excel 2016 for Mac: On the Data tab, click What-If Analysis, and then click Goal Seek.

    In Excel for Mac 2011: On the Data tab, in the Data Tools group, click What-If Analysis, and then click Goal Seek.

  2. In the Set cell box, enter the reference for the cell that contains the formula that you want to resolve. In the example, this reference is cell B4.

  3. In the To value box, type the formula result that you want. In the example, this is -900. Note that this number is negative because it represents a payment.

  4. In the By changing cell box, enter the reference for the cell that contains the value that you want to adjust. In the example, this reference is cell B3.
     

    Note: The cell that Goal Seek changes must be referenced by the formula in the cell that you specified in the Set cell box.

  5. Click OK.

    Goal Seek runs and produces a result, as shown in the following illustration.

    What-if analysis - Goal Seek feature
  6. Finally, format the target cell (B3) so that it displays the result as a percentage. Follow one of these steps:

    • In Excel 2016 for Mac: On the Home tab, click Increase Decimal Increase Decimal or Decrease Decimal Decrease Decimal.

    • In Excel for Mac 2011: On the Home tab, under Number group, click Increase Decimal Increase the number of decimal places or Decrease Decimal Decrease the number of decimal places to set the number of decimal places.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×