重复数据统计
datagridview(6,i)里面放的是数字,想要统计里面各个数字出现的次数(有重复数字)
Private Function strCount(strA As String, strB As String) As Long '统计字符串出现的次数 Dim lngA As Long Dim lngB As Long Dim lngC As Long lngA = Len(strA) lngB = Len(strB) lngC = Len(Replace$(strA, strB, "")) strCount = (lngA - lngC) / lngB End Function
[此贴子已经被作者于2021-3-4 23:31编辑过]