View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Rafi Rafi is offline
external usenet poster
 
Posts: 27
Default Sumproduct in VBA

Great !! can you help me with the correct syntax for converting the fixed
cell range (e.g. i342:I352) to a dynamic range where the row numbers are
stored in variables intFirstRow and intLastRow


"Rafi" wrote:

I would like to implemet the follwoing formula in VBA and would appreciate
any help

The intent is to summ the values in the range T341:T352 for those rows where
the value in colum I is International and the value in column H is Shipper

SUMPRODUCT((I341:I352=" International ")*(H341:H352=" Shipper "),(T341:T352))

Thanks