+ Reply to Thread
Results 1 to 7 of 7

Goalseek/Solver with calculation in limited range

  1. #1
    Registered User
    Join Date
    03-09-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    2

    Goalseek/Solver with calculation in limited range

    I have a few calculation intensive spreadsheets, which take a long time to calculate completely. But all too often, I have to run goalseek/solver on a few lines, to quickly get a result.

    However, every time I use goalseek/solver, the entire spreadsheet recalculates repeatedly (including areas which are not relevant to the particular solution).

    Do we have a work-around this? Say I could define that goalseek should only re-calc rows 1 and 2, while solving for J2 equal to 0, by changing B2.

    Thanks a lot!

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Goalseek/Solver with calculation in limited range

    If your calculation option is set to manual you could try something like

    Please Login or Register  to view this content.
    Alf

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

    Re: Goalseek/Solver with calculation in limited range

    @Alf,

    That construct may point at different cells than those listed if the used range doesn't start in A1.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Goalseek/Solver with calculation in limited range

    every time I use goalseek/solver, the entire spreadsheet recalculates repeatedly (including areas which are not relevant to the particular solution).
    This doesn't seem consistent with my own use of Solver. Is it possible you have a lot of volatile functions (like INDIRECT and OFFSET) that calculate with each calculate event whether they need to or not? Or maybe with a large spreadsheet like that, you have too many dependencies for Excel to do a "smart" recalculation and so it does a full recalculation with each calculate event. http://www.decisionmodels.com/calcsecrets.htm
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    03-09-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Goalseek/Solver with calculation in limited range

    Thanks for the response. Unfortunately, when you 'goalseek' in VBA code, excel seems to be calculating rest of the sheet by default on each iteration. So setting calculation mode to manual, then calculating a targetted range does not work.

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

    Re: Goalseek/Solver with calculation in limited range

    Is it possible you have a lot of volatile functions (like INDIRECT and OFFSET) that calculate with each calculate event whether they need to or not?
    +1 .

  7. #7
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Goalseek/Solver with calculation in limited range

    @shg Thanks for the comment, I never considered that.

    Alf

+ 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