Results 1 to 4 of 4

how to count iterations from the last calculate event

Threaded View

  1. #1
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,595

    how to count iterations from the last calculate event

    I put together a simple spreadsheet that uses successive approximations to solve quadratic equations to illustrate what I am trying to do (something I picked up in an analytical chemistry class). I have a few spreadsheets where I use successive approximations in circular references (iteration enabled) to solve some equations, and the spreadsheet works very well. The only thing I wish I had was a way to tell how many iterations were used during the last calculate event to obtain the results.

    When my computer was slower, I could watch the status bar while it counted off iterations, and I could get a rough idea of how many iterations it took, but now, my computer is so fast, I can see the status bar flicker, but I cannot tell if it took 10 or 100 iterations (my usual maxiteration setting). The goal would be to know if Excel terminated calculation because it reached maxiteration or if it determined that the spreadsheet had converged in fewer iterations.

    Does anyone have any ideas for capturing the number of iterations from a calculate event?
    Attached Files Attached Files
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] change event AND calculate event on the same sheet
    By lauriejerome in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2013, 03:54 PM
  2. Replies: 4
    Last Post: 11-07-2012, 04:02 PM
  3. Replies: 5
    Last Post: 06-23-2005, 06:05 PM
  4. Change event and calculate event
    By Antje in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2005, 04:06 PM
  5. AFTER Calculate Event
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-16-2005, 04:06 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