0
0
Excelspreadsheet~20 mins

LAMBDA for custom functions in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
LAMBDA Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
1:30remaining
Output of a simple LAMBDA function
What is the output of this formula when entered in a cell?

=LAMBDA(x, x*3)(5)
Excel
=LAMBDA(x, x*3)(5)
A8
B5
C15
DError
Attempts:
2 left
💡 Hint
Think about what the LAMBDA function does with the input 5 and the formula x*3.
Function Choice
intermediate
1:30remaining
Choose the correct LAMBDA to calculate area of a rectangle
Which LAMBDA formula correctly calculates the area of a rectangle given length and width?
A=LAMBDA(length, width, length+width)
B=LAMBDA(length, width, length/width)
C=LAMBDA(length, width, length-width)
D=LAMBDA(length, width, length*width)
Attempts:
2 left
💡 Hint
Area of a rectangle is length multiplied by width.
🎯 Scenario
advanced
2:00remaining
Using LAMBDA with LET to calculate discounted price
You want to create a custom function using LAMBDA and LET to calculate a discounted price.

The discount is 10% of the original price.

Which formula correctly returns the discounted price when you input the original price?
A=LAMBDA(price, LET(discount, price*0.1, price-discount))(100)
B=LAMBDA(price, LET(discount, price+0.1, price-discount))(100)
C=LAMBDA(price, LET(discount, price-0.1, price-discount))(100)
D=LAMBDA(price, LET(discount, price*0.1, price+discount))(100)
Attempts:
2 left
💡 Hint
Discount is 10% of price, so multiply price by 0.1.
📊 Formula Result
advanced
2:00remaining
Output of recursive LAMBDA function for factorial
What is the output of this formula?

=LAMBDA(n, IF(n<=1, 1, n*FACT(n-1)))(4)

Assume FACT is the name of the LAMBDA function itself (recursive call).
Excel
=LAMBDA(n, IF(n<=1, 1, n*FACT(n-1)))(4)
A24
BError
C10
D120
Attempts:
2 left
💡 Hint
Think about how Excel handles recursive LAMBDA calls and if FACT is defined.
data_analysis
expert
2:30remaining
Analyzing output of a LAMBDA function with multiple parameters
Given the formula:

=LAMBDA(a, b, c, IF(a>b, c, a+b))(3, 5, 10)

What is the output?
Excel
=LAMBDA(a, b, c, IF(a>b, c, a+b))(3, 5, 10)
A8
B10
C15
DError
Attempts:
2 left
💡 Hint
Check the condition a>b and decide which value IF returns.