<?xml version="1.0" encoding="utf-8"?>
<!-- RSS generated by Web Crossing(r) Unix-v6.4 built Jan 14 2010 18:50:13 (source:1372 2010-01-14 15:39:31 -0800)/-6.4 on 2010-03-11-20.43.00 GMT -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="http://www.officeformac.com/blog/Under-Appreciated-Excel-Feature-Of-The-Week--Goal-Seek/blog_rss/synopsis.xml" rel="self"></atom:link>
<title>
Mac Mojo: The Office for Mac Team Blog - Under-Appreciated Excel Feature Of The Week: Goal Seek</title>
<link>http://www.officeformac.com/ms/blog</link>
<description>
&lt;p&gt;Last month's &lt;a href=&quot;http://www.officeformac.com/blog/Under-Appreciated-Excel-Feature-Of-The-Week--Data-Tables&quot;&gt;post about Data Tables&lt;/a&gt; generated a surprising amount of e-mail from readers. Lots of people, it seems, are interested in learning how to get more out of Excel.&lt;/p&gt; 
&lt;p&gt;In that spirit, I thought I'd take some time to discuss and showcase a companion feature to Data Tables, called &lt;b&gt;Goal Seek&lt;/b&gt;.&amp;nbsp;&lt;/p&gt; 
&lt;p&gt;As I wrote about Data Tables:&lt;/p&gt; &lt;br&gt;
&lt;blockquote&gt;Put plainly, Data Tables let you do &amp;quot;what if...&amp;quot; analyses in Excel. They let you see how the results of a formula change as its underlying variables change. Data Tables let you see an entire &lt;i&gt;range&lt;/i&gt; of solutions, rather than just one single answer.&lt;/blockquote&gt; 
&lt;p&gt;In that post, we explored Data Tables through the frame of taking out a large loan. The feature let us see how our monthly payment would vary if we changed the length of the loan or its interest rate. Our end product was a matrix of numbers that lets us see, clearly, how rates and terms affected our monthly payment.&lt;/p&gt; 
&lt;p&gt;However, there are a number of times when we're not looking for a table of results, but instead are concerned with optimizing around a &lt;b&gt;single variable&lt;/b&gt;. For instance, if I go out to buy a car, I have a certain amount of money - say, $350 - that I can afford to put toward a payment each month. In cases like these, I'd much prefer not to look at a matrix - instead, I'd like to just know how much I can get for my money.&lt;/p&gt; 
&lt;p&gt;This is where you use Goal Seek.&lt;/p&gt; 
&lt;p&gt;Like Data Tables, Goal Seek lets you do &amp;quot;what if...&amp;quot; analysis, but it will solve for a specific, single answer. Here, I'm really only interested in one question: &lt;i&gt;given that I have $350 a month to spend, how much car can I afford&lt;/i&gt;?&lt;/p&gt; 
&lt;p&gt;I'll walk through an example to show how it's done.&lt;/p&gt; 
&lt;p&gt;We first need to set up our spreadsheet. Just as we did with Data Tables, we will make a few assumptions about our loan. (If you want to grab the finished spreadsheet from the Data Tables exercise (&lt;a href=&quot;http://www.officeformac.com/blog/Under-Appreciated-Excel-Feature-Of-The-Week--Data-Tables/cmd.233/enclosure..59b5a4f1&quot;&gt;download here&lt;/a&gt;), it will save you a bit of time.)&lt;/p&gt; 
&lt;p&gt;Just to plug in some numbers, let's assume that we're borrowing &lt;b&gt;$25,000&lt;/b&gt; for &lt;b&gt;4 years&lt;/b&gt; at &lt;b&gt;7% interest&lt;/b&gt;. &amp;nbsp;If we set up our spreadsheet as follows and use the Excel PMT function (=PMT(B4/12,B3*12,B2)), we will get a monthly payment of ... $598.66.&lt;/p&gt; 
&lt;p&gt;&lt;center&gt;&lt;img alt=&quot;Figure 1&quot; src=&quot;http://www.officeformac.com/blogassets/10232008_fig1.png&quot; /&gt;&lt;/center&gt;&lt;/p&gt; 
&lt;p&gt;A payment of $598.66 is &lt;i&gt;quite&lt;/i&gt; a bit more than the $350 I have to spend every month. So now it's time to figure out how much car I can actually afford.&lt;/p&gt; 
&lt;p&gt;Go to the &amp;quot;Tools&amp;quot; menu and select &amp;quot;Goal Seek...&amp;quot; (it's about 2/3 of the way down the list). The Goal seek dialog will appear:&amp;nbsp;&lt;/p&gt; 
&lt;p&gt;&lt;center&gt;&lt;img alt=&quot;Figure 2&quot; src=&quot;http://www.officeformac.com/blogassets/10232008_fig2.png&quot; /&gt;&lt;/center&gt;&lt;/p&gt; 
&lt;p&gt;There are three variables to worry about, here: &lt;i&gt;set cell&lt;/i&gt;, &lt;i&gt;to value&lt;/i&gt;, and &lt;i&gt;by changing cell&lt;/i&gt;. The nice thing is that they work as a sentence:&lt;/p&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;br&gt;
&lt;center&gt;Set the cell [X] to the value [Y] by changing the cell [Z].&lt;/center&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt; 
&lt;p&gt;In other words: you're asking Excel to change the value of cell Z until cell X is equal to some value, Y.&lt;/p&gt; 
&lt;p&gt;With that in mind, filling out Goal Seek is pretty easy. On our spreadsheet, we want to &lt;b&gt;set cell&lt;/b&gt; B5 (&amp;quot;Monthly Payment&amp;quot;) equal &lt;b&gt;to&lt;/b&gt; the &lt;b&gt;value&lt;/b&gt; of our monthly payment ($350). And we want Excel to do that &lt;b&gt;by changing cell&lt;/b&gt; B2 (&amp;quot;Amount To Be Borrowed&amp;quot;).&lt;/p&gt; 
&lt;p&gt;Setting Goal Seek to these values, we get:&lt;/p&gt; 
&lt;p&gt;&lt;center&gt;&lt;img alt=&quot;Figure 3&quot; src=&quot;http://www.officeformac.com/blogassets/10232008_fig3.png&quot; /&gt;&lt;/center&gt;&lt;/p&gt; 
&lt;p&gt;It's worth noting that &amp;quot;to value&amp;quot; is set to &lt;i&gt;minus&lt;/i&gt; 350 (-$350). This is because a monthly payment is a cash outflow - it's money you're giving away each month. This is how the Excel PMT function thinks about monthly payments, and, since we're relying on the PMT function to do all our heavy lifting in the math department, we need to make sure we're speaking a language the function understands. (It's a quirk, but an important one.)&lt;/p&gt; 
&lt;p&gt;Click OK, and Excel will crunch the numbers. Goal Seek will come back and let you know if it found a solution:&lt;/p&gt; 
&lt;p&gt;&lt;center&gt;&lt;img alt=&quot;Figure 4&quot; src=&quot;http://www.officeformac.com/blogassets/10232008_fig4.png&quot; /&gt;&lt;/center&gt;&lt;/p&gt; 
&lt;p&gt;Click OK again, and this dialog will vanish. You'll find yourself back out at your workbook, which should now contain the answer to our question:&lt;/p&gt; 
&lt;p&gt;&lt;center&gt;&lt;img alt=&quot;Figure 5&quot; src=&quot;http://www.officeformac.com/blogassets/10232008_fig5.png&quot; /&gt;&lt;/center&gt;&lt;/p&gt; 
&lt;p&gt;Looks like I can afford to borrow $14,616 for my new car &amp;nbsp;- which means I'm looking less at a new &lt;a href=&quot;http://www.miniusa.com/&quot;&gt;Mini Cooper&lt;/a&gt;, and more at a shiny &lt;a href=&quot;http://www.toyota.com/yaris/&quot;&gt;Toyota Yaris&lt;/a&gt;. Pretty cool, huh?&lt;/p&gt; 
&lt;p&gt;So that's Goal Seek - yet another under-appreciated Excel feature. As you might imagine, it's a pretty powerful (and profoundly useful) tool. Personally, I use it all the time for situations like this (which seem to crop up in business pretty regularly).&lt;/p&gt; 
&lt;p&gt;If you'd like to see my spreadsheet, I've attached it to this post - &lt;a href=&quot;http://www.officeformac.com/blog/Under-Appreciated-Excel-Feature-Of-The-Week--Goal-Seek/cmd.233/enclosure..59b5e72c&quot;&gt;just click here&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;Best of luck!&lt;/p&gt;</description>
<lastBuildDate>Sun, 23 Nov 2008 04:11:40 GMT</lastBuildDate>
<generator>Web Crossing(r) Unix-v6.4 built Jan 14 2010 18:50:13 (source:1372 2010-01-14 15:39:31 -0800)/Unix-6.4 (http://webcrossing.com/)</generator>
<docs>http://backend.userland.com/rss</docs>
</channel>
</rss>
