Please support us!

LET

Assigns names to calculation results. This allows storing intermediate calculations, values, or defining names inside a formula. These names only apply within the scope of the LET function.

ཚུག་སྦྱོར།

=LET(Name1; Name_value1; Calculation_or_Name2 [; Name_value2; Calculation_or_Name3 [; ...]])

Name1: the first name to assign. Must start with a letter. Cannot be the output of a formula or conflict with range syntax.

དྲན་འཛིན་ངོས་དཔར།

Name_value1: the value or calculation to assign to Name1.

Name2; Name_value2;...: (optional) same as Name1 and Name_value1, respectively. Name_value2 must follow Name2 and so on.

Calculation: a formula expression that uses all names within the LET function.

དྲན་འཛིན་ངོས་དཔར།

Calculation must be the last argument in the LET function.


དཔེར་བརྗོད་ཚུ།

Suppose we have a extensive calculation such as

x = cos ( π × e ( α + 35 ) 180 ) x = func cos left ( {{ %pi times func e^(%alpha + 35) } over 180} right )

=COS(PI()*EXP(A1+35)/180)

and we want to compute

y = x ³ + x ² + x + 1 y=x³ + x² + x + 1

The formula for y would be =COS(PI()*EXP(A1+35)/180)^3 + COS(PI()*EXP(A1+35)/180)^2 + COS(PI()*EXP(A1+35)/180) + 1

Using the LET function, it becomes =LET(x,COS(PI()*EXP(A1+35)/180),x^3+x^2+x+1)

Technical information

ཊི་ཨའི་པི་ངོས་དཔར།

This function is available since LibreOfficeDev 24.8.


This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.4. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.LET