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 :
Example :
=MAKEARRAY(D2,E2,LAMBDA(row,col,CHOOSE(RANDBETWEEN(1,3),”Red”,”Blue”,”Green”)))
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.
Ask Your Query