Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I am making facotring practice for my students and want to use the
randbetween but do not want it to recalculate everytime. |
#2
![]() |
|||
|
|||
![]()
Couple options:
1) You can turn automatic calculation off in your workbook so every time you want the rand function to re-calculate you have to hit the F9 key... Tools-Options-'Calculation' Tab-Check 'Manual' 2) You can set up a UDF, something like: Function rand2() rand2 = Rnd End Function 3) When you enter the randbetween() function instead of commiting it by pressing "Enter" commit by pressing F9 -- Regards, Dave <!-- "jwomack" wrote: I am making facotring practice for my students and want to use the randbetween but do not want it to recalculate everytime. |
#3
![]() |
|||
|
|||
![]()
Formulas recalculate. Try selecting the cells and run a little random number
writing macro instead, something like: Sub RandNums() Dim L As Long Dim H As Long Dim Cel As Range L = 10 'min H = 50 'max Randomize For Each Cel In Selection Cel.Value = L + Int(Rnd * (H - L + 1)) Next End Sub HTH. Best wishes Harald "jwomack" skrev i melding ... I am making facotring practice for my students and want to use the randbetween but do not want it to recalculate everytime. |
#4
![]() |
|||
|
|||
![]()
Hello,
instead of using =randbetween(LOW,HIGH) you could use =uniqrandint(HIGH-LOW+1,FALSE)+LOW-1 entered normally (no array-formula). See www.sulprobil.com for my UDF uniqrandint(). The second parameter (FALSE) tells my function to be non-volatile, that means: do not recalculate with each F9. HTH, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help with sumif to calculate column | Excel Discussion (Misc queries) | |||
How can I calculate Vacation Time earned based on length of emplo. | Excel Discussion (Misc queries) | |||
formula to calculate # of days between dates, excluding holidays | Excel Discussion (Misc queries) | |||
Not able to calculate. | Excel Worksheet Functions | |||
How do you calculate the nth root of a number in Excel 2003? | Excel Worksheet Functions |