Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,520 --> 00:00:08,310
It's time now to do exercise one.
2
00:00:09,030 --> 00:00:13,950
And in this exercise, we're going to practice some of the skills that we've learned in this section
3
00:00:13,950 --> 00:00:15,780
on logical functions.
4
00:00:16,650 --> 00:00:25,230
So in the first part of this exercise, I'd like you to use either nested f's or the if s function and
5
00:00:25,230 --> 00:00:29,490
complete the prize money field in the table and you'll notice on the right.
6
00:00:29,490 --> 00:00:33,540
We have a smaller table which contains the information that we're looking for.
7
00:00:33,690 --> 00:00:39,120
And remember, if you're going to copy this formula down, then you need to make sure that you're looking
8
00:00:39,120 --> 00:00:41,250
at those cell references in place.
9
00:00:41,460 --> 00:00:47,940
In the second part of this exercise, we have a similar table, but this time I'd like you to practice
10
00:00:47,940 --> 00:00:50,610
using count if some efforts count.
11
00:00:50,610 --> 00:00:58,740
If and some ifs are not to use those formulas and complete the results in Column H, so it's time to
12
00:00:58,740 --> 00:01:00,990
pause this video and give that a go.
13
00:01:01,440 --> 00:01:04,590
If you'd like to see the answer, then please keep watching.
14
00:01:04,890 --> 00:01:11,700
So in this exercise, we need to use nested ifs or the F as function to work out the prize money.
15
00:01:12,360 --> 00:01:15,240
So I'm going to use if s to do this.
16
00:01:16,140 --> 00:01:18,080
So we want a first logical test.
17
00:01:18,090 --> 00:01:27,240
Well, our logical test is if the medal is equal to bronze f four to lock that cell reference.
18
00:01:27,900 --> 00:01:34,110
If that's true, then they're going to get $100 in prize money f for to lock comma.
19
00:01:34,830 --> 00:01:38,700
Because I'm using F s, I can go straight into logical test number two.
20
00:01:39,420 --> 00:01:50,430
If the value in Cell D four is equal to silver, then they're going to get $250 in prize money.
21
00:01:51,210 --> 00:02:02,550
And the last logical test is if the value in D four is equal to gold, then they're going to get $500
22
00:02:03,090 --> 00:02:09,060
in prize money close of the bracket hit enter and now we can copy this down.
23
00:02:09,690 --> 00:02:12,270
And if we do a quick spot check, let's take a look.
24
00:02:12,270 --> 00:02:18,630
Every time we have gold, we have five hundred bronze, we have 100 and silver, we have two hundred
25
00:02:18,630 --> 00:02:19,360
and fifty.
26
00:02:19,620 --> 00:02:22,170
Let's take a look at the second part of the exercise.
27
00:02:22,500 --> 00:02:26,280
Well, here we need to use count ifs and some ifs.
28
00:02:26,520 --> 00:02:32,040
So in the first table here, we need to find the number of athletes from the USA.
29
00:02:32,130 --> 00:02:34,140
Now we only have one piece of criteria.
30
00:02:34,140 --> 00:02:39,420
So for this, I'm going to use count if my criteria is going to be USA.
31
00:02:39,690 --> 00:02:42,330
Where am I going to find that I'm going to find it in the country?
32
00:02:42,330 --> 00:02:44,560
Column control shift down Arrow.
33
00:02:45,060 --> 00:02:50,910
I'm going to work on this up in the formula bar and my criteria because I don't have it contained within
34
00:02:50,910 --> 00:02:51,470
a cell.
35
00:02:51,480 --> 00:02:52,920
I'm going to need to type that in.
36
00:02:53,400 --> 00:02:56,010
So let's put USA in quote marks.
37
00:02:56,430 --> 00:02:59,390
Close the bracket and enter the next one.
38
00:02:59,400 --> 00:03:03,510
We have two pieces of criteria, so we need to use count ifs.
39
00:03:03,780 --> 00:03:08,490
So our first piece of criteria is going to be that the athlete is from Australia.
40
00:03:08,500 --> 00:03:14,880
So our criteria range number one is going to be the country column control shift down Arrow.
41
00:03:15,630 --> 00:03:17,520
Let's work on this up in the formula bar.
42
00:03:18,240 --> 00:03:27,570
Our first piece of criteria is Australia Criteria Range two, while our second piece of criteria is
43
00:03:27,570 --> 00:03:28,260
female.
44
00:03:28,410 --> 00:03:37,560
So our criteria range is going to be the gender column comma and our criteria is going to be f close
45
00:03:37,560 --> 00:03:40,710
the bracket hit enter and there I get my result.
46
00:03:41,730 --> 00:03:44,360
And finally, we have three pieces of criteria here.
47
00:03:44,370 --> 00:03:51,780
So count if again, we're looking for athletes from the UK who are male, who achieved a silver medal.
48
00:03:51,790 --> 00:03:53,640
So three pieces of criteria.
49
00:03:54,480 --> 00:03:58,140
Our first criteria range is the country control shift down arrow.
50
00:03:59,080 --> 00:04:00,770
Up in the Formula Bar once again.
51
00:04:01,690 --> 00:04:09,580
And criteria number one is UK criteria range two is the gender.
52
00:04:09,760 --> 00:04:12,630
So let's select that control shift down arrow.
53
00:04:13,450 --> 00:04:21,040
And our criteria this time is male and a third criteria range is the colour of their medals.
54
00:04:21,040 --> 00:04:22,930
So let's select that.
55
00:04:23,920 --> 00:04:28,300
And this time we are looking for silver medals.
56
00:04:28,960 --> 00:04:32,470
Close the bracket, hit enter and there we get the result.
57
00:04:32,650 --> 00:04:39,070
And finally, I asked you to work out the total prize money for various different pieces of criteria.
58
00:04:39,160 --> 00:04:45,940
So for this, we're going to use the sum if function for the first one, we just need some f because
59
00:04:45,940 --> 00:04:48,250
we only have one piece of criteria.
60
00:04:48,460 --> 00:04:50,440
Our criteria is the USA.
61
00:04:50,450 --> 00:04:56,800
So our range is going to be the country control shift down arrow and then we need to put our criteria
62
00:04:56,890 --> 00:04:57,820
in quote marks.
63
00:04:58,750 --> 00:05:05,350
And then as some range is going to be the prize money control shift down, Arrow closed that bracket
64
00:05:05,650 --> 00:05:06,430
and enter.
65
00:05:06,670 --> 00:05:11,890
Now we need to do some ifs because we have multiple pieces of criteria.
66
00:05:12,580 --> 00:05:17,710
This time we have the some range, first of all, so we're going to sum the prize money once again.
67
00:05:17,980 --> 00:05:25,960
Criteria range one is going to be the gender and the gender we're looking for this time is female.
68
00:05:26,290 --> 00:05:32,770
And then a final piece of criteria is that we're looking for Canadian athletes only.
69
00:05:33,460 --> 00:05:40,720
So we want our criteria range to be the country and our criteria is going to be Canada.
70
00:05:41,020 --> 00:05:47,080
Now, the final one was a little bit unfair of me, really, because I didn't actually show you this
71
00:05:47,080 --> 00:05:52,870
in the lesson, but I wanted to show you this in the exercise just so you can see something else that
72
00:05:52,870 --> 00:05:54,610
you can do with some ifs.
73
00:05:55,540 --> 00:06:01,120
Now for this one, we want to total the prize money for North America, so that's going to be the USA
74
00:06:01,120 --> 00:06:02,020
and Canada.
75
00:06:02,590 --> 00:06:06,520
So we have two pieces of criteria that are coming from the same column.
76
00:06:07,300 --> 00:06:08,760
So how would we do this?
77
00:06:08,770 --> 00:06:11,620
Well, if you worked this out, well done.
78
00:06:12,430 --> 00:06:14,140
It's not too hard to work out.
79
00:06:14,140 --> 00:06:18,400
But what we need to do here is basically perform to some miscalculations.
80
00:06:19,180 --> 00:06:27,700
So let's start out with our sum if we want our range, so our criteria is going to be USA.
81
00:06:27,720 --> 00:06:30,880
First of all, so our range is going to be the country range.
82
00:06:31,960 --> 00:06:40,090
And our criteria is going to be USA and we want to specify as some range which is going to be the prize
83
00:06:40,090 --> 00:06:40,540
money.
84
00:06:41,470 --> 00:06:47,860
Now what we need to do here is close off the bracket and then say that we want to plus and then go straight
85
00:06:47,860 --> 00:06:49,420
into the next sum.
86
00:06:49,430 --> 00:06:54,310
If so, again, our range is going to be the country.
87
00:06:55,090 --> 00:06:58,570
But this time the criteria is Canada.
88
00:07:01,080 --> 00:07:08,940
And then finally, the sum range is the prize money and close the bracket, so we're just doing to some
89
00:07:08,940 --> 00:07:14,670
ifs and we're adding them together so that we can get the total for two pieces of criteria that are
90
00:07:14,670 --> 00:07:16,260
coming from the same column.
91
00:07:17,040 --> 00:07:18,010
Let's say enter.
92
00:07:18,240 --> 00:07:19,870
And that is our answer.
93
00:07:20,610 --> 00:07:22,520
So hopefully you got most of those.
94
00:07:22,530 --> 00:07:28,020
I wouldn't expect you to get the last one, but if you did, very well done, I will see you in the
95
00:07:28,020 --> 00:07:29,130
next section.
9511
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.