RAND Function in Excel: Random Decimal Between 0 and 1

⏱ 1 min readUpdated 28 September 2026

MathLevel: BeginnerAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Related functions

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

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.

RANDBETWEEN · RANDARRAY · SORTBY

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

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

Free · AI can be wrong