Hello,
I am trying to use named ranges in a VBA function but I am getting a "Compile error: Sub or Function not defined". What I am trying to do is a countifs function:
a = Range("K1")
b = Range("A:A") - lookup range for a
c = Range("L1")
d = Range("B:B") - lookup range for c
e = Range ("M1")
f = Range("C:C") - lookup range for e
d = CountIfs (a, b, c, d, e, f)
Any ideas why this is not working?
Thanks for the help!
I am trying to use named ranges in a VBA function but I am getting a "Compile error: Sub or Function not defined". What I am trying to do is a countifs function:
a = Range("K1")
b = Range("A:A") - lookup range for a
c = Range("L1")
d = Range("B:B") - lookup range for c
e = Range ("M1")
f = Range("C:C") - lookup range for e
d = CountIfs (a, b, c, d, e, f)
Any ideas why this is not working?
Thanks for the help!