Group Rows and Concatenate Cell Values

Group Rows and Concatenate Cell Values


Problem description & analysis:

Here is a categorized detail table:

We need to group the table and concatenate the detail data using the semicolon.

desired table

Solution:

Use SPL XLL to do this:

=spl("=E@b(?.groups(~1;concat(~2;$[;])))",A2:B9)
Enter fullscreen mode

Exit fullscreen mode

As shown in the picture below:

desired result table with code entered

Explanation:

E@b function converts the two-dimensional table to a sequence. ~1 represents the first sub-member of the current member; and $[] represents a string.



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.