Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,005 --> 00:00:02,000
- [Instructor] Collecting data over time
2
00:00:02,000 --> 00:00:05,000
lets you perform many different kinds of analysis.
3
00:00:05,000 --> 00:00:06,008
One useful way to analyze your data
4
00:00:06,008 --> 00:00:11,004
would be to find a running total based on monthly data.
5
00:00:11,004 --> 00:00:13,008
You might collect sales broken down by month
6
00:00:13,008 --> 00:00:16,006
and then want to find a running total,
7
00:00:16,006 --> 00:00:19,001
that is, a total of all the months
8
00:00:19,001 --> 00:00:22,008
up to a particular month that is listed in the table.
9
00:00:22,008 --> 00:00:26,003
In this movie, I will show you how to create Excel formulas
10
00:00:26,003 --> 00:00:29,002
that find running totals, running averages,
11
00:00:29,002 --> 00:00:32,008
and also three-month running averages.
12
00:00:32,008 --> 00:00:35,003
My sample file is an Excel workbook
13
00:00:35,003 --> 00:00:38,007
named 02_06_RunningAverage, and you can find it
14
00:00:38,007 --> 00:00:42,006
in the Chapter02 folder of the Exercise Files collection.
15
00:00:42,006 --> 00:00:45,004
This workbook contains monthly customer data,
16
00:00:45,004 --> 00:00:47,005
so I can see the number of customers
17
00:00:47,005 --> 00:00:49,005
who have visited my store.
18
00:00:49,005 --> 00:00:53,001
And let's say that I want to find a running total.
19
00:00:53,001 --> 00:00:54,006
In other words for February,
20
00:00:54,006 --> 00:00:57,008
I want to know the total number of customers
21
00:00:57,008 --> 00:01:00,003
who have visited the store up to that point,
22
00:01:00,003 --> 00:01:01,009
so January and February.
23
00:01:01,009 --> 00:01:06,001
Then March would include March, February, and January
24
00:01:06,001 --> 00:01:08,000
and so forth.
25
00:01:08,000 --> 00:01:10,009
To start, I will click in cell C2,
26
00:01:10,009 --> 00:01:12,004
and I will create a formula
27
00:01:12,004 --> 00:01:16,003
that I can copy down to the remaining cells in this column.
28
00:01:16,003 --> 00:01:20,006
So I'll type equal and then sum,
29
00:01:20,006 --> 00:01:23,000
and I want to define the range of values
30
00:01:23,000 --> 00:01:25,001
that I want to look at.
31
00:01:25,001 --> 00:01:28,000
The first value is in cell B2,
32
00:01:28,000 --> 00:01:31,002
and I don't want that value or cell reference to change.
33
00:01:31,002 --> 00:01:33,004
I want it to always look at B2
34
00:01:33,004 --> 00:01:37,002
and then update the last cell in the column
35
00:01:37,002 --> 00:01:39,003
that's going to be included.
36
00:01:39,003 --> 00:01:45,000
So I'll press F4 on Windows to make it an absolute reference
37
00:01:45,000 --> 00:01:49,005
with the dollar signs, then a colon, and I'll type B2.
38
00:01:49,005 --> 00:01:51,008
I will leave this reference relative
39
00:01:51,008 --> 00:01:55,001
so that it will change when I copy the formula,
40
00:01:55,001 --> 00:01:58,004
and I'll type a right parentheses to close out and Enter.
41
00:01:58,004 --> 00:02:02,004
And I get the value of 4,969.
42
00:02:02,004 --> 00:02:05,009
Now I'll click cell C2 and copy the formula down
43
00:02:05,009 --> 00:02:12,003
by dragging the fill handle until it covers cell C13.
44
00:02:12,003 --> 00:02:15,003
And you can see that the formula has been copied down.
45
00:02:15,003 --> 00:02:19,008
And if I look in cell C3, I see my range is B2 to B3.
46
00:02:19,008 --> 00:02:24,008
C4 is B2 to B4, and everything else all the way down.
47
00:02:24,008 --> 00:02:28,000
Do note that there are error indicators
48
00:02:28,000 --> 00:02:29,006
in every cell in this column
49
00:02:29,006 --> 00:02:32,000
except for the first and the last.
50
00:02:32,000 --> 00:02:34,000
And if we look at the error indicator,
51
00:02:34,000 --> 00:02:37,008
it says that this formula in the cell refers to a range
52
00:02:37,008 --> 00:02:40,004
that has additional numbers adjacent to it.
53
00:02:40,004 --> 00:02:44,000
So when I'm looking at the values in B2 to B4,
54
00:02:44,000 --> 00:02:48,003
I'm excluding all the values from B5 on down.
55
00:02:48,003 --> 00:02:53,001
And the reason we don't have an error indicator at cell C13
56
00:02:53,001 --> 00:02:55,008
is because it does include all the values.
57
00:02:55,008 --> 00:02:57,009
If you want to hide this error indicator,
58
00:02:57,009 --> 00:02:59,009
you can either do it for individual cells
59
00:02:59,009 --> 00:03:03,009
by clicking the icon that shows the error
60
00:03:03,009 --> 00:03:06,000
and then click Ignore Error,
61
00:03:06,000 --> 00:03:08,008
or you can go to Error Checking Options
62
00:03:08,008 --> 00:03:11,008
at the bottom of the popup menu.
63
00:03:11,008 --> 00:03:16,003
That opens the Formulas category of Excel Options.
64
00:03:16,003 --> 00:03:20,008
And then you go down to Error Checking Rules
65
00:03:20,008 --> 00:03:25,007
and clear Formulas which omit cells in a region.
66
00:03:25,007 --> 00:03:29,004
Click OK, and the error goes away.
67
00:03:29,004 --> 00:03:30,006
Now it's important to know
68
00:03:30,006 --> 00:03:32,008
that you have turned off that error
69
00:03:32,008 --> 00:03:37,002
for every workbook that you open in this copy of Excel.
70
00:03:37,002 --> 00:03:38,007
So do be aware of that
71
00:03:38,007 --> 00:03:42,009
that you will no longer see this particular error.
72
00:03:42,009 --> 00:03:44,005
If you want to calculate a running average,
73
00:03:44,005 --> 00:03:46,002
you do the same thing as before
74
00:03:46,002 --> 00:03:48,006
except you use the average function.
75
00:03:48,006 --> 00:03:53,001
So I'll click in cell D2, =AVERAGE,
76
00:03:53,001 --> 00:03:56,006
and we're starting again in B2.
77
00:03:56,006 --> 00:03:57,007
It could be very tempting
78
00:03:57,007 --> 00:04:00,001
to use the data next to it in cell C2,
79
00:04:00,001 --> 00:04:02,005
but remember, you're adding those values together.
80
00:04:02,005 --> 00:04:05,001
It's a running total, so don't make that mistake.
81
00:04:05,001 --> 00:04:07,002
And yes, I have done that.
82
00:04:07,002 --> 00:04:08,006
So I have B2.
83
00:04:08,006 --> 00:04:13,008
Press F4, type a colon, B2, right parenthesis, and Enter.
84
00:04:13,008 --> 00:04:17,006
Good, my average is 4969 'cause I only have one value.
85
00:04:17,006 --> 00:04:19,007
This time I will double click the fill handle
86
00:04:19,007 --> 00:04:21,004
so I don't have to drag.
87
00:04:21,004 --> 00:04:24,009
And my average doesn't change very much,
88
00:04:24,009 --> 00:04:26,007
and it looks pretty good.
89
00:04:26,007 --> 00:04:28,005
If you want to do the same thing
90
00:04:28,005 --> 00:04:30,009
for a three-month running average,
91
00:04:30,009 --> 00:04:33,008
then you start when you have three months of data
92
00:04:33,008 --> 00:04:36,005
and you use a slightly different cell range.
93
00:04:36,005 --> 00:04:41,003
The third month in my collection is for March,
94
00:04:41,003 --> 00:04:43,001
and that's in the fourth row.
95
00:04:43,001 --> 00:04:45,001
So I'll click in cell E4.
96
00:04:45,001 --> 00:04:49,002
I'll type an equal sign and then AVERAGE.
97
00:04:49,002 --> 00:04:55,001
And now I want to create a range that the start and finish,
98
00:04:55,001 --> 00:04:58,003
the beginning and end of the range, will both change.
99
00:04:58,003 --> 00:04:59,005
And that's because I want to look
100
00:04:59,005 --> 00:05:01,007
at the most recent three months.
101
00:05:01,007 --> 00:05:05,005
So in E4, I will start with B2,
102
00:05:05,005 --> 00:05:07,009
then a colon and B4.
103
00:05:07,009 --> 00:05:12,003
And it can be very tempting to make B2
104
00:05:12,003 --> 00:05:15,005
an absolute reference, but don't do it
105
00:05:15,005 --> 00:05:17,005
because you'll be doing the same calculation
106
00:05:17,005 --> 00:05:19,008
as you are for the running average.
107
00:05:19,008 --> 00:05:22,001
So I have B2 to B4.
108
00:05:22,001 --> 00:05:24,003
Enter. So I have 6,798.
109
00:05:24,003 --> 00:05:28,004
That's because the formula in D4 and E4
110
00:05:28,004 --> 00:05:30,002
look at the same range of cells.
111
00:05:30,002 --> 00:05:37,004
But now if I double-click the fill handle next to E4,
112
00:05:37,004 --> 00:05:38,002
you can see
113
00:05:38,002 --> 00:05:40,008
that my last three-months' running average changes.
114
00:05:40,008 --> 00:05:44,005
And that's because it keeps looking at the values
115
00:05:44,005 --> 00:05:47,000
from the previous three months.
116
00:05:47,000 --> 00:05:53,002
So in cell E5, we're looking at the values from B3 to B5,
117
00:05:53,002 --> 00:05:55,008
E6 from B4 to B6,
118
00:05:55,008 --> 00:06:01,001
and that goes the same all the way down to cell E13.
119
00:06:01,001 --> 00:06:03,003
And the three-month running average
120
00:06:03,003 --> 00:06:08,004
for December looks at cells B11 through B13.
121
00:06:08,004 --> 00:06:10,002
As you can see, you have a lot of ways
122
00:06:10,002 --> 00:06:13,002
to summarize your data, running total, running average,
123
00:06:13,002 --> 00:06:14,006
and three-month running average
124
00:06:14,006 --> 00:06:17,000
are three very popular measures for business data.
9796
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.