Google-sheets – How to use Google Spreadsheets to chart completed tasks using time series graph

google sheetsgoogle-sheets-chartstime series

I have the following columns in Google spreadsheet

Date and Completed Tasks

Sample data includes

  • May 17, 2016 3
  • May 18, 2016 10
  • May 19, 2016 9
  • May 20, 2016 8
  • May 21, 2016 9

I want to create a time series chart and to see moving average, variance plotted on it.

How do I do that?

Tasks will always be integer.

Best Answer

I assume you know how to make a chart where the X is date, Y is your moving average (if you have the value).

Moving Average Google Sheets

Moving Average

Used Google searches to find:

  1. How to sum up rows above - modified to select previous column and to include current row

=SUM(INDIRECT(ADDRESS(1,COLUMN()-1)&":"&ADDRESS(ROW(),COLUMN()-1)))

  1. Row function - Row function used to display current row number minus 1 to adjust for a row header

=ROW()-1

  1. Divide SumRowsAbove with RowNum (C/D) which returns your definition of MovingAverage (E).