1个回答
展开全部
Sub s()
Set d = CreateObject("scripting.dictionary")
For i = 11 To 353
For j = 1 To 3
If Cells(j, i).Interior.ColorIndex = 7 Or Cells(j, i).Interior.ColorIndex = 12 Then
Exit For
End If
Next
If j <= 3 Then
For j = 5 To 14
t = Cells(j, i).Text
If t <> "" Then
d(t) = d(t) + 1
End If
Next
End If
Next
n = 27
Do While d.Count
c = -1
For Each k In d.keys
If d(k) > c Then
c = d(k)
kk = k
End If
Next
Cells(16, n) = kk
Cells(17, n) = c
d.Remove (kk)
n = n + 1
Loop
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |