How to Stop RAND Formula Values from Changing in Excel
Question details
The user needs to prevent random numbers generated by the RAND formula from continuously recalculating and changing during subsequent data entry.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Using the RAND or RANDBETWEEN formulas to generate a set of random numbers, but needing them to remain fixed for reliable data analysis or formatting.
- Observed behavior
- The generated random values change automatically every time new data is entered into any cell or whenever the workbook recalculates.
Before proceeding, ensure you have generated the exact set of random numbers you need, as replacing formulas with static values is irreversible without retyping the function.
Convert RAND Formulas to Static Values
The most reliable way to lock random numbers is by replacing the volatile formula with the generated static values.
This method completely removes the formula from the cells and leaves only the calculated numbers behind. It is best used when you no longer need new random numbers generated.
Highlight the range of cells that contain the RAND or RANDBETWEEN formulas.
Press Ctrl + C on your keyboard, or right-click the selected cells and choose Copy.
Right-click on the same highlighted area, hover over Paste Special, and select Values (often represented by a clipboard icon with '123'). This replaces the formulas with static numbers.

Change Workbook Calculation Settings to Manual
Adjust your workbook settings to manual calculation so the RAND formula only updates when you explicitly command it to.
Easily Manage Formulas and Static Data in WPS Spreadsheet
WPS Spreadsheet provides a highly compatible and intuitive environment to manage complex or volatile formulas like RAND. Easily convert formulas to static values or toggle calculation modes with a familiar, user-friendly interface.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your RAND formulas.
- 2. Copy the formula cells: Highlight the cells generating the random numbers and press Ctrl+C to copy them.
- 3. Paste as Value: Right-click the highlighted area and select 'Paste as Value' from the context menu to instantly lock in the numbers.

Frequently Asked Questions
Why does the RAND formula keep changing automatically?
The RAND and RANDBETWEEN formulas are known as 'volatile' functions. This means they are designed by default to recalculate and generate a new result every time any change is made or data is entered anywhere in the active workbook.
Does Paste Special as Values work for RANDBETWEEN as well?
Yes, copying the cells and pasting them as values works perfectly for both RAND and RANDBETWEEN functions, permanently locking in the currently displayed numbers and removing the underlying formula.
How do I recalculate manually after changing the calculation setting?
If you have set your workbook calculation mode to Manual, you can force the spreadsheet to recalculate all formulas (including generating new random numbers) by pressing the F9 key on your keyboard.




