Excel Function

RANDARRAY

Generates an array of random numbers with specified rows and columns.

RANDARRAY([rows], [columns], [min], [max], [whole_number])

Arguments

rows

Optional

Enter a numeric value.

columns

Optional

Enter a numeric value.

min

Optional

Specify the minimum value for generated random numbers.

max

Optional

Specify the maximum value for generated random numbers.

whole_number

Optional

TRUE returns whole numbers; FALSE or omitted returns decimals.

Practice Preview

Use RANDARRAY to return the result with these settings (Rows: 5, Columns: 2, Minimum: 1, max: 100, Whole number: TRUE).

Example Table

#
AProduct ID
BCategory
CProduct Name
DSales
2P001FoodApple1200
3P002FoodBanana980
4P003StationeryNotebook450
5P004StationeryPen300
6P005FoodGrapes1500
7P006StationeryRuler250
8

How to Use (Formula)

=RANDARRAY(5, 2, 1, 100, TRUE)

Result

50, 50 | 50, 50 | 50, 50 | 50, 50 | 50, 50

Practice This Function

RANDARRAY FAQ

How do I use RANDARRAY in Excel?

Use RANDARRAY when you want to reshape arrays dynamically. Enter Rows, Columns, Minimum in that order, then add optional arguments when needed.

Where can I practice RANDARRAY?

Use the "Start Function Practice" button to jump straight into RANDARRAY drills.

What arguments does RANDARRAY use?

The main arguments are Rows, Columns, Minimum, max, Whole number. Start with the required ones, then add optional arguments if needed.