why doesn't this code work?
I have double quoted the Sun and 9:30 AM values as the original quotes around these (which is required for the countifs formula) were causing the problem.
Code:
Sub atest3()
ActiveCell.Value = Range("CountIfs(Day_of_Week, ""Sun"", Time, ""9:30 AM"")").Value
End Sub
I have double quoted the Sun and 9:30 AM values as the original quotes around these (which is required for the countifs formula) were causing the problem.