Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:06,240 --> 00:00:11,850
It's time now to do exercise three, where we're going to practice some of the skills that we've learned
2
00:00:11,850 --> 00:00:14,730
in this section on sorting and filtering.
3
00:00:15,450 --> 00:00:18,660
So there are a couple of different things I'd like you to do here.
4
00:00:19,350 --> 00:00:23,220
Once again, we have on the left hand side, just a small table.
5
00:00:23,670 --> 00:00:30,630
It shows me some countries listed out the regions those countries belong to, the revenue and the profit
6
00:00:30,630 --> 00:00:31,710
that they've generated.
7
00:00:32,460 --> 00:00:39,330
And the first thing I'd like you to do here is I'd like you to create a unique list of all of the regions,
8
00:00:39,840 --> 00:00:42,930
and I'd like you to do that using an excel function.
9
00:00:43,410 --> 00:00:51,060
And then once you have that unique list, I'd like you to use that list to create a data validation
10
00:00:51,060 --> 00:00:54,260
dropdown list and sell f four.
11
00:00:54,660 --> 00:01:01,080
And then finally, if we cast our eyes over to the right hand side notice that I have the same column
12
00:01:01,080 --> 00:01:02,610
headings running across the top.
13
00:01:02,820 --> 00:01:10,710
I'd like you to create a filter that filters results by the region selected cell f full.
14
00:01:11,100 --> 00:01:18,390
And I'd like you to include a meaningful message so that if there are no records, we don't get an error.
15
00:01:18,480 --> 00:01:21,960
We get a message that says no records.
16
00:01:22,320 --> 00:01:27,960
So to give you a little bit of an idea as to which direction to go in, you're going to need to be using
17
00:01:27,960 --> 00:01:33,060
the unique function and also the filter function to complete this exercise.
18
00:01:33,570 --> 00:01:37,350
And then the second part of this exercise is sorting data.
19
00:01:38,040 --> 00:01:45,270
So once again, we have similar information, and I want you to use the sort by function to sort the
20
00:01:45,270 --> 00:01:50,250
athletes by root and position in ascending order.
21
00:01:50,550 --> 00:01:55,100
So now is the time to pause the video, give the exercise a go.
22
00:01:55,110 --> 00:01:59,220
And if you get stuck or you'd like to see my answer, then please keep watching.
23
00:01:59,370 --> 00:02:04,380
So the first thing we need to do here is we need to create a unique list of the regions.
24
00:02:04,980 --> 00:02:07,650
So to do this, I'm going to kind of go over here.
25
00:02:07,650 --> 00:02:07,940
So.
26
00:02:08,580 --> 00:02:15,810
So I'm in a blank space and I'm going to use the unique function now for this, or we need to do is
27
00:02:15,810 --> 00:02:17,310
to select the range.
28
00:02:17,320 --> 00:02:20,160
So we want a unique list of the regions.
29
00:02:20,700 --> 00:02:22,830
So a control shift down arrow.
30
00:02:22,890 --> 00:02:25,170
I'm working up in the formula bar now.
31
00:02:26,370 --> 00:02:30,210
Close the bracket, enter and there is my unique list.
32
00:02:31,690 --> 00:02:38,770
So now I want to use this unique list to create a data validation dropdown list in cell full.
33
00:02:39,640 --> 00:02:45,460
So let's clicking seller for up to data into data validation.
34
00:02:46,780 --> 00:02:55,270
We're going to create a list and the source for our list is going to be our unique list in column and
35
00:02:56,140 --> 00:02:56,740
click on.
36
00:02:57,310 --> 00:02:57,910
OK.
37
00:02:58,480 --> 00:03:02,650
And now I have my little dropdown arrow and I can select my different regions.
38
00:03:03,370 --> 00:03:09,700
Remember, if you don't want these visible in Column M, you can simply right click and hide that column.
39
00:03:10,090 --> 00:03:16,210
Now, the second part of this exercise was to create a filter that filters the results by the region
40
00:03:16,240 --> 00:03:18,730
selected in f four.
41
00:03:19,090 --> 00:03:22,870
And I wanted you to add a meaningful message if there are no records.
42
00:03:23,740 --> 00:03:29,890
So what we're going to do here is we're going to use the filter function now for this, our array is
43
00:03:29,890 --> 00:03:32,920
going to be everything that we have in this table.
44
00:03:33,520 --> 00:03:36,850
And then we need to tell the function what it is we want to include.
45
00:03:37,420 --> 00:03:44,620
So I basically want to include all the records where the region is Australasia, so I'm going to include
46
00:03:45,340 --> 00:03:46,480
the region.
47
00:03:47,860 --> 00:03:57,550
When it's equal to whatever we have in Cell F full coma, what do I want it to do if it's empty?
48
00:03:57,700 --> 00:04:02,810
Well, I want to add a message that says no records and close the bracket.
49
00:04:03,550 --> 00:04:04,540
Let's enter.
50
00:04:05,200 --> 00:04:07,450
And would you take a look at that is picked out?
51
00:04:07,960 --> 00:04:09,760
All of those results from the table?
52
00:04:10,210 --> 00:04:15,850
And because this is dynamic, if I change the region to Europe, I'm going to get an updated list of
53
00:04:15,850 --> 00:04:16,390
results.
54
00:04:16,630 --> 00:04:24,190
The second part of this exercise was to sort our data, and I want you to use the salt by function to
55
00:04:24,190 --> 00:04:30,490
do this, and I'm going to salt the athletes by their root and position in ascending order.
56
00:04:31,270 --> 00:04:37,720
So once again in Sochi, we're going to use the salt by formula.
57
00:04:38,140 --> 00:04:39,160
My array will.
58
00:04:39,160 --> 00:04:41,250
This is going to be all of my data.
59
00:04:41,260 --> 00:04:44,020
So let's select everything that we have in here.
60
00:04:44,530 --> 00:04:47,430
I'm going to work up in that formula bar comma.
61
00:04:47,530 --> 00:04:49,360
What do I want to sort by?
62
00:04:49,450 --> 00:04:51,340
Well, I want to sort by two things.
63
00:04:51,340 --> 00:04:58,900
I want to sort by the root and position in ascending order so that by array, one argument is going
64
00:04:58,900 --> 00:05:00,010
to be the root.
65
00:05:00,250 --> 00:05:01,300
So let's select.
66
00:05:02,500 --> 00:05:08,770
Everything that we have to say, that comma sort order one will I want to saw in ascending order?
67
00:05:08,860 --> 00:05:13,930
So we're going to add a one just there comma by array.
68
00:05:14,290 --> 00:05:22,750
So now I want to soar by the position, so we're going to select the position column comma and I want
69
00:05:22,750 --> 00:05:25,240
to soar by ascending order again.
70
00:05:25,240 --> 00:05:29,640
So a one on the end that close the bracket ends.
71
00:05:30,090 --> 00:05:31,570
And would you take a look at that?
72
00:05:31,570 --> 00:05:34,960
We're now sorting by route, first of all, in alphabetical order.
73
00:05:34,960 --> 00:05:40,900
So I have Islip first and then West Slope and then we're sorting by the position.
7258
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.