EXCEL MAKEARRAY FUNCTION

When called with a LAMBDA, this method produces a calculated array with the supplied row and column sizes.

Syntax :

=MAKEARRAY(rows, cols, lambda(row, col))

Parameters :

  • rows – The array’s number of rows. It is much more than just zero.
  • cols – The array’s number of columns. It must be more than zero.
  • lambda – A LAMBDA used to construct the array. The LAMBDA takes into account two factors:
  • row – The array’s row index
  • col – The array’s column index.

Step By Step Guide of MAKEARRAY Function

Example :

=MAKEARRAY(D2,E2,LAMBDA(row,col,CHOOSE(RANDBETWEEN(1,3),”Red”,”Blue”,”Green”)))

Makearray Function
  • Providing an incorrect LAMBDA function or the incorrect number of parameters results in a #VALUE! “Incorrect Parameters” is a mistake.

  • Setting a row or col parameter to 1 or a non-number causes a #VALUE! error.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now