Scoodood
Scoodood

Reputation: 659

Lambda function calling another lambda function in Excel?

I am trying to create an Excel lambda function that calls another lambda function. But Excel returned #VALUE! when I ran it. Does Excel support this kind of operation?

enter image description here enter image description here

enter image description here

Upvotes: 0

Views: 674

Answers (2)

Scoodood
Scoodood

Reputation: 659

I found another solution by calling the mylambda1 function within the let function as follows:

mylambda1 = lambda(a, b, a+b)
mylambda2 = lambda(a, b, let(x, a, y, b, mylambda1(x,y)))

enter image description here

Output

enter image description here

Cheers!

Upvotes: 0

Tyrendel
Tyrendel

Reputation: 36

mylambda1 takes two arguments, but in mylambda2, you are calling mylambda1 with only one: x+y.

Change mylambda2 to:

=LAMBDA(a,b,mylambda1(a,b))

No need for a LET function in this case.

Upvotes: 1

Related Questions