Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have developed a formula to generate a random number between 0 and 1, (RAND
()). I take the product and apply some additional calculations. At a later step, (step 4) I want the program to automatically regenerate a new random number if a condition has not been met, (in my case, if W is 1). Nothing I try seems to work. I always get hung up on the automatic part. Any ideas? Thank you very much. |
#2
![]() |
|||
|
|||
![]()
What is "step 4" referring to. Is "the program" a VBA program? If so,
something like this should work: Assume cell A1 contains the random reference, and you get your W value from cell A2. Do Until W 1 Range("A1").Calculate W = Range("A2").Value Loop In article , "Regi" wrote: I have developed a formula to generate a random number between 0 and 1, (RAND ()). I take the product and apply some additional calculations. At a later step, (step 4) I want the program to automatically regenerate a new random number if a condition has not been met, (in my case, if W is 1). Nothing I try seems to work. I always get hung up on the automatic part. Any ideas? Thank you very much. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula to have each new invoice automatically have the next numb | Excel Discussion (Misc queries) | |||
How can I write an if-then formula for 0 or less than 0 in cell t. | Excel Worksheet Functions | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions | |||
How do I write a formula to subtract a # from a total ONLY if the. | Excel Worksheet Functions | |||
write a formula to sum cells on different pages of the same workb. | Excel Worksheet Functions |