Sub TEST_A1()
Dim Arr, i&, T$, TT$, SS$
Arr = Range([a1], [b65536].End(xlUp))
For i = 2 To UBound(Arr)
T = Arr(i, 2): SS = TT
If Right(T, 1) = ":" Then TT = Replace(T, ":", ""): SS = ""
Arr(i - 1, 1) = SS
Next i
[c2].Resize(UBound(Arr) - 1) = Arr
End Sub作者: hcm19522 時間: 2022-1-30 14:56