cellMatrix.net

Spreadsheet Modeling and Related Topics

Goal Seek Tool

One of my frustrations with Excel's Goal Seeking feature is that you need to hand enter the "To value" input as opposed to giving you the option to tie the value directly to a value in a cell (see the screenshot below).

image

Recently I created a simple tool which allows the user to get around this limitation. Screenshots of the tool appear below. Note the two option buttons that appear on the bottom right-side of the tool.

In the first state shown below, the user can tie a cell value to the to the second input box. In this mode a RefEdit control is used to capture the cell value.

image

In the second state, the tool works very similar to Excel's built-in feature. In this mode an input box is used to capture the cell value.

image

Several buttons appear at the bottom of the tool. After entering the three required inputs, hit the Apply button to start the goal seeking process. If the tool can't find an answer quickly, you can use the Stop button to halt the procedure. After the tool has returned a result, the Undo button can be used to put the values back to their original state.

The tool is currently designed to work with Excel 2003 and has not been tested by anyone other than myself. It can be used as-is or converted to an add-in. If you would like the file, feel free to download it via the link below.

Download the Tool


Posted on Tuesday, November 04, 2008 | Comments (4) | Permalink
Comments

You can make the RefEdit do double duty. Not only can it be used to select a range, it can also be used for entry of a value. The Equal To frame isn’t even needed. You just need your form validation routines to be a bit smarter.

Posted by Jon Peltier  on  11/05  at  05:58 AM

Jon,

This is great work. I plan to download today.
One of my frustrations with Goal Seek is that it will not terminate when a sought-for solution is not within it’s grasp. This is my fault for not defining the goal seek properly, but what happens when you make a mistake. I have to press control alt delete in order to stop the goal seek routine.
Do you know a way to stop this thing?

Posted by .(JavaScript must be enabled to view this email address)  on  11/19  at  07:07 AM

Allow me to cut in.

Stephen - This might work. Go to Tools menu > Options > Calculation tab, check the box next to Iteration, and choose a reasonable maximum. I’d stick with the default 100 until I had reason to switch.

Posted by Jon Peltier  on  11/19  at  11:20 AM

Jon,

Thanks for including the download link. I am not sure how to fully use the program but in theory it looks very user friendly

Regards,

andrew

Posted by andrew  on  01/29  at  09:47 AM
Page 1 of 1 pages

Comment Entry Form

User Information

Name: (Required)

E-Mail Address: (Optional)

Location: (Optional)

Web Site Address: (Optional)

Comment Formatting Reference
Add VBA Code:
<pre>some code here</pre>
Linking:
[url]http://www.example.com/[/url]
[url=http://www.example.com/]my site[/url]
Text Formatting
[size=4]Some larger text[/size]
[color=green]Some green text[/color]
[b]Some bold text[/b]
[i]Some italic text[/i]
Enter Comment Below

Personalization Options
Remember my personal information
Notify me of follow-up comments?

Next entry: Stop and Resume Macro Execution

Previous entry: Around the Web 3

<< Back to main

Statistics

  • Total Entries - 136
  • Current Viewers - 27

Categories

Entries by Day

Jul - 2010
S M T W T F S
27 28 29 30 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Recent Comments

Syndicate