Forum Discussion

skillinger287's avatar
skillinger287
Copper Contributor
Mar 22, 2022
Solved

running average

my current spreadsheet has about 5 months of data every minute.  is there a way to write a formula to get an hourly average for every 60 minutes of data.  it would definitely save a lot of time rathe...
  • HansVogelaar's avatar
    HansVogelaar
    Mar 22, 2022

    skillinger287 

    So it's not exactly every minute.

    I'll assume that A2 and down contain the date and time, and B2 and down the data.

    In C61:

    =IF(MINUTE($A61)=0,AVERAGEIFS($B$2:$B61,$A$2:$A61,">"&$A61-TIME(1,0,0)),"")

    Fill down.

Resources