【VBA】多条件去重
生活随笔
收集整理的這篇文章主要介紹了
【VBA】多条件去重
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Function kaidan(txt)
Dim i As Integer
Dim arr
Set d = CreateObject("scripting.dictionary")
For i = 1 To Worksheets("匯-銷").Range("a65536").End(xlUp).Row
arr = Worksheets("匯-銷").Range("a1:s" & i).Value
If arr(i, 19) = txt And arr(i, 9) > 0 Then
d(arr(i, 8)) = ""
End If
Next
kaidan = d.Count
End Function
轉載于:https://www.cnblogs.com/susuye/p/7492295.html
總結
以上是生活随笔為你收集整理的【VBA】多条件去重的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php与数据库的连接用法 (签到一)
- 下一篇: javase模拟斗地主洗牌和发牌(54)