9

I have day by day data. I would like to display a line chart with this daily data as well as weekly average bar chart.

How can I display daily as well as weekly trend chart by only having daily data in my spreadsheet?

0

2 Answers 2

5
  1. From your spreadsheet, select the cells with data you'd like to include in the chart. Alternatively, you can select a range or multiple ranges of data from within the charts dialog. You can do so by clicking Select range... and entering one or more ranges by clicking Add another range.

    Note: It helps to label the data in your spreadsheet before creating a chart. For example, if you want to chart your expenses, you might have a row of numbers labeled 'Rent' and another labeled 'Groceries.' Then you might label columns by month or week, etc. These labels will appear automatically in the window where you create and preview your chart, as long as the labels are the first row and column of your selected range of cells.

  2. Select the Chart enter image description here icon in the menu bar or choose Insert > Chart. The charts dialog box appears. In the Start tab, you’re able to edit the range of cells to be included in your chart, select basic layout settings, and view recommended charts.

  3. In the Start tab, you’re able to edit the range of cells to be included in your chart, select basic layout settings, and view recommended charts.enter image description here
    Note: If you included labels for your data in your spreadsheet, you can specify that you want to use the first row and first column of your data as labels by checking the box next to ‘Use 1st row as headers’ and ‘Use 1st column as labels.’ These settings are automatically selected when you include labels in Row 1 and Column A in your spreadsheet.

  4. If you decide that one of the recommended charts isn’t the right thing for your data or if you want to see more chart options, you can either click More >> or move on to the Charts tab.

  5. Preview your chart and edit as necessary.
  6. Click Insert. The chart appears in your spreadsheet. If you would like to go back to editing your spreadsheet without an inserted chart, click Cancel.

From the Creating a chart help page.

For the average, you can use the formula =ArrayFormula(AVERAGE(IF(A1:A7 <> 0; A1:A7))). To use this formula within the chart instead of its value, I don't know how to do it or even if it's possible. You could, however, add another cell (say A8) in which you compute the average value for the respective week and use that value to make you average values chart.

6
  • 4
    How does this answer the question of average weekly values? I know how to add charts. I'm using trending graph to display my daily values. But I don't know how to display weekly averages which would be a better trending display. Commented Sep 22, 2011 at 11:36
  • You want the graph to use a formula instead of values? That's what you are asking for?
    – Alex
    Commented Sep 22, 2011 at 11:50
  • I don't know what I want exactly. I just want a chart that would show me weekly trend along with my daily data. This actually means I would like to display weekly average (or total sum) with daily values. And I can't figure it out whether Google charts can do such thing without adding additional columns - which I also don't know how to do it so only one value per week would be added but chart would extrapolate it to 7 days. Commented Sep 22, 2011 at 13:54
  • I've also edited my question a bit to make it more clear. Commented Sep 22, 2011 at 13:56
  • For the average you can use this formula =ArrayFormula(AVERAGE(IF(A1:A7 <> 0; A1:A7))). To use this formula within the chart instead of its value, I don't know how to do it or even if it's possible. You could, however, add another cell (say A8) in which you compute the average value for the respective week and use that value to make you average values chart.
    – Alex
    Commented Sep 22, 2011 at 18:48
-1

For example:

  1. Have your daily data starting in column A3
  2. In cell B3 put the formula =average($A$3)
  3. In cell B4 put the formula =average($A$3:A4)
  4. Select cell B4 drag the bottom right corner down to cell B9
  5. This will copy the formula down so that the formula in B9 will be =average($A$3:A9)

That will give you the average for every day, and the weekly average is the figure in cell B9.

You can repeat the above every 7 days to give you the weekly average. (If you don't have a spare column you can select column A (click at the top) and then, from the Insert menu, insert a column to the right.)

If you don't want the daily average you can just use the formula from cell B9 to show the weekly average.

0

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.