+ Reply to Thread
Results 1 to 8 of 8

Help understand LAMBDA function

Hybrid View

alidurfani Help understand LAMBDA... 07-11-2024, 08:17 AM
AliGW Re: Help understand LAMBDA... 07-11-2024, 08:21 AM
alidurfani Re: Help understand LAMBDA... 07-11-2024, 08:28 AM
AliGW Re: Help understand LAMBDA... 07-11-2024, 08:50 AM
alidurfani Re: Help understand LAMBDA... 07-11-2024, 09:53 AM
AliGW Re: Help understand LAMBDA... 07-11-2024, 09:56 AM
alidurfani Re: Help understand LAMBDA... 07-11-2024, 10:09 AM
AliGW Re: Help understand LAMBDA... 07-11-2024, 10:10 AM
  1. #1
    Registered User
    Join Date
    11-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    53

    Help understand LAMBDA function

    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.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Help understand LAMBDA function

    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.

  3. #3
    Registered User
    Join Date
    11-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    53

    Re: Help understand LAMBDA function

    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?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Help understand LAMBDA function

    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.

  5. #5
    Registered User
    Join Date
    11-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    53

    Re: Help understand LAMBDA function

    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.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Help understand LAMBDA function

    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.

  7. #7
    Registered User
    Join Date
    11-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    53

    Re: Help understand LAMBDA function

    Updated profile and marked as solved.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Help understand LAMBDA function

    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help to understand and amend LAMBDA functions
    By RaulSerg in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 02-24-2025, 01:47 PM
  2. Spilling a BYCOL/LAMBDA function across rows
    By Emlyn Flint in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-23-2023, 09:39 AM
  3. ARCANE: LAMBDA function calling XLM functions
    By hrlngrv in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-19-2022, 07:09 PM
  4. how to convert a VLOOKUP & INDIRECT formula to a LAMBDA function
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2021, 05:11 PM
  5. [SOLVED] Help to understand a VBA Formulae function
    By Potholes in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-11-2019, 10:27 AM
  6. Need to decipher/understand this function
    By vpan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2017, 03:33 PM
  7. Don't seem to understand QUOTIENT function
    By avhfj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-29-2010, 12:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1