A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Had you been using Excel 2010 or a higher version, then I would have suggested using the PowerPivot tool to solve this problem. SInce you are using Excel 2007, here is my formula based solution
- In cell B12, enter this formula and copy down
=SUMIFS($G$2:$G$6,$A$2:$A$6,$A12,$B$2:$B$6,B$11)
- In cell C12, enter this formula and copy down
=SUMIFS($G$2:$G$6,$A$2:$A$6,$A12,$B$2:$B$6,C$11)
- In cell D12, enter this array formula (Ctrl+Shift+Enter) and copy down
=MIN(IF($A$2:$A$6=A12,$D$2:$D$6))
- In cell E12, enter this array formula and copy down
=MAX(INDEX(($A$2:$A$6=A12)*($D$2:$D$6),,))
- In cell F12, enter this formula and copy down
=C12-B12
- In cell G12, enter this formula and copy down
=IFERROR(F12/B12,"")
Hope this helps.