Solve / Goal seek problem

brites

Board Regular
Joined
Aug 19, 2004
Messages
224
SOS!!!!
URGENT MATTER!!!!

Hi folks,
here`s the deal:
I have to do a simple goal seek to find an answer (5%) for cell (lets say) Y8, only by changing the "price" cell O8. Ok, so far no problem...
the tricky part is that I have to do the same thing from cell Y9 to Y212 (changing its correspondent cell in Column O), for 13 different sheets.
Is that anyway I can replicate the goal seek/solve function automatically?
Or I will have to do it one by one???

Thx in advance,
Brites.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
If you need to have the corresponding cells in column Y contain 5% of the value in the cells in column O, then:
In cell Y8, enter: =O8*5%
and copy down to Y212. Done!
 
Upvote 0
Brites wrote:
" have to do a simple goal seek to find an answer (5%) for cell (lets say) Y8, only by changing the "price" cell O8. Ok, so far no problem... "

As I understand it, you have any number of prices in the range O8:O212, and you want to have 5% of the coresponding prices in Y8:Y212.

If that is the problem, then, my solution, above, is correct. Just enter=O8*5% in cell Y8, and copy down. But, pehaps I am not understanding what is needed?
 
Upvote 0
Yep, thats right... several hundreds...
i tried to make it via macro but i couldnt get it done...

any ideas?
 
Upvote 0
OK! Finaly I GOT IT DONE:

Dim sv As Double
Dim n As Integer

Sub Macro2()
sv = Cells(4, 155)
For n = 8 To 271
Range("EY" & n).GoalSeek Goal:=sv, ChangingCell:=Range("EO" & n)
Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

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