logo
search
Calculation Issues

How to Stop RAND Formula Values from Changing in Excel

Chanuka GeekiyanageChanuka Geekiyanage Oct 1, 2026 868 views

Question details

The user needs to prevent random numbers generated by the RAND formula from continuously recalculating and changing during subsequent data entry.

How to Stop RAND Formula Values from Changing in Excel
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 you start

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.

Solution 1Recommended

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.

1
Select the RAND cells

Highlight the range of cells that contain the RAND or RANDBETWEEN formulas.

2
Copy the cells

Press Ctrl + C on your keyboard, or right-click the selected cells and choose Copy.

3
Paste as values

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.

Convert RAND Formulas to Static Values
Values Locked: Your random numbers are now permanently fixed and will not change when you enter new data.
Seamless Spreadsheet Management

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. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your RAND formulas.
  2. 2. Copy the formula cells: Highlight the cells generating the random numbers and press Ctrl+C to copy them.
  3. 3. Paste as Value: Right-click the highlighted area and select 'Paste as Value' from the context menu to instantly lock in the numbers.
100% compatible with Microsoft Excel formulas and functions (.xlsx)Quick right-click 'Paste as Value' shortcut for rapid data lockingLightweight application that runs smoothly on older devicesFree to download and use with a familiar ribbon interface
microsoft office alternative - wps office

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.