Back into an Answer with Goal Seek


September 22, 2017 - by

Back into an Answer with Goal Seek

Excel What-If Analysis offers a goal seek feature. You can use Goal Seek to find the correct input values to lead to a given result. If you need to back into an answer, Goal Seek is the solution. Learn how to use Goal Seek in Excel.

Do you remember in Insert Functions & Loan Payments, when I showed you how to calculate a loan payment using the Insert Function dialog? Back in that example, the monthly loan payment was going to be $493.54. I did not mention it at the time, but my monthly budget for car payments is $425.

If you are about the same age as me, and spent your summers watching TV, you might remember a crazy game show called The Price Is Right. Long before Drew Carey, the venerable Bob Barker would give away prizes using a variety of games. One that I recall is the Higher/Lower game. Bob would give you the car if you could state the price of the car. You would guess. Bob would shout Higher or Lower. I think you had 20 seconds to narrow your guesses to the exact price.

A lot of times, I feel like those summers watching Bob Barker trained me to find answers in Excel. Have you ever found yourself plugging in successively higher and lower values into an input cell, hoping to arrive at a certain answer?

Sample Data Set
Sample Data Set
Illustration: Chad Thomas
Illustration: Chad Thomas


A tool that is built in to Excel that does exactly this set of steps. On the Data tab, in the Data Tools group, look for the What-If Analysis dropdown and choose Goal Seek.

What-If Analysis - Goal Seek
What-If Analysis - Goal Seek

Below, you are trying to set the payment in B5 to $425 by changing cell B1

Goal Seek Settings
Goal Seek Settings

Goal Seek finds the correct answer within a second.

Goal Seek Finds the Answer
Goal Seek Finds the Answer

Note that the formula in B5 stays intact. The only thing that changes is the input value typed in to B1.

Also, with Goal Seek, you are free to experiment with changing other input cells. You can still get the $425 loan payment and the $25,995 car if your banker will offer you a 71.3379-month loan!

Experiment More
Experiment More

Thanks to Jon Wittwer of Vertex42.com and to @BizNetSoftware for suggesting Goal Seek.

Watch Video

  • How to back into an answer in Excel
  • Find an inverse function for PMT by using fx and searching for PMT
  • Try the Price is Right method - higher, lower, higher, lower
  • Goal Seek is an automated Bob Barker
  • Goal Seek even works with changing the term

Video Transcript

Learn Excel from MrExcel podcast, episode 2033 - Using Goal Seek to Back into an Answer!

I am podcasting this entire book, click that “i” on the top-right hand corner to get to the playlist!

Hey, welcome back to the MrExcel netcast, I'm Bill Jelen. Well, we're revisiting the model that we build in episode 2022, this is one where we calculated a loan payment, and we used the Insert Function button to figure out the PMT function. And my problem is, this was a car, and I only wanted to pay $425 a month, so what principal value will lead us to $425 a month? Well, there's three ways to solve this, alright. Method #1 is algebra! No, no, I'm sorry, with all due respect to all high school math teachers out there, algebra is something that I intend to never use again after high school. Now, this one's not in the book, but it actually is a way to solve it. Let's change the model around and try and find the inverse function, so instead of using PMT, find a function that will give us the principal. And if we go back into Insert Function, and actually search for what we're looking for, PMT, the second item is the inverse, right? And it's possible to use the PV function, so rate/12, Nper of our periods is 60, and the payment I want to make that be negative, because it's money coming out of the bank, and I get the actual answer right there. Although, I'm closing my eyes, that way I forget this, because no one goes to the all the trouble of using algebra or inverse function.

Here's what we do, we play a game that I was very familiar with back in middle school, summer is in middle school! I'd be home during the day, I watch a program on American television called “The Price is Right”, where a guy named Bob Barker would give away all kinds of fabulous prizes. And do you remember the game where he would give away a car if you could just say the price of the car? You would guess, and he would shout HIGHER or LOWER! Alright, so my first guess was 25995, Bob says Lower, so I go 20000, Bob says Higher, now see, I am a fan of this game, I am an aficionado of this game. Of course, what you do then, just go right in the middle, so kind of go to 23000 and Bob's going to say Lower, and then you split it again 21.5, and so on. There you are, Winner, but this is a slow, slow way to go, but you understand what's happening here. Right, if you ever watch “The Price is Right” or if you just- we're guessing progressively higher and lower until we get to the right amount. And with thanks to Chad Thomas for his illustration of Bob Barker here, you know, Bob Barker has retired, he's been replaced in the game By Drew Carey, but it turns out that Bob Barker still has a job, the Excel team has hired him, he's back here on the Data tab, What-If analysis, and he lives inside the Goal Seek command!

Alright, so we're going to set cell B5 to $425 by changing cell B1, and when I click OK, that whole routine that happened on the last spreadsheet is going to happen in less than a second. Did you see that, 22384.9, and they're actually a lot more precise than I was, I got to 22385, it's actually 22384.93425. Which I guess, by the way, is the exact same answer that we got back here, but much faster, and without ever having to try and figure out the inverse function and change the model around. It is a great way to back into an answer to find the right input cell, and the model still works, if we would want to come in here and change things go to 72 months, you'll see that it will calculate. Now in this case, we were trying to figure out the principal, the right price of the car, to get us to $425, but you can do all kinds of crazy things.

We can go in here to What-If Analysis, Goal Seek, and say “Alright, I want to pay 425 dollars a month for this car, but I want to do it by changing, let's say, the term.” Click OK, and they find that you need a 71.3379 month loan to get to that answer so, you know, be creative, as far as which input cell you are going to change. Goal Seek is just one of the tips in this book, lots of tips, I'll be broadcasting the whole book, it will take at least the rest of October to get through this. But you can order the entire book now, $25 in print, $10 an e-book, click that “i” on the top-right hand corner. Alright, so how to back into an answer in Excel? First choice: algebra, I reject that! Second choice: find the inverse function of our payment using the Fx button right there, search for payment, and the inverse function might show up, some functions don't have an inverse. Or “The Price is Right” method, higher lower higher lower, but Goal seek is an automated way to do “The Price is Right” method, even works with changing the term.

Alright well hey, I want to thank you for stopping by, we’ll see you next time for another netcast from MrExcel!

Download File

Download the sample file here: Podcast2033.xlsx

Title Photo: Kaz / Pixabay