LAMBDA
The LAMBDA
function in Google Sheets creates and returns a custom function with a set of names and a formula expression that uses them. This powerful function allows you to calculate the formula expression by calling the returned function with as many values as the name declares. Dive into our comprehensive guide to master its application.
Function Syntax and Parameters
Syntax: LAMBDA(name, formula_expression)
Parameters:
name
: The name or names to declare for the custom function.formula_expression
: The formula or expression that defines the behavior of the custom function.
Step-by-Step Tutorial
-
Creating a basic custom function with LAMBDA:
- Example:
=LAMBDA(x, x^2)
- Result: This custom function takes a single parameter,
x
, and returns its square.
- Example:
-
Using a custom function created with LAMBDA:
- Example:
=(LAMBDA(x, x^2))(5)
- Result: This formula calculates the square of the value 5 using the custom function created with
LAMBDA
.
- Example:
Use Cases and Scenarios
- Custom Calculations: Create specialized functions for unique calculations.
- Complex Formulas: Simplify complex calculations by creating custom functions.
- Reusability: Use the custom function repeatedly in different parts of your spreadsheet.
Related Functions
- None
Related Articles
- None