oh no, it is this the right formula for my case
=MAX(OFFSET($E$2:$E$8761,(ROWS(A$2:A8761)-1)*24,,24))
but it seems like excel only goes till A365
=MAX(OFFSET($E$2:$E$8761,(ROWS(A$2:A365)-1)*24,,24))
is there something that i can do to overcome this problem (and avoid copy and past each 365 rows up to 8760)?