1

I would like to figure out a formula that will look at the last 14 days of data in column D and calculate the average. But I would like it to dynamically update every day so it's always showing the last 14 days average based on the current date.

Does that make sense? Is this possible?

https://docs.google.com/spreadsheets/d/1C8paoYXirR5qus8axs-SciRqxeaBWMxsSmC0PGX969E/edit?usp=sharing

  • average including DIV/0 errors as zero? or excluding them? – user0 Apr 25 at 20:26
  • 1
    Excluding them, sorry I should have mentioned that – William B Apr 25 at 20:30
0

=AVERAGE(QUERY({A2:D}, 
 "select Col4 
  where Col4 is not null 
  order by toDate(Col1) desc 
  limit 14", 0))

0

  • 1
    This worked perfectly, thank you so much! – William B Apr 25 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.