Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,140 --> 00:00:12,010
In the previous lesson, I showed you how to construct three conditional if formulas, some if counted
2
00:00:12,010 --> 00:00:13,570
if and average if.
3
00:00:14,380 --> 00:00:19,120
And all three of those formulas use one piece of criteria.
4
00:00:19,300 --> 00:00:23,590
So now what we're going to do is we're going to move our knowledge on a little bit and I'm going to
5
00:00:23,590 --> 00:00:25,750
show you how you can use count ifs.
6
00:00:25,990 --> 00:00:33,640
Some ifs and average ifs to create formulas that use multiple pieces of criteria.
7
00:00:33,790 --> 00:00:38,200
And I will say that these formulas, the plural versions with the S on the end.
8
00:00:38,500 --> 00:00:41,320
These are newer formulas in Excel.
9
00:00:41,350 --> 00:00:47,110
These were introduced a few years ago, and they've quickly become the favorite formulas of a lot of
10
00:00:47,110 --> 00:00:49,780
people simply because they are so useful.
11
00:00:49,840 --> 00:00:51,490
Then let's take this first example.
12
00:00:51,640 --> 00:00:59,890
The only real difference between some ifs and some f is the number of pieces of criteria we're using
13
00:00:59,890 --> 00:01:07,090
in the formula when we use a sum, if we can only specify one piece of criteria, whereas if we use
14
00:01:07,090 --> 00:01:11,230
some ifs, we can specify multiple pieces of criteria.
15
00:01:12,100 --> 00:01:14,320
So let's take a look at this second example.
16
00:01:14,980 --> 00:01:22,660
What I'm trying to do here is work out the total sales for all sales reps who work at Microsoft.
17
00:01:23,350 --> 00:01:27,970
So I have two pieces of criteria here Micro World and sales rep.
18
00:01:28,780 --> 00:01:36,490
So because I have two pieces of criteria, I need to use some ifs as opposed to some if.
19
00:01:37,540 --> 00:01:43,990
Now another difference between this formula and these some if formula is the way that the arguments
20
00:01:43,990 --> 00:01:51,910
are organized in the sum if formula, the sum range argument is at the end and you specify your criteria
21
00:01:51,910 --> 00:01:52,930
and range first.
22
00:01:53,620 --> 00:01:58,900
Whereas when you're using some ifs, you're asked to specify the sum range first of all.
23
00:01:58,930 --> 00:02:01,780
And I actually find this a lot more logical to understand.
24
00:02:01,990 --> 00:02:05,140
So the first thing we need to do here is specify the sum range.
25
00:02:05,140 --> 00:02:06,910
So what are we trying to add up?
26
00:02:07,510 --> 00:02:12,700
Well, we're trying to add up the total sales criteria range.
27
00:02:12,790 --> 00:02:19,870
One What is our first piece of criteria when our first piece of criteria is going to be Microsoft?
28
00:02:20,140 --> 00:02:26,410
So our first criteria range is going to be wherever we find the word micro world, which is the company
29
00:02:26,530 --> 00:02:29,590
range criteria.
30
00:02:29,590 --> 00:02:31,720
One is Microsoft.
31
00:02:32,680 --> 00:02:33,000
Comma.
32
00:02:33,880 --> 00:02:42,040
Notice the arguments have now moved on to criteria range to so I can now add in my second piece of criteria.
33
00:02:42,910 --> 00:02:44,700
So once again, I like to work backwards.
34
00:02:44,710 --> 00:02:46,930
What is my second piece of criteria?
35
00:02:46,960 --> 00:02:48,310
Well, that is sales rep.
36
00:02:48,640 --> 00:02:50,460
Where am I going to find that?
37
00:02:50,470 --> 00:02:52,990
I'm going to find it in the job title range?
38
00:02:53,110 --> 00:02:59,650
So we're going to select the criteria range and then select the criteria, which is sales rep.
39
00:03:00,550 --> 00:03:05,230
I can then close my bracket because I only have two pieces of criteria.
40
00:03:05,560 --> 00:03:08,530
When I hit enter, it's going to give me my result.
41
00:03:08,740 --> 00:03:13,000
And again, because I have a fairly small dataset here, I could do a quick visual check.
42
00:03:13,000 --> 00:03:15,430
Let's look through for Michael's sales reps.
43
00:03:15,430 --> 00:03:22,180
So we have one just here, we have another one just here, and that is it.
44
00:03:22,750 --> 00:03:27,730
So basically, my result should be the total of these two cells.
45
00:03:27,880 --> 00:03:30,490
And I can see that, yes, that looks to be correct.
46
00:03:30,730 --> 00:03:33,400
What about if I have three pieces of criteria?
47
00:03:33,880 --> 00:03:39,880
Well, again, we can use some ifs as some range is the total sales.
48
00:03:41,200 --> 00:03:43,160
What is our first piece of criteria?
49
00:03:43,180 --> 00:03:44,350
Well, it's micro world.
50
00:03:44,470 --> 00:03:47,260
We're going to find that in the range company.
51
00:03:48,220 --> 00:03:49,750
Our criteria is micro world.
52
00:03:51,460 --> 00:03:59,560
A second criteria range is going to be the job title because the second piece of criteria is sales rep.
53
00:04:00,280 --> 00:04:08,050
And now we have a third criteria range, so we only want to see sales that are greater than $7000.
54
00:04:08,800 --> 00:04:12,910
So criteria range three is going to be the total sales range.
55
00:04:13,450 --> 00:04:19,480
And our criteria is what we have listed in here greater than 7000.
56
00:04:19,840 --> 00:04:23,950
Again, I could have hardcoded that in by typing in greater than 7000.
57
00:04:24,280 --> 00:04:27,010
But if that changes, it makes it a lot more difficult.
58
00:04:27,070 --> 00:04:29,330
So I'm going to stick with the sell reference.
59
00:04:30,310 --> 00:04:35,800
Close the bracket, enter and there I get my total and I could carry on going.
60
00:04:35,800 --> 00:04:40,090
If I had six pieces of criteria, I could use some ifs for that as well.
61
00:04:40,300 --> 00:04:44,080
And this works pretty much the same when you're using count ifs.
62
00:04:44,260 --> 00:04:47,200
For this example, we have two pieces of criteria.
63
00:04:47,200 --> 00:04:54,160
I'm looking to find the total number of employees at comp you take with the job titles sales manager.
64
00:04:54,880 --> 00:05:01,630
So for this, we can use count if this time criteria range one.
65
00:05:02,200 --> 00:05:04,520
Well, our first piece of criteria is competence.
66
00:05:04,690 --> 00:05:07,300
We're going to find that in this range just here.
67
00:05:08,230 --> 00:05:10,660
And our criteria is competence.
68
00:05:12,010 --> 00:05:18,970
Our second criteria range is going to be the job title range because our second piece of criteria is
69
00:05:18,970 --> 00:05:20,380
sales manager.
70
00:05:21,670 --> 00:05:24,970
Close the bracket and and there we go.
71
00:05:25,720 --> 00:05:29,530
Let's do the final one because practice does make perfect criteria.
72
00:05:29,530 --> 00:05:30,220
Range one.
73
00:05:31,590 --> 00:05:32,460
Is the company?
74
00:05:34,290 --> 00:05:43,470
Our criteria is competing criteria range to is the job title and our criteria is sales manager criteria
75
00:05:43,470 --> 00:05:46,710
three is less than 9000.
76
00:05:46,740 --> 00:05:53,100
So we're going to select total sales and less than 9000 is our criteria range.
77
00:05:54,030 --> 00:05:57,420
Close the bracket, sir, and I get my results.
78
00:05:57,750 --> 00:06:01,980
Hopefully, you're getting the idea, but let's just finish this off by doing the average.
79
00:06:01,990 --> 00:06:06,210
So we're going to say average if.
80
00:06:08,250 --> 00:06:15,360
Our average range is going to be our total sales, that's what we want to find, the average of criteria
81
00:06:15,360 --> 00:06:18,240
range one is going to be the company.
82
00:06:18,570 --> 00:06:27,690
And the criteria is competence criteria range to is the job title and the criteria is sales rep.
83
00:06:28,710 --> 00:06:30,470
Close the bracket, hit enter.
84
00:06:30,690 --> 00:06:32,490
And there I get my average.
85
00:06:32,880 --> 00:06:36,830
Now it's worth noting that we have these formulas for men and Macs as well.
86
00:06:36,840 --> 00:06:43,050
So if I just show you a quick example, we do have a men ifs that we could use if I wanted to find the
87
00:06:43,050 --> 00:06:44,690
minimum value in a range.
88
00:06:44,700 --> 00:06:50,340
So if I wanted to find the minimum sale, I could choose the total sales as my minimum range.
89
00:06:50,940 --> 00:06:55,530
My criteria might be the minimum sales for comp tech.
90
00:06:55,770 --> 00:07:02,460
So my criteria range would be the company criteria one that's just grab comp tech from over here.
91
00:07:02,910 --> 00:07:07,980
I could carry on going if I had more pieces of criteria, but effectively I would do exactly the same
92
00:07:07,980 --> 00:07:12,000
thing is going to give me the minimum amount of sales for comp tech.
9174
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.