1. Home
  2. Functions
  3. Logical
  4. LAMBDA

LAMBDA function

Creates a reusable function with parameters. Call it right away, store it in a name or pass it to MAP, REDUCE and friends.

Syntax

=LAMBDA(parameter1, [calculation], ...)

Arguments

ArgumentRequiredDescription
parameter1RequiredA parameter name
calculationOptionalThe calculation (last argument)

How to use LAMBDA

LAMBDA takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =LAMBDA( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=LAMBDA(x, x*2)(4)Result 8
=LAMBDA(a, b, a+b)(2, 3)Result 5

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.