SumIf with 2 ctiteria
myVal =
ActiveSheet.Evaluate("=SUMPRODUCT(--(D1:D1000=""value_1""),--(E1:E1000=""val
ue_2""))")
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Jimbo" wrote in message
...
I need to sum the values in Column K if the values in Column D AND Column
E
meet different criteria
e.g. Sum of values in Col K .... only if corresponding values Col D =
value_1 and Col E = value_2
Please post relevant vbacode
Thanks & TIA
|