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?


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

1 Answer 1


 "select Col4 
  where Col4 is not null 
  order by toDate(Col1) desc 
  limit 14", 0))


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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