+ Reply to Thread
Results 1 to 2 of 2

Have a cell remember its previously calculated value?

  1. #1
    Registered User
    Join Date
    08-25-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Have a cell remember its previously calculated value?

    Is there a way to "trick" a formula out of its volatility and hold a value from a previous calculation?

    For example

    CELL A1 = RAND Value Between 1 and 10 (or whatever)
    CELL B1 = Dropdown menu: "Randomize" and "Freeze"

    A1 formula would do something like:
    IF(B1="Freeze",["Formula to Maintain Currently Displayed Value"],[RAND(etc..))

    I've been experiminting with using INDIRECT with the term RAND in order to turn the RAND on and off in a formula with a dropdown box, but this only stops it from calculating, it does not hold its previously randomized value.

    I'm guessing pretty soon I'm going to have to bite the bullet and start figuring out VB... But if there's a clever way to do this with formulas I'd love to hear it.

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Have a cell remember its previously calculated value?

    There's no formula that will pause your calculations but you could change your options to manual calculation (F9 will calculate).
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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