Hi Grupper,
If the Queue would only be 10 or less times longer then this version will run rather quickly:
Sub GrupperQ(): Dim Brb As String, Z, r As Long, s As Long, n As Long, i As Long, P, Q
r = Range("B:B").Find("*", , , , xlByRows, xlPrevious).Row
P = Cells(1, 2).Resize(r, 1): Q = Cells(1, 2).Resize(10 * UBound(P, 1), 1)
s = 3: For r = 3 To UBound(P): n = 1
Brb = Replace(P(r, 1), ",", ""): Z = Split(Brb): Brb = Z(0): i = 0
Do Until n = UBound(Z)
If IsNumeric(Left(Z(n), 1)) Then
i = 1: Q(s, 1) = Brb & " " & Z(n) & ", " & Z(UBound(Z)): s = s + 1
Else: Brb = IIf(i, Z(n), Brb & " " & Z(n)): i = 0
End If
n = n + 1: Loop: Next r
Cells(1, 2).Resize(s, 1) = Q
End Sub
Bookmarks