G
Guest
I am trying to replicate a function such as this from Excel: {=COUNT(IF((B2
12>0)*(B2
12<=2),B2
12))} in VBA. How do I evaluate multiple criteria using COUNTIF in VBA?



{=COUNT(IF((B2Scott P said:I am trying to replicate a function such as this from Excel:
type of syntax: Result = Application.SumProduct? I am going to want to useScott P said:Thanks, Pascal. Is there a way to accomplish the same thing using this
syntax, the following statement works for me in VBA: Result =Scott P said:Thanks for the help, Pascal and Frank. In terms of VBA support for that
variables. For example, I would like the following to work: Result =I need to insert criteria into the SumProduct function using references to