sumproduct in VBA

  • Thread starter Thread starter bijan
  • Start date Start date
B

bijan

Hi all,
please someone check my formula and say what is wrong in it:
Range("B10").Formula
="SUMPRODUCT((PI!B10:B200>=1)*(PI!D10:D200='11')*(PI!H10:H200='GREEN')*(PI!L10:L200='YES')*(PI!J10:J200=A10)*(PI!F10:F200))"
Thanks in advance
Bijan
 
Hi,


Try this

Range("B10").Formula =
"=SUMPRODUCT((PI!B10:B200>=1)*(PI!D10:D200=11)*(PI!H10:H200=""GREEN"")*(PI!L10:L200=""YES"")*(PI!J10:J200=A10)*(PI!F10:F200))"

Mike
 
Hi bijan,

Try:
Range("B10").Formula =
"=SUMPRODUCT((PI!B10:B200>=1)*(PI!D10:D200=11)*(PI!H10:H200=""GREEN"")*(PI!L10:L200=""YES"")*(PI!J10:J200=A10)*(PI!F10:F200))"
 
Range("B9").Formula = "=SUMPRODUCT((PI!B10:B200>=1)*(PI!D10:D200=11)*
(PI!H10:H200=""GREEN"")*(PI!L10:L200=""YES"")*(PI!J10:J200=A10)*
(sheet2!F10:F200))"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top