Skip to content
Excel

RAND function in Excel

Returns a random number between 0 and 1

=RAND()

RAND examples

Formulas you'll actually reuse.

  1. A random decimal from 0 up to 1 — recalculates on every edit:

    =RAND()
  2. Pick roughly 10% of rows for a spot check (paste as values to freeze them):

    =IF(RAND() < 0.1, "Audit", "")

RAND in Google Sheets

Same name — your formula ports as-is.

Try RAND in the playground

Edit the example — nothing to install.

Preloaded with the RAND formula from Example 1 — change anything and watch it respond.

Loading the editor…