Does this do what you need?
=IF($F$2=$F$2,SUM(OFFSET($W2,(ROWS($W$2:W2)-1)*2,0),OFFSET($W3,(ROWS($W$3:W3)-1)*2,0),OFFSET($W4,(ROWS($W$4:W4)-1)*2,0)))