
Dynamic ArrayLevel: IntermediateAvailable in: Excel 365 / 2021+
In this article
- Syntax
- Examples
- Example 1
- Example 2
- 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 articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong