+ Reply to Thread
Results 1 to 14 of 14

spill data over columns and rows with Byrow/lambda

  1. #1
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    spill data over columns and rows with Byrow/lambda

    Hi,
    I have this file with 2 tabs, they both have the same data,
    but I need to make the comparison to ensure they do match.

    so in 'HAN' tab I'm xlookuping by account to tab '21542'
    by using this formula (I509)
    =XLOOKUP(TEXT(F509,0),TEXT('21542'!$A$507#,0),'21542'!$B$507#)

    This would give me the result for both columns, but I need to drag it down to next rows.

    In order to make it dynamic I was trying to use a BYROW/LAMBDA function, but it results in giving just one column out of the two.
    =BYROW(TEXT(F509#,0),LAMBDA(r,XLOOKUP(r,TEXT('21542'!A507#,0),'21542'!B507#)))

    Can anyone help understand what is the correct syntax to achieve the results like in I509 - J526 and have it spill ?

    Thanks.
    Attached Files Attached Files
    Last edited by Limor_OP; 07-31-2023 at 06:22 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
    91,060

    Re: Byrow/lambda

    Administrative Note:

    FUNCTION NAMES ONLY - GENERIC TITLE


    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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
    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
    91,060

    Re: spill data over columns and rows with Byrow/lambda

    Thanks.

    Where have you mocked up what you want? I can see only two formulae producing the same results - I need also to see a manually created expected set of results.

    Forget that - I see what you mean!

  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
    91,060

    Re: spill data over columns and rows with Byrow/lambda

    XLOOKUP returns a single array. What's wrong with the HSTACK option?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: spill data over columns and rows with Byrow/lambda

    Is this what you wanted:

    =DROP(REDUCE(0,F509#,LAMBDA(x,y,VSTACK(x,XLOOKUP(TEXT(y,0),TEXT('21542'!$A$507#,0),'21542'!$B$507#)))),1)

    but I'm unsure what was wrong with the original....
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: spill data over columns and rows with Byrow/lambda

    Quote Originally Posted by Glenn Kennedy View Post
    I'm unsure what was wrong with the original....
    BYROW function returns always only 1 cell for each row

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: spill data over columns and rows with Byrow/lambda

    Another option is to use index rather than xlookup
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: spill data over columns and rows with Byrow/lambda

    Quote Originally Posted by HansDouwe View Post
    BYROW function returns always only 1 cell for each row
    OK, didnt know that , thanks HansDouwe.
    Glenn & Fluff13 - both alternatives are working well.

    Thanks a lot !

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: spill data over columns and rows with Byrow/lambda

    Glad to help & thanks for the feedback.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: spill data over columns and rows with Byrow/lambda

    Quote Originally Posted by HansDouwe View Post
    BYROW function returns always only 1 cell for each row
    I meant what was wrong with the HSTACK-SUMIF....

  11. #11
    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
    91,060

    Re: spill data over columns and rows with Byrow/lambda

    I asked the same in post #4 - no response.

  12. #12
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: spill data over columns and rows with Byrow/lambda

    Quote Originally Posted by Glenn Kennedy View Post
    I meant what was wrong with the HSTACK-SUMIF....
    Basically I could, just was wondering about the BY ROW/Lambda combination which, to my logic, should have worked
    but now I understand the limitation of these functions.

    Same answer for #4.

    Thanks again.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: spill data over columns and rows with Byrow/lambda

    OK, not problem. At least you got sorted out...

  14. #14
    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
    91,060

    Re: spill data over columns and rows with Byrow/lambda

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank 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 all those who offered help.

+ 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. [SOLVED] help with a BYROW
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2023, 11:40 AM
  2. [SOLVED] Maximum Drawdown and LAMBDA
    By andrewc in forum Excel General
    Replies: 5
    Last Post: 06-28-2023, 09:25 AM
  3. [SOLVED] BYROW retrieve value in a dynamic array
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-21-2023, 12:47 PM
  4. Combine two working formulae using BYROW (or other function(s))
    By TMS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-19-2023, 12:11 PM
  5. [SOLVED] BYROW(...LAMBDA(...) ) result in #CALC! error
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2022, 07:17 AM
  6. [SOLVED] LAMBDA iteration
    By Slabu in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-20-2021, 08:39 PM
  7. Lambda Expressions in Excel VBA
    By Gregor y in forum Tips and Tutorials
    Replies: 4
    Last Post: 10-17-2014, 06:59 PM

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