Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Option Explicit
  2.  
  3. Function my3CountIfs(Rng1 As Range, Criteria1 As String, Rng2 As Range, Criteria2 As String, Rng3 As Range, Criteria3 As String) As Long
  4.  
  5. Dim ws As Worksheet
  6.  
  7. For Each ws In ThisWorkbook.Worksheets
  8.  
  9. Select Case ws.Name
  10. Case "Summary-Sheet", "Notes", "Results", "Instructions", "Template"
  11. ' do nothing
  12.  
  13. Case Else
  14. my3CountIfs = my3CountIfs + Application.CountIfs(ws.Range(Rng1.Address), Criteria1, ws.Range(Rng2.Address), Criteria2)
  15.  
  16. End Select
  17. Next ws
  18.  
  19. End Function
  20.  
  21. =my3COUNTIFS(I49,"Yes",I7,"Yes",I1, "Active")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement