|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
参与一下。。。- Sub ykcbf() '//2024.2.22
- Dim arr
- Application.ScreenUpdating = False
- r = Me.Cells(Rows.Count, "a").End(xlUp).Row
- arr = Me.[a1].Resize(r, 4)
- Sum = 0
- For i = 2 To UBound(arr)
- If arr(i, 1) >= Me.[h2].Value2 And arr(i, 1) <= Me.[h3].Value2 Then
- If arr(i, 2) = Me.[h4].Value2 Then
- If arr(i, 3) = Me.[h5].Value2 Then
- If arr(i, 4) = "是" Then
- Sum = Sum + 1
- End If
- End If
- End If
- End If
- Next
- Me.[h6].Value = Sum
- Application.ScreenUpdating = True
- MsgBox "OK!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|