Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Sort by Color in Excel
  • Excel Line Chart
  • Example of COUNTIFS with variable table column in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How to calculate average last N values in a table in Excel

References

  • How to retrieve first match between two ranges in Excel
  • How to use Excel FORMULATEXT function
  • How to use Excel MATCH Function
  • How to get address of named range in Excel
  • Two-column Lookup in Excel

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation whole percentage only
  • Excel Data validation don’t exceed total
  • Excel Data validation no punctuation
  • Excel Data validation date in next 30 days

RAND vs RANDBETWEEN function examples in Excel

by
Excel has two useful functions when it comes to generating random numbers.
The RAND and RANDBETWEEN function.

Rand

The RAND function generates a random decimal number between 0 and 1.

1. Select cell A1.

2. Type RAND() and press Enter. The RAND function has no arguments.

3. To generate a list of random numbers, select cell A1, click on the lower right corner of cell A1 and drag it down.

Note that cell A1 has changed. That is because random numbers change every time a cell on the sheet is calculated.

4. If you don’t want this, simply copy the random numbers and paste them as values.

5. Select cell C1 and look at the formula bar. This cell holds a value now and not the RAND function.

Randbetween

The RANDBETWEEN function generates a random whole number between two boundaries.

1. Select cell A1.

2. Type RANDBETWEEN(50,75) and press Enter.

3. If you want to generate random decimal numbers between 50 and 75, modify the RAND function as follows:

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel FALSE Function
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • How to use Excel AND Function

Date Time

  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • Calculate time difference in hours as decimal value in Excel
  • Count day of week between dates in Excel
  • Calculate days remaining in Excel
  • Add months to date in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Group times into 3 hour buckets in Excel
  • Categorize text with keywords in Excel
  • Group arbitrary text values in Excel
  • If cell contains one of many things in Excel

General

  • How to generate random number between two numbers in Excel
  • Count cells that do not contain errors in Excel
  • Freeze and Unfreeze Panes in Excel
  • How to add sequential row numbers to a set of data in Excel
  • How to calculate profit margin percentage in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning