RAND Function

papal singh

New Member
Joined
May 13, 2014
Messages
2
so I've got this code which uses the RAND function and it keeps on re calculating every time, is there any way I can stop this or use some other similar function?
 
The RAND function will always generate a new random number every time the workbook calculates.

I'm not sure what your needs are, but there are two ways that this could go.

1) Use the RAND function to generate a random number. Copy > Paste Special as Values to remove the formula. Use a reference to that result in your formula.

This methodology has the benefit of remaining static under workbook calculation. If you ever needed a new random number, you could use the RAND function again in that same cell, to which your larger formula has a reference.

2) Disable auto calculation.

Because no calculations are being performed, the RAND would not keep changing. If you ever wanted to calculate your workbook, you could calculate manually using F9. However, this would generate a new random number as well as calculating the rest of the formulas.

If neither of these work for you, then we would need more information about what you're trying to accomplish.
 
Upvote 0

Forum statistics

Threads
1,226,880
Messages
6,193,478
Members
453,802
Latest member
SarahNoob

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top