+ Reply to Thread
Results 1 to 3 of 3

Store GoalSeek Iterative Attempts

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Store GoalSeek Iterative Attempts

    Hi All,

    Trying to capture the number of iterations and data used when running goal seek.
    I tried setting max iterations to 1 and the using a for loop as illustrated in my code below.
    it seems GoalSeek does not use 1 iteration as specified, any help is much appreciated.
    Regards and thanks John

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Store GoalSeek Iterative Attempts

    Unfortunately MaxIterations is related to circular reference, not to GoalSeek.
    I don't think you can do a Goal seek step by step.
    You can mimmic GoalSeek by using Solver. You have to activate it (in file->options->add ins->manage->excel add inns->Solver) and then add a reference to int in VBA editor (Tools->references->solver - see screenshot)

    Then you can use a value after each iteration.

    Look in the sample file attached. Write something different than 1 (and not zero :-)) in D7 and run macro 3 shall make solver to do some steps).

    This cell will be changed to get it's inversed value in D16 equal 1. And iterations will be listed below D16.

    Adopt similar approach to your file (As you have not attached it' I've not tried to do some calculations far right in the spreadsheet).

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Kaper; 12-28-2023 at 12:15 PM.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Re: Store GoalSeek Iterative Attempts

    Thank you for your assistance, much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Failed attempts to sum up values from middle of cell
    By dragonRiders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2020, 08:33 PM
  2. Activate a worksheet after two attempts
    By ramatthews in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2016, 07:36 AM
  3. ADD number for attempts
    By Mart Marti in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-26-2015, 06:06 AM
  4. LOGIN 3 attempts and historical sheet
    By Mart Marti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2015, 05:14 PM
  5. Adding Password Attempts
    By s45yth in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-14-2011, 02:45 PM
  6. Count Unprotect Sheet Attempts
    By mstuj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2010, 10:00 AM
  7. avg # attempts before failure
    By illinigator in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-25-2009, 04:46 PM

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