A few approaches in truth.
=SUMPRODUCT((TEXT(F2:F64,"yyyy")="2010")+0,D2:D64)
or if you know F2:F64 will always and only contain numbers (dates) [not the case here] then
=SUMPRODUCT((YEAR(F2:F64)=2010)+0,D2:D64)
or if you will not always be looking for a given year but variable dates (eg Jan-Jun) then:
=SUMPRODUCT((F2:F64>=DATE(2010,1,1))*(F2:F64<=DATE(2010,6,30)),D2:D64)
SUMPRODUCT is not overly efficient so you could also consider using 2 SUMIFs (or SUMIFS XL2007+)
=SUM(SUMIF(F2:F64,{">=01/01/2010",">=01/01/2011"},D2:D64)*{1,-1})
Finally... and not least... you might want to consider using a Pivot Table if the analysis is based on years etc (you can group the Date Field by Year) but again this would require only numbers in column F (not presently the case)
Bookmarks