View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Carim[_2_] Carim[_2_] is offline
external usenet poster
 
Posts: 97
Default Excel2003 - Automatically sum a variable number of rows

Hi Andrew,

Copy following formula in cell D1 ... and all the way down ...
=SUM(C1:INDIRECT(ADDRESS(SUMPRODUCT(MAX((ROW($C$1: C1))*($C$1:C1="F"))),
3,4)))*IF(OFFSET(C1,1,0)="F",1,0)

HTH