RAND Function in Excel: Random Decimal Between 0 and 1

RAND Function in Excel: Random Decimal Between 0 and 1 featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 12 October 2026

MathLevel: BeginnerAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. RAND in practice
  6. Where you will use it
  7. Worked example
  8. Mistakes people make
  9. Related functions
  10. Continue learning

RAND returns a new random number between 0 and 1 on every recalculation β€” useful for random samples and shuffling.

Advertisement

Syntax

=RAND()

Examples

Example 1

=RAND()

Put next to a list, then sort by it to shuffle the list.

Example 2

=IF(RAND()<10%, "Audit", "")

Randomly pick about 10% of invoices for checking.

RAND in practice

Where you will use it

  • Random sample of rows for audits
  • Shuffle a list (sort by a RAND column)
  • Simulations

Worked example

UseFormulaResult
Random decimal 0-1=RAND()(changes every recalculation)
Random sample flag (10%)=RAND()(changes every recalculation)

Results calculated in Excel. RAND changes on every recalculation.

Mistakes people make

MistakeWhat to do instead
Results keep changingCopy and Paste Values once you have your sample
Using it for securityNot suitable for passwords or security

RANDBETWEEN Β· RANDARRAY Β· SORTBY

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Math & rounding24 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong

Leave a Reply

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