Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
choboy
 
Posts: n/a
Default Goal Seek tool in a macro

You can use the formula:
Range("J7").GoalSeek Goal:=Range("J6"), ChangingCell:=Range("E6")
Hope that helps.
-Bill

"Daniel Roy" wrote:

Hi there

I am sure I will ask an obvious question, but your help is gonna be
much appreciated.

Every day I input a sery of new prices into a spreadsheet in cells J6,
J9 and so on untill J24.

Then I have to use the goal seek tool to set cells J7, J10 and so on
untill J25 to value of cell J6, J9... J24 by changing cells E6,
E7...E12 on another sheet.

I am confident there is a clever way to do this. I have tried to setup
with a simple macro as

Range("J6").Select
Range("J7").GoalSeek Goal:=104,
ChangingCell:=Sheets("Info").Range("E6")
End Sub

Unfortunately, Range("J7").GoalSeek Goal:=104 is an imperfect
information as tomorrow I may enter 115 as the new price. And I cannot
define something as
Range("J7").GoalSeek Goal:=J6

Any help would be more than appreciated, perhaps on my mailbox


Best regards
Daniel Roy

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
goal seek wont calculate an accurate value past 3 decimal places Joe Browning Excel Discussion (Misc queries) 1 April 13th 05 07:29 AM
Goal Seek option baks Excel Discussion (Misc queries) 1 February 9th 05 04:10 AM
goal seek vs solver neoschenker Excel Worksheet Functions 3 February 3rd 05 03:56 PM
Goal Seek - Why make the PV negative? Mytpoet67 Excel Discussion (Misc queries) 1 January 13th 05 02:51 AM
Goal Seek - reference a cell for "To value" field? cchristensen Excel Worksheet Functions 1 November 5th 04 07:27 PM


All times are GMT +1. The time now is 06:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"