This will do it
=IF($F$2=$F$2,SUM(OFFSET($W$2:$W$4,(ROWS($1:1)-1)*3,,,)))

However, I am lost by the first bit =if(F2=F2 When will F2 NEVER be the same as itself??