If a(s, 2) <> a(s - 1, 2) Then Cells(s, 3) = a(s, 1)
Next
End Sub
複製代碼
作者: 准提部林 時間: 2013-5-15 09:36
Sub T20130515_1()
Dim xR As Range, J%, K%, T$
For Each xR In Range([A1], [A65536].End(3))
T = xR(1, 2): J = InStr("買賣", T)
If T <> "" And J > 0 And J <> K Then xR(1, 3) = xR: K = J
Next
End Sub