I am trying to add values from one column (H) if the date year in another (E) is 2006 or similar. I have tried the following with a 0 as the result (which is wrong).

={SUM(IF($E$7:$E$10070=(YEAR($E$7:$E$10070)=2006),$H$7:$H$10070))}

Any ideas as to what is wrong? I suspect the =(YEAR($E$7:$E$10070)=2006 section of the formula.