Get summary results (Textjoin, Unique value) of a table

mohsinbipu

New Member
Joined
Feb 19, 2021
Messages
17
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. Web
I want to get a summary of the unique value under a condition. Like in the below table-
1. For article BD-01, the Sorted (A-Z) unique area code is 11, 12, 15.
2. Then for these Unique codes, there are some product codes.
3. Now I want to Join all Area code and their Product codes with separator Collon( : ), Comma ( , ), Semi-colon ( ; )

Book1
ABCDEF
1InputOutput
2ArticleArea CodeProduct CodeArticleArea Code Product Code
3BD-0111XY, Z-001BD-0111: XY, Z-001, JD, FL, MM, VN; 12: IN, ED; 15: BD
4BD-0210IABD-0210: IA, IA, ZZ, INL, X-001; 12: Japan; 15: VN
5BD-0313HKBD-0311: BD; 13: HK, IN
6BD-0210IA, ZZ
7BD-0212Japan
8BD-0215VN
9BD-0210INL, X-001
10BD-0313IN
11BD-0311BD
12BD-0111JD, FL, MM
13BD-0111VN
14BD-0112IN, ED
15BD-0115BD
16
Sheet1


1700110989982.png
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
See if this does what you want.

23 11 16.xlsm
ABCDEF
1InputOutput
2ArticleArea CodeProduct CodeArticleArea Code Product Code
3BD-0111XY, Z-001BD-0111: XY, Z-001, JD, FL, MM, VN; 12: IN, ED; 15: BD
4BD-0210IABD-0210: IA, IA, ZZ, INL, X-001; 12: Japan; 15: VN
5BD-0313HKBD-0311: BD; 13: HK, IN
6BD-0210IA, ZZ
7BD-0212Japan
8BD-0215VN
9BD-0210INL, X-001
10BD-0313IN
11BD-0311BD
12BD-0111JD, FL, MM
13BD-0111VN
14BD-0112IN, ED
15BD-0115BD
mohsinbipu
Cell Formulas
RangeFormula
E3:F5E3=LET(Art,UNIQUE(A3:A15),HSTACK(Art,BYROW(Art,LAMBDA(a,LET(x,SORT(FILTER(B3:C15,A3:A15=a)),ac,UNIQUE(TAKE(x,,1)),TEXTJOIN("; ",,BYROW(ac,LAMBDA(rw,rw&": "&TEXTJOIN(", ",,FILTER(TAKE(x,,-1),TAKE(x,,1)=rw))))))))))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top