Excel LAMBDA function

Creates your own function with parameters, to reuse a calculation. It has the same name in Spanish Excel.

Syntax

English Excel

=LAMBDA(parameter1, calculation)

Spanish Excel (Mexico)

=LAMBDA(parámetro1, cálculo)

Spanish Excel (Spain, Latin America)

=LAMBDA(parámetro1; cálculo)

ArgumentWhat it is
parameter1A name for the value it receives, such as price.
calculationThe formula that uses the parameters; it always goes last.

Example

LAMBDA(parameter, calculation) creates your own function. MAP(range, LAMBDA(…)) applies it to every cell and returns all the results together. With LET you can name it: LET(tax, LAMBDA(p, p*1.16), tax(B2)). Excel 365 only.

=MAP(B2:B6,LAMBDA(precio,precio*(1+E2)))

Common mistake

Excel 365 only. On its own in a cell it gives #CALC!: use it inside MAP or BYROW, store it in LET, or save it in the Name Manager.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice LAMBDA

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

Your own function: LAMBDA and MAP

LAMBDA(parameter, calculation) creates your own function. MAP(range, LAMBDA(…)) applies it to every cell and returns all the results together. With LET you can name it: LET(tax, LAMBDA(p, p*1.16), tax(B2)). Excel 365 only.

Example=MAP(B2:B6,LAMBDA(precio,precio*(1+$E$2)))MAPLAMBDA

In C2, with a single formula, calculate the price with tax for every product using MAP and LAMBDA.

C2
ABCDEF
1ProductPriceWith taxTax
2Keyboard650.0016%
3Monitor3,800.00
4Mouse280.00
5Webcam1,150.00
6Speaker990.00
7

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What is LAMBDA called in Spanish?
It has the same name: LAMBDA. What changes is the separator: Spanish Excel in Spain and much of Latin America separates arguments with semicolons.
Why does LAMBDA use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common LAMBDA mistake?
Excel 365 only. On its own in a cell it gives #CALC!: use it inside MAP or BYROW, store it in LET, or save it in the Name Manager.