Google Sheets – Daily Average Calculations

formulasgoogle sheets

In the editable spreadsheet below I have a column of dates (column A) alongside a column of data (column C).

I want to calculate the daily average of the data in column C and enter it in columns C and F

I would also like to do the same for weekly and day-of-week average calculations, but I'd be happy with daily averages to start.
Could someone provide some guidance on this?

Sample Sheet

Best Answer

You would need 3 distinct formula alongside some data readjustment

  • Formula to calculate the daily average

    =QUERY(A2:F,"select avg(D) where A is not null group by A label avg(D) ''")

daily average

  • Formula to calculate the day-of-week average

    =QUERY(A2:D151,"select B, avg(D) group by B label avg(D) ''")

In this formula we return both the day of the week and the average columns.

day-of-week average

  • Formula to calculate the weekly average

    =AVERAGEIFS(D2:D,A2:A,">="&L2,A2:A,"<="&M2)

For this formula it is best/easier to separate your dates into 2 columns.
You use the above formula in cell N2 and then you drag it down.

weekly average

Functions used: