LAMBDA Function
Create a custom function from parameters and a calculation. parameter1 and further parameters, up to 253, name the inputs, and the last argument, calculation, is the formula that uses them. Call the function by adding its arguments in parentheses, as in LAMBDA(x,y,x*y)(3,4), which returns 12, or pass it to functions such as MAP and MAKEARRAY. A LAMBDA that is not called returns #CALC!, and a call with the wrong number of arguments returns #VALUE!.
Syntax
LAMBDA(parameter1, calculation)
Category: Logical. Minimum arguments: 1. Maximum arguments: 254.
Available for supported offline calculation.
Examples
=LAMBDA(x,x+1)(2)
The formula returns 3, the result of x+1 for x = 2.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.