My countif function if not calculating automatically - am I missing something?
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
When I use the following command I have to manually click on it and hit return for it to bring up the updated answer
=my3COUNTIFS(I49,"Yes",I7,"Yes",I1, "Active")
and yes, I have excel set to automatic calculations.
Thanks for your help - giving a presentation on this excel sheet tonight and just discovered its not working correctly! - yikes!