LET Function
Assign names to calculation results inside a formula. name1 and value1 are the first name and its value, more name and value pairs can follow, and the last argument, calculation, uses the names. A value can use the names before it, so LET(x,2,y,x*3,x+y) returns 8. A LET without a calculation returns #VALUE!.
Syntax
LET(name1, value1, calculation)
Category: Logical. Minimum arguments: 3. Maximum arguments: 255.
Available for supported offline calculation.
Examples
=LET(x,5,x*2)
The formula returns 10.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.