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

LET function

Names the results of calculations so a formula can reuse them.

Syntax

=LET(name1, value1, calculation, ...)

Arguments

ArgumentRequiredDescription
name1RequiredA name for the first value
value1RequiredThe value
calculationRequiredThe final calculation that uses the names

How to use LET

LET takes 3 required arguments, and accepts more values in the same pattern. Type =LET( 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.

=LET(x, 5, y, 2, x*y)Result 10
=LET(x, 3, x^2+1)Result 10

Every formula, right in your browser

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