Question : Sum by range

Dear experts,

Require an excel formulae which will pickup date from cell C3 as start date and end date from cell C4
the formulae should then go to sheet 'Data' and then find the dates in sequence in row 4. Then once the start column and end for the consequence is finalized
the formulae should then find in column A for variable A and sum the values from the chosen range

Result expected is given

Thank you,
Attachments:
 
sum by range
 

Answer : Sum by range

Another way would be to use SUMPRODUCT in C5 copied across and down

=SUMPRODUCT(Data!$B$6:$Q$11,(Data!$A$6:$A$11=$A5)*(Data!$B$4:$Q$4>=C$3)*(Data!$B$4:$Q$4<=C$4))

regards, barry

Random Solutions  
 
programming4us programming4us