Ravindra BagaleCourses & study guides Track your progress

Excel RANDBETWEEN Function

Chala mitrano — today RANDBETWEEN. Random whole number from low to high — great for sample roll numbers.

Fictional sample data for learning. Sample IDs in Mysuru drills and Denver workshops. Mixed practice ₹ tags.

Purpose

Return a random integer between bottom and top inclusive. Recalculates often.

Return value

A random integer in [bottom, top].

Syntax

RANDBETWEEN(bottom, top)

Arguments

ArgumentRequired?Description
bottomRequiredLowest integer allowed.
topRequiredHighest integer allowed (≥ bottom).

Version

Excel 2007+ (earlier via Analysis ToolPak). LibreOffice RANDBETWEEN too. Volatile.

How to use — Why → What → How

Why: Teachers pick random roll numbers. RANDBETWEEN does it; freeze before printing the quiz. Sample IDs in Mysuru drills and Denver workshops. Mixed practice ₹ tags. In Indian back offices and foreign sister teams, RANDBETWEEN shows up on totals, rates and pack sheets every week.

What: RANDBETWEEN returns a volatile random integer from bottom through top inclusive. Read every argument in the table once before you type; each one changes the answer on purpose.

How — numbered steps:

  1. Type =RANDBETWEEN(1,50).
  2. Ensure top ≥ bottom.
  3. Paste Values before publishing.

Ravindra Bagale's Tip

Friends, after RANDBETWEEN, find one column or range in a real workbook this week where this lesson saves time.

Ravindra Bagale's Tip

Friends, sleep on RANDBETWEEN; rebuild example 1 tomorrow without looking.

Ravindra Bagale's Tip

Friends, say the business question in plain words before =RANDBETWEEN.

Ravindra Bagale's Tip

Friends, check a known case with a calculator before you trust a long RANDBETWEEN chain.

Ravindra Bagale's Tip

Friends, after you finish RANDBETWEEN, open yesterday’s real workbook and find one place this function would have saved ten minutes.

Ravindra Bagale's Tip

Friends, treat RANDBETWEEN like a seatbelt on number columns — check a known case first.

Download practice file: practice-randbetween.xlsx (includes sheet About this data, practice sheets, and Answers).

Worked examples

1) Dice

Mysuru.

X
x
Formula: =RANDBETWEEN(1,6)

Result: (1–6)

What it means: Fair six-sided die.

2) Roll 1–40

Class list.

X
x
Formula: =RANDBETWEEN(1,40)

Result: (1–40)

What it means: Sample student.

3) Denver $ tag

Play prices.

X
x
Formula: =RANDBETWEEN(5,15)

Result: (5–15)

What it means: Random $ tag for a drill.

4) Same bounds

Only 7.

X
x
Formula: =RANDBETWEEN(7,7)

Result: 7

What it means: Always 7.

5) Freeze

Print quiz.

X
x
Formula: =RANDBETWEEN(1,10)

Result: (then Paste Values)

What it means: Stop changing before print.

6) vs RAND

Integers vs decimals.

X
x
Formula: =RANDBETWEEN(0,1)

Result: (0 or 1)

What it means: Coin as integer; RAND is decimal.

About this data. Small demo rows for learning. Real sheets are longer; the same formula pattern scales when columns are clean.

Common errors and fixes

#NUM! — bottom > top. Fix: Swap bounds.
Changes often — Volatile. Fix: Paste Values.
#VALUE! — Non-integer coerced oddly. Fix: Use whole numbers.

Notes and tips

  • Revisit the RANDBETWEEN errors table after the quiz.
  • Build example 1 from memory on a blank sheet.
  • Check number vs text if a result looks wrong.
  • Teach one tip in Marathi or Hindi this week.
  • Keep currency symbols consistent inside one report column (practice mixes ₹ $ £ €).
  • Drill: random roll picker, then Paste Values before sharing.
  • RANDBETWEEN vs RAND: inclusive integers versus [0,1) decimals.
  • Fictional sample data only — names and amounts are for learning.
  • Print the RANDBETWEEN revision card for one week of real worksheets.
  • Ask juniors to predict before they press Enter.
  • Track your top mistake with this function monthly.
  • Sample IDs in Mysuru drills and Denver workshops. Mixed practice ₹ tags.
  • Interview tip: explain the business question before the formula.
  • Classroom drill: invent three brand-new formulas from your city without the page open.
  • If a result looks wrong, check blanks vs zeros before rewriting.
  • When Excel versions differ, note the LibreOffice / Sheets fallback in a cell comment.
  • Prefer clear ranges over whole-column refs on huge sheets if speed matters.
  • Document units (₹, kg, days) in the header so totals stay honest.
  • Print the revision card for RANDBETWEEN for one week of real worksheets.
  • When helping a junior, ask them to predict before Enter.
  • Share one tip with a classmate in Marathi or Hindi.
  • Keep currency symbols consistent inside a single report column.
  • Interview tip: explain the business question before the formula.
  • If a result looks wrong, check blanks vs zeros before rewriting maths.
  • When Excel versions differ, write a LibreOffice fallback under a comment.

In real work

Drill: random roll picker, then Paste Values before sharing. Sample IDs in Mysuru drills and Denver workshops. Mixed practice ₹ tags. Classroom drill: write three brand-new RANDBETWEEN formulas on a blank sheet using names from your own city — if you can invent them without the page open, you own the skill. Then break one formula on purpose and watch the error; recovering from that break is half of interview readiness. Always verify with a known case before trusting a long chain. Keep a personal notebook of the one mistake you make most often with this function; review it monthly.

How it compares

RANDBETWEEN vs RAND: inclusive integers versus [0,1) decimals.

Interview corner

Inclusive?
Yes.
#NUM!?
bottom > top.
vs RAND?
Integer vs decimal.

RAND, RANDARRAY, ROUND

Practice tasks (10)

  1. Task 1. Die 1–6.
    Dice.
  2. Task 2. Roll 1–40.
    Class.
  3. Task 3. Same bounds 7.
    7.
  4. Task 4. Explain volatile.
    Interview.
  5. Task 5. Paste Values.
    Freeze.
  6. Task 6. Fill sample IDs.
    Fill.
  7. Task 7. Doc.
    Note.
  8. Task 8. Teach.
    Teach.
  9. Task 9. Compare RAND.
    Related.
  10. Task 10. Guard bottom≤top.
    Order.

Quick quiz

Q1. RANDBETWEEN(1,6) for?
Q2. Inclusive?
Q3. bottom > top?
Q4. Freeze?
Q5. Decimal cousin?

Answers: Q1=Die, Q2=Yes both ends, Q3=#NUM!, Q4=Paste Values, Q5=RAND (check after you try).

Revision card

Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.

Revision card: RANDBETWEEN
RANDBETWEEN revision card