MAP function - Zoho Sheet - Help Guide
MAP
Applies a custom LAMBDA function to each value in the given array and returns an array with the result values.
Syntax
M
AP(
array
;
lambda_or_array1
; [
lambda1_or_array2
]...)
a
rray
: The cell range containing the values given as input. Eg., A2:A8
lambda
: The function to be applied to each value in the given array. Must be the last argument and must contain a parameter for each given array.
Examples
Formula
=MAP(A2:A8;LAMBDA(a;a+1))
=MAP(A2:A8;C2:C8;LAMBDA(a;b;a+b))
=MAP(A2:A8;B2:B8;C2:C8;LAMBDA(a;b;c;a*b+c))
Get a hands-on experience of the function in the embedded range below.
Possible Errors
Errors
Meaning
#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.
The given LAMBDA function is invalid or has incorrect number of parameters.
#REF!
The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.
#NUM!
The given array is too large.
Similar Functions
BYCOL
BYROW
ISOMITTED
MAKEARRAY
REDUCE
SCAN