Hi
Unfortunately is not clear where your formulas go in the picture you posted.
So I'm not 100% sure if the formula syntax is correct.
Me in your situation
With the first formula I would use cell references to replace the sum function
Let's say
cell M1=03/20/2020 00:00:00
cell N1=03/20/2020 01:00:00
Then your formula would be
=AVERAGEIFS(B:B, A:A, ">="&$M$1, A:A, "<"&$N$1)
If any errors then
=IFERROR(AVERAGEIFS(B:B, A:A, ">="&$M$1, A:A, "<"&$N$1),"")
With the second formula
ROW($L$2) will always give you 2
so the formula would be
=AVERAGE(OFFSET($I$2,(ROW()-2)*24,,24,1))
If any errors then
=IFERROR(AVERAGE(OFFSET($I$2,(ROW()-2)*24,,24,1)),"")
Do let me know if you need more help
On the other hand,
If the answer helped you.
Please, consider marking this thread as answered.
It would help others in the community with similar questions or problems.
Thank you in advance
Regards
Jeovany