Goal Seek With Cell Reference

yankeez245

New Member
Joined
May 6, 2020
Messages
12
Office Version
  1. 2013
Platform
  1. Windows
Hello,

I am trying to use goal seek with the "to value" field as a cell reference. I am trying to set cell J12 to value of 1070000 by changing cell b7, but I want 1070000 to be a cell reference, rather than a manual input. Is there a way to change this?

Thank you.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You can with a macro and add a button. I often setup a subtraction to reference so that my to value is always zero. For example macro:
Sub mygoalseek()
seekvalue = Range("A5").Value
Range("B5").GoalSeek Goal:=seekvalue, ChangingCell:=Range("B4")
End Sub
 
Upvote 0
What is your specific subtraction formula? And what cell is your subtraction in? I'm trying to read your VBA code.
 
Upvote 0
Sorry, poorly worded. The example macro does not require the subtraction portion, two different methods.
No macro, keyboard shortcut Alt+T, then G. Add a subtraction of End - Desired End. Instead of typing a long number (put it in desired end) just type 0.
1598557843740.png

Good for reducing keystrokes and NOT requiring a macro enabled file.

For macro, Goal seek records as a macro fairly well, then add the seekvalue= piece to it once you decide where it goes.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,749
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top