Home > Net >  Is there a way to use arrayformula in google sheet to join text with conditions?
Is there a way to use arrayformula in google sheet to join text with conditions?

Time:09-14

Is there a way to get the result column in the picture below? All i want to do is text join the Col1 if the corresponding Col2 belongs to the same groups (E.G. 1,2,3....). Reminded that I want to use arrayformula instead of dragging down the "normal" formula myself everytime.

enter image description here

CodePudding user response:

Use this formula
Or enter image description here

CodePudding user response:

Great news for google-sheet lovers that google releases new lambda formulas. You can use BYROW() function to make it spill array. Try below formula.

=BYROW(C3:C9,LAMBDA(x,JOIN(",",FILTER(B3:B9,C3:C9=x))))

To refer entire column use FILTER() function for BYROW().

=BYROW(FILTER(C3:C,C3:C<>""),LAMBDA(x,JOIN(",",FILTER(B3:B,C3:C=x))))

enter image description here

  • Related