Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Option Explicit
- Function my3CountIfs(Rng1 As Range, Criteria1 As String, Rng2 As Range, Criteria2 As String, Rng3 As Range, Criteria3 As String) As Long
- Dim ws As Worksheet
- For Each ws In ThisWorkbook.Worksheets
- Select Case ws.Name
- Case "Summary-Sheet", "Notes", "Results", "Instructions", "Template"
- ' do nothing
- Case Else
- my3CountIfs = my3CountIfs + Application.CountIfs(ws.Range(Rng1.Address), Criteria1, ws.Range(Rng2.Address), Criteria2)
- End Select
- Next ws
- End Function
- =my3COUNTIFS(I49,"Yes",I7,"Yes",I1, "Active")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement