G
Gixxer_J_97
hi all,
i would like to use vba and the sumproduct function
the excel formula version would be something like
=SumProduct((OrderMonthName=B1)*1)
i am trying
with sheets("Sheet1")
tot = tot + cdbl(Application.SumProduct((.Range("OrderMonthName") =
monthName(m))*1))
end with
but i am getting a type mismatch - i have a feeling i am using this
incorrectly.
any help?
tia!
J
i would like to use vba and the sumproduct function
the excel formula version would be something like
=SumProduct((OrderMonthName=B1)*1)
i am trying
with sheets("Sheet1")
tot = tot + cdbl(Application.SumProduct((.Range("OrderMonthName") =
monthName(m))*1))
end with
but i am getting a type mismatch - i have a feeling i am using this
incorrectly.
any help?
tia!
J