View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] tanglk@gmail.com is offline
external usenet poster
 
Posts: 5
Default Sumproduct in VBA

The error i get is type mismatch for this sumproduct function in VBA:

r = WorksheetFunction.SumProduct((Left(Range("I1:I31") , 3) = "XCH"),
(Range("J1:J31")))

same happen if i put array in.

Do you have any idea?