sumproduct

F

fi.or.jp.de

Hi,

I have formula =SUMPRODUCT(--(B3=Sheet2!A:A),--(D3=Sheet2!B:B))

how should use same formula in using VBA like
appllication.worksheetfunction.sumproduct......
 
S

Stefi

x = WorksheetFunction.SumProduct(--(Range("B3") =
Worksheets("Sheet2").Range("A:A")), --(Range("D3") =
Worksheets("Sheet2").Range("B:B")))

I suppose you use Excel2007, because there are whole column references (A:A)
in your formula.

Regards,
Stefi

„[email protected]†ezt írta:
 
D

Dave Peterson

Check your other post.

Hi,

I have formula =SUMPRODUCT(--(B3=Sheet2!A:A),--(D3=Sheet2!B:B))

how should use same formula in using VBA like
appllication.worksheetfunction.sumproduct......
 

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

Top