Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,130 --> 00:00:11,400
In this section, we're going to talk about sorting and filtering data, because sorting and filtering
2
00:00:11,430 --> 00:00:16,140
are two of the primary tools when it comes to helping you analyze your data.
3
00:00:16,380 --> 00:00:22,260
I'm going to start now in this lesson by running through how to sort on multiple columns.
4
00:00:22,530 --> 00:00:28,260
Now, when we sought our data, it basically allows us to organize our data into a more logical format
5
00:00:28,260 --> 00:00:34,080
that is a lot easier for us to read and interpret, and most of us know how to do a basic sort.
6
00:00:34,290 --> 00:00:41,700
So for example, if I wanted to sort this table of data by the last name in alphabetical order, I could
7
00:00:41,700 --> 00:00:45,660
click in that column and then I have a few different options when it comes to sorting.
8
00:00:46,380 --> 00:00:49,260
I could use my home tab over in the editing group.
9
00:00:49,260 --> 00:00:55,690
I have a certain field to drop down and I can choose to sort that column in a to z order or Z to eight.
10
00:00:56,490 --> 00:01:03,770
I could also right click my mouse and I have sought options in here once again, A2Z all said today.
11
00:01:04,590 --> 00:01:11,400
And I have a third option of the data ribbon in the sort of filter group we have sought A to Z and Z
12
00:01:11,400 --> 00:01:12,840
to Albertson's in here.
13
00:01:12,870 --> 00:01:16,280
Now I'm not going to demonstrate those because this is an intermediate course.
14
00:01:16,280 --> 00:01:19,710
So by now we should know that that is how you do a basic sort.
15
00:01:19,890 --> 00:01:25,170
What I want to focus on in this lesson is how we can do a more advanced sort where we're sorting on
16
00:01:25,170 --> 00:01:26,430
multiple columns.
17
00:01:26,640 --> 00:01:31,410
So a lot of the time when you're faced with a data set, you don't just simply want to sort by one column,
18
00:01:31,710 --> 00:01:35,790
you want to sort by maybe two three, four five, so on and so forth.
19
00:01:36,510 --> 00:01:42,150
And in fact, you can sort by every single column in your dataset if you wanted to.
20
00:01:42,330 --> 00:01:46,140
So let's take a look at how we would perform a sort on multiple columns.
21
00:01:46,410 --> 00:01:50,400
Now, for this particular sort, you don't need to click in any column in particular.
22
00:01:50,640 --> 00:01:56,250
And as we already on the data tab, I'm going to use the salt button that we have in the Salt and Filter
23
00:01:56,250 --> 00:01:56,580
Group.
24
00:01:56,790 --> 00:02:01,830
So when we click on this large Ibbotson, it's going to open up this little salt dialog box.
25
00:02:02,310 --> 00:02:06,030
And this allows us to choose which columns we want to so on.
26
00:02:06,300 --> 00:02:12,270
So if I click this first one where we have sought by, it's going to show me all of the columns that
27
00:02:12,270 --> 00:02:13,830
I currently have in my dataset.
28
00:02:14,010 --> 00:02:16,440
So I want to sort by the last name.
29
00:02:16,440 --> 00:02:21,090
First of all, I can then choose what I want to source on so I can sort on cell values.
30
00:02:21,090 --> 00:02:24,780
So color, font, color or a conditional formatting icon.
31
00:02:25,590 --> 00:02:32,670
Now in this example, we're going to sort on the cell value and then I can choose my sort order A to
32
00:02:32,670 --> 00:02:36,060
Z, Z to A or using a custom list.
33
00:02:36,600 --> 00:02:40,320
And I'm going to show you how to sort using custom lists in the next lesson.
34
00:02:40,560 --> 00:02:44,760
For the time being, I'm just going to sort by last name A to Z.
35
00:02:45,090 --> 00:02:52,290
Now, if I then want to sort by another column, I can simply add a level and then repeat this process.
36
00:02:52,560 --> 00:03:01,530
So once we've sorted by last name A to Z, I might then want to sort by the city on the cell values,
37
00:03:01,680 --> 00:03:04,350
A to Z at another level.
38
00:03:04,590 --> 00:03:09,840
And this time let's sort by the town on the cell values.
39
00:03:09,840 --> 00:03:15,510
But this time let's do Z to I and I could carry on going in the same way.
40
00:03:15,690 --> 00:03:17,640
If I want to copy a level I can.
41
00:03:17,640 --> 00:03:21,510
I have a copy level button above and that's just going to give me another one just here.
42
00:03:21,660 --> 00:03:28,890
If I want to delete a sword, I can select it and click Delete Level, and I can also reorder my source.
43
00:03:29,040 --> 00:03:35,610
So if I decide that I want to sort by the town, first of all, I can select it and move it up to the
44
00:03:35,610 --> 00:03:36,600
top of the list.
45
00:03:37,500 --> 00:03:39,840
Now I don't, so let's put that back down again.
46
00:03:40,140 --> 00:03:45,210
And then we have an options button in here as well, which allows us to specify a fast sort is case
47
00:03:45,210 --> 00:03:49,200
sensitive, and we can also choose the orientation of our data.
48
00:03:49,890 --> 00:03:55,770
So when I have my data organized in this way, so vertically with my column headings in the columns,
49
00:03:55,980 --> 00:03:57,450
I want to sort top to bottom.
50
00:03:57,990 --> 00:04:03,420
But if I had my data organized horizontally, I could choose to saw from left to right.
51
00:04:03,600 --> 00:04:05,880
So don't forget about that options button.
52
00:04:06,150 --> 00:04:09,510
So let's click on OK and see how that affects our dataset.
53
00:04:09,720 --> 00:04:10,500
Well, there we go.
54
00:04:11,160 --> 00:04:16,650
So the first thought I did was to sort by last name A to Z, and I can see that, yes, that looks to
55
00:04:16,650 --> 00:04:17,250
be correct.
56
00:04:18,390 --> 00:04:21,300
I'm then sorting by City A to Z.
57
00:04:21,540 --> 00:04:25,840
So this becomes more obvious when we go down to a last name where we have two entries.
58
00:04:25,860 --> 00:04:32,340
So here we have two entries where the last name begins with C and these two should be in alphabetical
59
00:04:32,340 --> 00:04:32,700
order.
60
00:04:32,700 --> 00:04:38,770
So East Sussex and then London, the same here for Hernandez because we have two of them.
61
00:04:38,790 --> 00:04:41,070
These are in a to z order.
62
00:04:41,250 --> 00:04:45,690
And then finally, we sorted by Town Z to A.
63
00:04:45,840 --> 00:04:48,240
So our sort appears to be working correctly.
64
00:04:48,450 --> 00:04:54,300
Now you're not just limited to performing multiple sorts using the cell value.
65
00:04:54,420 --> 00:05:00,240
For example, if I had some rows in my data that had a background fill, so I'm just going to go through
66
00:05:00,570 --> 00:05:04,200
and let's just fill these, let's fill them with a bright yellow.
67
00:05:04,690 --> 00:05:07,990
Is going to do a few rows just here like that.
68
00:05:08,860 --> 00:05:15,190
What I could do if I wanted to bring all of the highlighted rose to the top is I can sort by the cell
69
00:05:15,190 --> 00:05:15,700
color.
70
00:05:15,850 --> 00:05:20,650
So once again, let's right click this time and take a look at a different way of getting to us sort
71
00:05:20,650 --> 00:05:21,250
options.
72
00:05:21,490 --> 00:05:24,670
I can right click go to salt and custom salt.
73
00:05:24,910 --> 00:05:29,350
I want I'm going to do is just delete out the current salts that we have applied.
74
00:05:30,400 --> 00:05:36,220
So now I can add a level I can choose to salt by, and let's go for last name again.
75
00:05:36,520 --> 00:05:42,010
But this time, instead of sorting on the cell values, I'm going to salt by the cell color.
76
00:05:42,160 --> 00:05:45,490
And then I get an additional box just here called order.
77
00:05:45,970 --> 00:05:48,850
And that's going to pick up all of the background.
78
00:05:48,850 --> 00:05:52,410
So colors that I have in this dataset, so I only have one.
79
00:05:52,420 --> 00:05:55,300
So I want to soar by the yellow background fill.
80
00:05:55,840 --> 00:05:58,600
I want to place those items at the top of the list.
81
00:05:58,990 --> 00:06:01,900
Let's click on OK, and it pulls those to the top.
82
00:06:02,140 --> 00:06:07,390
Now I'm going to undo a few times just to remove that yellow background shading because the same works,
83
00:06:07,390 --> 00:06:09,820
if the font is a different color as well.
84
00:06:10,300 --> 00:06:15,670
So let's just make these a few of these red, for example, those ones just there.
85
00:06:16,510 --> 00:06:22,840
And this time we're going to use the home ribbon in the editing group, sort and filter and custom salts.
86
00:06:23,800 --> 00:06:29,650
Once again, I'm going to delete out all of these current salt levels at a new level.
87
00:06:30,070 --> 00:06:35,260
I'm going to salt by the last name, but this time we're going to salt by font color.
88
00:06:35,920 --> 00:06:40,870
Now, when I click the dropdown here, you can see I have two options because my heading rows contain
89
00:06:40,870 --> 00:06:42,220
a light blue colored font.
90
00:06:42,850 --> 00:06:45,630
So I want to sort by the red font entries.
91
00:06:45,640 --> 00:06:46,600
I want them on top.
92
00:06:46,810 --> 00:06:47,650
Click on OK.
93
00:06:47,680 --> 00:06:49,870
And those are pulled to the top of the list.
94
00:06:50,200 --> 00:06:55,570
And in the same way, if I had conditional formatting icons in any of these cells on the conditional
95
00:06:55,570 --> 00:06:59,110
formatting icon and bring those entries to the top of the list as well.
96
00:06:59,230 --> 00:07:01,060
So pretty easy to sort.
97
00:07:01,060 --> 00:07:03,580
Have a little play around with that and see how you get on.
10165
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.