How to Recalculate RAND Formulas Only on Demand in Excel
Question details
The user needs a method to control the recalculation of random number formulas, ensuring they only generate new values when specifically requested.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Generating random numbers that remain static during normal spreadsheet editing and only update when explicitly triggered by the user.
- Observed behavior
- By default, volatile functions like RAND and RANDBETWEEN recalculate automatically every time any cell in the workbook is modified.
Before changing your calculation settings, keep in mind that switching to manual calculation affects the entire workbook, meaning your other standard formulas will not update automatically until you switch back or press F9.
Change Workbook Calculation Settings to Manual
Stop all volatile formulas from updating by changing Excel's calculation mode from automatic to manual.
This is the simplest way to prevent RAND formulas from constantly recalculating. It gives you full control over when the entire workbook refreshes its data.
Navigate to the 'Formulas' tab on the Excel ribbon.
Click on 'Calculation Options' in the Calculation group, and select 'Manual' from the dropdown list.
Whenever you want to generate new random numbers, press the F9 key on your keyboard to force a recalculation.

Convert RAND Formulas to Static Values
If you only need to generate random numbers once and keep them forever, convert the formulas into plain text values.
Use a VBA Macro for On-Demand Generation
Create a macro to insert random numbers and immediately convert them to values, triggered only when you click a button.
Easily Control Formula Calculations with WPS Office
WPS Spreadsheet offers full compatibility with Excel's formula engine, including volatile functions like RAND. You can easily switch between automatic and manual calculation modes to securely control when your formulas update.
- 1. Open the Workbook: Launch WPS Spreadsheet and open your document containing the random formulas.
- 2. Go to Formulas: Navigate to the 'Formulas' tab located on the top ribbon.
- 3. Adjust Calculation Settings: Click the 'Calculation Options' button and choose 'Manual' to stop automatic recalculation.
- 4. Update When Needed: Simply press F9 whenever you are ready to refresh your random numbers.

Frequently Asked Questions
Why do my random numbers keep changing in Excel?
Functions like RAND() and RANDBETWEEN() are considered 'volatile'. This means they automatically recalculate and generate a new result every time a change is made anywhere in the open workbook.
Can I stop just one specific cell from recalculating?
Excel's calculation settings apply to the entire workbook. To freeze a specific cell's random number, you must copy it and paste it as a value, or use a VBA macro to handle that specific range independently.
Is there a non-volatile random function in Excel?
No, the built-in random functions are inherently volatile. You must use workarounds like manual calculation mode, Data Analysis tools (Random Number Generation), or custom VBA scripts to achieve non-volatile random generation.
What is the keyboard shortcut to recalculate formulas manually?
You can press the F9 key to recalculate all formulas in all open workbooks when your calculation mode is set to Manual. Using Shift+F9 will recalculate only the active worksheet.




