Calculation Issues

How to Recalculate RAND Formulas Only on Demand in Excel

John WilsonJohn Wilson Oct 29, 2026 871 views

Question details

The user needs a method to control the recalculation of random number formulas, ensuring they only generate new values when specifically requested.

How to Recalculate RAND Formulas Only on Demand
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 you start

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.

Solution 1Recommended

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.

1
Open Formula Settings

Navigate to the 'Formulas' tab on the Excel ribbon.

2
Change Calculation Options

Click on 'Calculation Options' in the Calculation group, and select 'Manual' from the dropdown list.

3
Recalculate on Demand

Whenever you want to generate new random numbers, press the F9 key on your keyboard to force a recalculation.

Change Workbook Calculation Settings to Manual
Global Setting Warning: This setting applies to the entire Excel application. Remember to press F9 to update your regular calculations when working on other sheets.
Efficient Spreadsheet Solution

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. 1. Open the Workbook: Launch WPS Spreadsheet and open your document containing the random formulas.
  2. 2. Go to Formulas: Navigate to the 'Formulas' tab located on the top ribbon.
  3. 3. Adjust Calculation Settings: Click the 'Calculation Options' button and choose 'Manual' to stop automatic recalculation.
  4. 4. Update When Needed: Simply press F9 whenever you are ready to refresh your random numbers.
Fully compatible with Microsoft Excel (.xlsx) file formats and complex formulas.Easily toggle manual and automatic calculations from a user-friendly ribbon.Built-in Developer tools to run and manage VBA macros at no extra cost.Lightweight application that runs smoothly even on older devices.
microsoft office alternative - wps office

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.