Google Sheets LET function

Names parts of a formula so calculations are not repeated. It has the same name in Spanish Sheets.

Syntax

English Sheets

=LET(name1, value_expression1, formula_expression)

Spanish Sheets (Mexico locale)

=LET(nombre1, expresión_valor1, expresión_fórmula)

Spanish Sheets (Spain, Latin America)

=LET(nombre1; expresión_valor1; expresión_fórmula)

ArgumentWhat it is
name1A name, without quotes.
value_expression1Its value.
formula_expressionThe final calculation, which can use the names.

Example

LET(name, value, …, calculation) names parts of a formula, so you do not repeat the same calculation and the formula reads like a sentence. The last argument is the result.

=LET(VENTA,B2,IF(VENTA>50000,VENTA*0.05,VENTA*0.02))

Common mistake

A name cannot look like a cell (such as A1 or X2): use words like sale or total.

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 LET

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

LET

LET(name, value, …, calculation) names parts of a formula, so you do not repeat the same calculation and the formula reads like a sentence. The last argument is the result.

Example=LET(VENTA,B2,IF(VENTA>50000,VENTA*0.05,VENTA*0.02))LET

In C2, calculate the commission: 5% if the sale is over 50000, 2% otherwise. Use LET to name the sale.

C2
ABCD
1SalespersonSalesCommission
2Carmen48200
3Jorge35900
4Lucía61750
5Andrés29400
6Paola52300
7Ricardo44100
8Elena38650
9Mateo57900
10

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is LET called in Spanish?
It has the same name: LET. Functions that started in Google Sheets keep their English name even in a Spanish spreadsheet. What changes is the separator: Spain and much of Latin America separate arguments with semicolons.
Why does LET use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common LET mistake?
A name cannot look like a cell (such as A1 or X2): use words like sale or total.