RANDARRAY function - Zoho Sheet - Help Guide

RANDARRAY

Returns an array of random values in the given cell range. The minimum, maximum and type of values to be returned can also be specified.

 

Syntax

 

RANDARRAY([row]; [column]; [min]; [max]; [type])

row: Number of rows to be filled with the random array. Defaults to 1 if omitted. Eg., 3

column: Number of columns to be filled with the sequential array. Defaults to 1 if omitted. Eg., 2

min: The lowest value you want in the array. Defaults to 0 if omitted. Eg., 1

max: The highest value you want in the array. Defaults to 1 if omitted. Eg., 10

type: Logical expression that specifies the type of value to return. Defaults to FALSE if omitted.

If TRUE, the function returns whole numbers.

If FALSE, the function returns decimal numbers.

 

Remarks

  • The result values will change every time a function is recalculated.


Examples

 

Formula

=RANDARRAY(3;2;1;10)

=RANDARRAY(2;3;1;50;TRUE)

=RANDARRAY(1;3;-1;1)


Get a hands-on experience of the function in the embedded range below.   



Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

 

Similar Functions