need a formula to group

Copper Contributor
COLUMN1COLUMN2
DPU-6
BPU-3
DPU-3
DPU-7, PU-6
BPU-2, PU-3, PU-3
BPU-2, PU-3, PU-2
BPU-6, PU-7, PU-7
BPU-1, PU-3, PU-4, PU-5, PU-7, PU-4

so there are 2 groups group B and group  D each has values ranging from PU-1 to PU-8 i want them to count (Frequency of each) in following format.

 DB
PU-1  
PU-2  
PU-3  
PU-4  
PU-5  
PU-6  
PU-7  
PU-8  
1 Reply

@vedantaher 

=SUMPRODUCT((E$1=$A$2:$A$9)*(LEN($B$2:$B$9)-LEN(SUBSTITUTE($B$2:$B$9,$D2,"")))/LEN($D2))

You can try this formula.

count.png