Excel LAMBDA Recursion + a Trick for Evaluating in a Cell

Excel LAMBDA Recursion + a Trick for Evaluating in a Cell

MyOnlineTrainingHub

3 года назад

21,420 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@samaruti9446
@samaruti9446 - 29.11.2023 00:29

Mynda, you have a great way of taking something complex and making it simple to understand, Can you please do the same with the ME parameter?

Ответить
@guranslifes
@guranslifes - 15.10.2023 14:41

you are the best 'teacher', Mynda, out of all MVPs

Ответить
@kltzy
@kltzy - 27.03.2023 15:32

Wasn't familiar with the ME functionality. Thanks Mynda, a good push in the right direction.

Ответить
@beegdigit9811
@beegdigit9811 - 23.01.2023 12:17

Excel has become a functional programming language lol

Ответить
@sktneer
@sktneer - 15.01.2023 20:47

Another way to do this is as below...

Assuming the number is in A2, then to find the factorial of the number in A2, we may use the following formula directly in the cell.
In B2
=REDUCE(1,SEQUENCE(A2),LAMBDA(n,r,n*r))

Ответить
@George-lp3qb
@George-lp3qb - 20.12.2022 08:22

Also they need to come up with a solution for the argument IntelliSense, otherwise, in my opinion, VBA UDF is still better especially that it is application level

Ответить
@sunnybaggu785
@sunnybaggu785 - 09.10.2022 13:05

Your explanations, presentation and instructions are very good and interesting. Thank you for sharing excel tips this way. IAM sure many people like get to learn from your videos. Thank you..

Ответить
@GeertDelmulle
@GeertDelmulle - 19.06.2021 12:46

That ME parameter must be something special, because defining recursive LAMBDAs as a local variable in LET normally doesn't work in my experience.
Good to know. Thanks.

Ответить
@johannes3020
@johannes3020 - 10.03.2021 15:28

Hello, I have a problem: I'm trying to make a stock price chart show the points at which I've purchased the stock. Would you know how to do this? My attempts fail since the dynamic arrays conflict with each other. Thanks if you'll devote some time to helping.

Ответить
@RR-fv2uu
@RR-fv2uu - 10.03.2021 12:56

can u help me

Ответить
@wayneedmondson1065
@wayneedmondson1065 - 09.03.2021 05:49

Hi Mynda. Thanks for this example of using LAMBDA. It feels a bit awkward compared to VBA. Hoping the interface and execution improves soon. Always great learning and fun at MyOnlineTrainingHub :)) Thanks for sharing and Thumbs up!!

Ответить
@asgharhussain7205
@asgharhussain7205 - 07.03.2021 18:02

Hi, in my excel workbook I have 200+ sheets & sheet names defined.
Every sheet contains data like student name father name address and mob no.s
if I enter sheet name I should get all the data in that particular sheet

Ответить
@rudiklein
@rudiklein - 07.03.2021 01:01

🤯 I shouldn't be watching these kind of videos before going to sleep.

Ответить
@micheleradogna4921
@micheleradogna4921 - 07.03.2021 00:28

Can i use factorial for obtain a list? For example, if i want a list with all the number, between 5 and 1(4,3,2,1). Once for a Row.
5
4
3
2
1

Ответить
@DougHExcel
@DougHExcel - 05.03.2021 23:49

Great example! LAMBA could replace some VBA scripting so it's good to know

Ответить
@realpulsecoin
@realpulsecoin - 04.03.2021 19:33

Great content!

Ответить
@mohammedahmed8295
@mohammedahmed8295 - 04.03.2021 19:23

Appreciate your efforts

Ответить
@ivancortinas5427
@ivancortinas5427 - 04.03.2021 19:12

Thank you for this tutorial Mynda. I am already waiting this function in my Excel 365. That's a very powerful function!

Ответить
@darrylmorgan
@darrylmorgan - 04.03.2021 12:53

Hi Mynda!Great Tutorial.Very Interesting Plus Nice And Easy To Understand...Thank You :)

Ответить
@JoseAntonioMorato
@JoseAntonioMorato - 04.03.2021 11:04

I really liked the explanation of the possibility of testing the recursive LAMBDA using the LET function 👍, but this is not very simple to use. 🤔
I inform you that the download file link was missing. 😊

Ответить
@abdelkrimmesaiahmed662
@abdelkrimmesaiahmed662 - 04.03.2021 10:29

Mynda there is no link to download the excel file

Ответить
@abdelkrimmesaiahmed662
@abdelkrimmesaiahmed662 - 04.03.2021 10:20

Thank you for this amazing video

Ответить
@TheEXCELGURU
@TheEXCELGURU - 04.03.2021 10:03

Hi there, i don't see the download link

Ответить
@drsteele4749
@drsteele4749 - 04.03.2021 09:27

Does the fact you're using LAMBDA cause your cursor to jump down one cell after every entry, forcing you to move it up every time?

Ответить
@chrism9037
@chrism9037 - 04.03.2021 04:01

Wow. Time for an Advil, Mynda!

Ответить
@ricos1497
@ricos1497 - 04.03.2021 03:19

Nice, I like the use of ME, I might try that. The bit I struggle with is how to bail on complex recursive functions, maybe where you've added a counter or whatever. Even in your example, it's not completely obvious how returning 1 in the IF() statement actually causes the function to return 120 (and not 1). That's the bit I struggle with when writing out recursion with more than one parameter, and when let gets involved and so on. I've actually written a couple where I added in another cntr variable, and a text variable that passed back the "state" of variables in the LET function and the counter, so I could effectively see which loop the thing broke on!

Ответить
@patrickschardt7724
@patrickschardt7724 - 04.03.2021 02:50

Keeping track of the exit strategy and testing recursion are very hard. Great stuff

Ответить
@gheorghebidiac2975
@gheorghebidiac2975 - 04.03.2021 02:19

As you said: "mind bending"! :D

Ответить