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

Data Analysis

  • Error Bars in Excel
  • Get column index in Excel Table
  • How to Create One and Two Variable Data Tables in Excel
  • Excel Bar Chart
  • How to create Gauge Chart in Excel

References

  • How to get last column number in range in Excel
  • How to reference named range different sheet in Excel
  • How to get relative column numbers in a range in Excel
  • Extract all partial matches in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation with conditional list
  • Prevent invalid data entering in specific cells
  • Excel Data validation unique values only
  • Excel Data validation date in next 30 days
  • Excel Data validation number multiple 100

How to generate random number between two numbers in Excel

by

To generate random integers between two numbers, you can use the RANDBETWEEN function.

Formula

=RANDBETWEEN(lower,upper)

Explanation

In the example shown, the formula in B5 is:

=RANDBETWEEN(1,100)

This formula is then copied down from B5 to B11. The result is random numbers between 1-100.

Note that the RANDBETWEEN function will generate new numbers whenever a change is triggered on the worksheet. That includes any edits to the worksheet, also also simply opening the workbook.

To prevent random numbers from being calculated again, copy the formulas, then use Paste Special > Values to replace the formulas with their calculated values.

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

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

  • SWITCH function example in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • How to use Excel OR Function
  • Invoice status with nested if in Excel

Date Time

  • Basic Overtime Calculation Formula in Excel
  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Count dates in current month in Excel
  • How to get workdays between dates in Excel
  • DAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Map text to numbers in Excel
  • If cell contains one of many things in Excel
  • How to randomly assign data to groups in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign people to groups in Excel

General

  • How to get random value from list or table in Excel
  • Check if multiple cells have same value in Excel
  • Subtotal invoices by age in Excel
  • Hide and Unhide Columns or Rows in Excel
  • How to calculate percent sold in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning