+ Reply to Thread
Results 1 to 2 of 2

Help! Macro for a Goal Seek Loop

Hybrid View

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    SF
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help! Macro for a Goal Seek Loop

    Hi all,

    I'm trying to build a macro that iteratively runs a goal seek, then reduces a certain value (Let's call it "Bogey") in a different cell by a small amount, which in turn affects the desired goal seek value, runs the goal seek again, reduces Bogey by a small amount again, etc etc, and keeps running in this loop, with the restriction on this loop being that a different cell, affected by Bogey--let's call it "Constraint"--doesn't drop below a certain amount.

    I've attached an example spreadsheet to explain better. Essentially, what I'd like the macro to do is lower the Bogey value (cell E5) by a small amount, say 1%, then goal seek the "Goalseek Input" amount (cell E2) such that Goal (Cell E9) reaches 12%, and keep iterating until "Constraint" (cell E8) drops to 1.35%, at which point, stop the loop.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,952

    Re: Help! Macro for a Goal Seek Loop

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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