+ Reply to Thread
Results 1 to 7 of 7

help with a BYROW

  1. #1
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    help with a BYROW

    Hello guys:

    I have an issue with a BYROW function

    I have 2 column of values, each has comma-separated values.

    I need to compare, row by row, list1 vs list2, and obtain an array with the values, by row, comma-separated, existing in list1, but not existing in list2.

    After some treatments, I obtain a table (TableA, displayed in C12#), with those two lists to compare (column 2 and 3).

    In the very same LET where TableA is calculated, I then do a BYROW, in the BYROW, I TEXTSPLIT each cell of each column, and I compare using MATCH, for each row. Then I TEXTJOIN the result, for each row.

    Problem, the result of the BYROW in TableB does not work : it lists only the first missing item for the given row, not the full list, comma-separated.

    Very strangely, if I do the procedure in 2 steps, it works:
    1. display the Table A first
    2. then refer to the Table A and get the result of BYROW in TableC.

    In this case, while replacing in my LET { tableA;FILTER(tableA2;INDEX(tableA2;;3)<>"ALERT"); } with { tableA;C12#; } instead, magically it works, even though C12# is the result of the very same function {TableA;FILTER(tableA2;INDEX(tableA2;;3)<>"ALERT"); }


    Can someone explain to me why this strange behavior, and help me correct this. Of course, I need a single LET function to get the desired array, cannot split the function in 2 parts. Or maybe, BYROW is not the best method to get the result I need, in which case I would listen to your suggestions. Thank you.

    BYROW.jpg
    Attached Files Attached Files

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

    Re: help with a BYROW

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: help with a BYROW

    Thanks Hans.

    {BYROW(D12:E13}

    Cannot be a range. It needs to be an array, resulting from treatments on ranges A3 and I3:J6.

    I do not know the dimension of D12:E13, could be more rows, cannot use it.

    If you have any other suggestion than the BYROW to get the desired result, that would be great.

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

    Re: help with a BYROW

    It look likes Excel does not like nested arrays. If I replace in the BYROW-statement the range by an corresponding array, I get troubles with defining list1 and list2 correctly.
    According microsoft the first parameter of a BYROW statement could be an array, but then I can no longer define an array at row level.

    I should think about another solution, but I need time for that.

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

    Re: help with a BYROW

    I came up the following alternative solution with MAP:

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: help with a BYROW

    Thank you so much Hans for your efforts!

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

    Re: help with a BYROW

    Thanks for the feedaback and rep . Glad to have helped.

+ 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] BYROW retrieve value in a dynamic array
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-21-2023, 12:47 PM
  2. 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
  3. [SOLVED] BYROW(...LAMBDA(...) ) result in #CALC! error
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2022, 07:17 AM

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