Solver: Using Same Parameters for Multiple Rows

eds10

New Member
Joined
Sep 20, 2004
Messages
9
All, any help would be greatly appreciated.

I'm trying to find a shortcut to using solver rather than having to do it separately for every row in a column since "Set Target Cell Must Be a Single Cell on the Active Sheet." Is there a way to run Solver for multiple rows within a column rather than having to do it individually?

Let me elaborate:
I have the same formula is cells B6:400. I have hard coded number for which I would like to use Solver in C6:400 such that the number in C is "solved" so B=1.

For example:

Target Cell: B6
Value of: 1
By Changing: C6

For rows 6:400.

Rather than going to Tools, Solver, etc each time, is there a way to get around the "Single Cell" rule or any solutions that you can think of.

Thanks in advance for your help.

ES
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about this? It uses Goal Seek instead of Solver because you have only one "by changing" cell...

Code:
Sub My_Goal_Seek_Loop()
Dim i As Long
For i = 6 To 400
    Range("B" & i).GoalSeek Goal:=1, ChangingCell:=Range("C" & i)
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,684
Members
448,977
Latest member
dbonilla0331

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