Hello Jefe,
I'm not sure what the problem is with your formulas, but here's a suggestion using a macro:
Sub SalesAnalysis()
Dim ar, Dic, a, b
Dim i As Integer, j As Integer, str
Set Dic = CreateObject("scripting.dictionary")
With Sheets("Sales")
ar = .Range("H1:H" & .Cells(.Rows.Count, 8).End(xlUp).Row)
For i = 1 To UBound(ar, 1)
str = Replace(ar(i, 1), " ", "")
str = Split(str, ",")
For j = LBound(str) To UBound(str)
a = "'" & Split(str(j), "(")(0)
If Not Dic.exists(a) Then
Dic.Add a, 1
Else
Dic(a) = Dic(a) + 1
End If
Next j
Next i
a = Dic.keys
b = Dic.items
With .Range("P1")
.Resize(UBound(a) + 1, 1) = Application.Transpose(a)
.Offset(0, 1).Resize(UBound(a) + 1, 1) = Application.Transpose(b)
End With
End With
End Sub
Bookmarks