RANDARRAY Function in Excel: A Whole Grid of Random Numbers

⏱ 1 min readUpdated 28 September 2026

Dynamic ArrayLevel: IntermediateAvailable in: Excel 365 / 2021+

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

RANDARRAY returns an array of random numbers, optionally whole numbers between limits — instant test data.

Syntax

=RANDARRAY([rows], [columns], [min], [max], [whole_number])
Argument What it means
whole_number TRUE for integers.

Examples

Example 1

=RANDARRAY(100, 1, 1000, 50000, TRUE)

100 random amounts.

Example 2

=SORTBY(A2:A50, RANDARRAY(49))

Shuffle a list, e.g. for a random draw.

RAND · RANDBETWEEN · 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