Can you give us a little more information please?Do you ignore rows 5,6 & 7If rows 1,2,3 = 1 then should you get 3 in row 8?... Are you summing rows1-4 into row 8?What do you want for rows 9 till 50? Is the operation repeated every 8 rows?