A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
OFFSET has several forms, but the simplest is OFFSET(mycell, number-of-rows, number-of-columns). This refers to the cell number-of-rows down and number-of-columns to the right of mycell.
(Remark: if number-of-rows is -5, it refers to 5 rows up from mycell. If number-of-columns is -3, it refers to 3 columns to the left of mycell).
Let's say the first formula is in row 2. You can then use
=(OFFSET(RAW!$K$3, 5*(ROW()-2), 0)+OFFSET(RAW!$K$6, 5*(ROW()-2), 0)) / (OFFSET(RAW!$C$3, 5*(ROW()-2), 0)+OFFSET(RAW!$C$6, 5*(ROW()2), 0))
ROW()-2 is 0 in row 2, 1 in row 3, 2 in row 4 etc.
5*(ROW()-2) is 0 in row 2, 5 in row 3, 10 in row 4 etc.