Question : How to create a nested SUMIF in Excel / Google Docs

I have attached a spreadsheet formula
=SUMIF(BANK!D:D,CF!A6,BANK!B:B)

I want to change it so that it only sums up records where BANK: A:A is between StartDate and EndDate.  StartDate is in CF: B1 andEndDate is in CF:B2.

I'm going to use this  as a  Google Doc spreadsheet, so want to stick to basic formulas like SUMIF and VLOOKUP. Not sure what else is supported by Google Docs.

Thanks.

Answer : How to create a nested SUMIF in Excel / Google Docs

Put this formula in cell B6 and copy everywhere needed:

=SUMPRODUCT((BANK!$A$3:$A$1000>=B$1)*(BANK!$A$3:$A$1000<=B$2)*(BANK!$D$3:$D$1000=$A6)*BANK!$B$3:$B$1000)

Kevin
Random Solutions  
 
programming4us programming4us