+ Reply to Thread
Results 1 to 5 of 5

Automate What IF Analysis (Goal Seek)

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Automate What IF Analysis (Goal Seek)

    I am looking for a way to automate the what-if-analysis tool found in Excel 2007.

    I am looking for a macro that opens Goal seek (Data tab>What if analysis>Goal seek) Inputs Set cell as E5, To value as 0 and By changing cell as D2. I then want this to run, storing the goal seek value of cell D2 into cell H5.

    I want the process to then repeat for the next cell down i.e. E6, keeping To value as 0, and By changing cell as D2, storing the results in the next cell down i.e. H6.

    I have little experience writing VBA scripts so any assistance you could provide would be appreciated.

    Regards
    Last edited by Savan87; 12-13-2011 at 01:04 PM.

  2. #2
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Automate What IF Analysis (Goal Seek)

    Is it worth posting a sample worksheet?

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Automate What IF Analysis (Goal Seek)

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Automate What IF Analysis (Goal Seek)

    Nope that didn't work, I'm not sure quite what it did. I have generated the initial part of the macro, its just a case of looping through cells f5:f1017, copying the corresponding goal seek answer into cell h5:h1017

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Automate What IF Analysis (Goal Seek)

    ignore last post that works perfectly

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1