Fresh Excel Tips

Quick and Easy Excel Tips and Tutorials

How to Use the RAND function to generate random values in Excel

To generate randomized values Excel provides the RAND function. This function returns a random number greater than or equal to 0 and less than 1. Each time the worksheet is calculated, a new random number is generated. This example generates randomized integer values from 1 to 999 in cells A2:D10 and then replaces the formulas with calculated values.

How to generate integer random values:

  1. Select cells A2:D10 and type the following formula: =INT(RAND()*1000).
  2. Press Ctrl+Enter.
  3. Press Ctrl+C to copy the filled cells.
  4. From the Edit menu, select Paste Special.
  5. In the Paste Special dialog box, select Values under Paste to paste only the values.
  6. Click OK.
  7. Press F9 to recalculate the worksheet.

How to Use the RAND function to generate random values in Excel

This tip is compatible with Excel 97, 2000, 2003 and 2007.

How to Use the RAND function to generate random values in Excel
  1. Use the RANDBETWEEN function to generate random values in a specified range
  2. Convert negative values to positive using Excel
  3. How to use a Validation List in Excel to Validate Entries
  4. How to Check Formulas for Errors in Excel 2007
  5. How to Utilize Data Entry Rules to Validate data in Excel 2007

Leave a Reply