Hi Team,
Can you help me understanding how "r" came in to existence in LAMBDA function in below post #9 by TMS
How it works and what calculation assigned to "r"
https://www.excelforum.com/excel-for...a-instead.html
Hi Team,
Can you help me understanding how "r" came in to existence in LAMBDA function in below post #9 by TMS
How it works and what calculation assigned to "r"
https://www.excelforum.com/excel-for...a-instead.html
Last edited by alidurfani; 07-11-2024 at 10:08 AM.
The formula is this:
=LET(b,B8:B190,c,C8:C190,u,UNIQUE(b),HSTACK(u,BYROW(u,LAMBDA(r,SUMPRODUCT((b=r)*(c))))))
r is a parameter - it refers back to the parameter u, which is UNIQUE(B8:B190) and returns one row of that at a time.
If you are using LAMBDA, then your forum profile is out-of-date - please update it.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Hi Ali,
Thanks for the explanation, but how "r" refers to "u" (UNIQUE) and not "b,B8:B190", what triggers "r" to refere "u" only?
The syntax is this:
BYROW(array,LAMBDA(parameter_for_array,calculation))
On this occasion, r is often used as it reminds us that the array will be called ROW by ROW, but you could use any letter that hasn't already been used as a parameter and that will be referenced in the LAMBDA caclulation.
It will become apparent the more that you use it yourself.
Your profile shoul show ONLY the OLDEST version of Excel that any solution offered to you must work for. Thanks.
Thank you very much again for the explanation, I will play around it to get more understanding on this.
By the way I have updated my profile but don't know if it is shown to everyone or not.
It does, but there are still TWO versions there - see the last line of my previous post and update it again, please.
Glad to have helped.
If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.
Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
Updated profile and marked as solved.
Thank you.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks