Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,250 --> 00:00:11,130
In the next couple of lessons, I'm going to show you some techniques for splitting up information,
2
00:00:11,910 --> 00:00:19,230
and in this first lesson, the method that we're going to use is splitting up data, using text to columns.
3
00:00:19,440 --> 00:00:24,210
Now what do I mean by splitting up data and why is this useful when you're cleaning your data?
4
00:00:24,330 --> 00:00:26,220
Well, let's take a look at a very simple example.
5
00:00:26,220 --> 00:00:31,230
First of all, and then I'll show you how you can use that on the sales spreadsheet that we've been
6
00:00:31,230 --> 00:00:34,090
working on now on this first example.
7
00:00:34,140 --> 00:00:39,030
If you take a look, I've got some information listed in Column A..
8
00:00:39,630 --> 00:00:43,620
And this might be information that I've imported from something like a text file.
9
00:00:44,280 --> 00:00:47,340
And you can see here it basically shows the employee name.
10
00:00:47,400 --> 00:00:50,010
We then have a comma, which we call that delimiter.
11
00:00:50,550 --> 00:00:54,210
We then have that person's job title, then a comma.
12
00:00:54,750 --> 00:00:59,310
Then the department that they work in, then a comma and then their salary.
13
00:00:59,520 --> 00:01:06,180
And this is a very realistic example of what data actually looks like if you imported from a text file
14
00:01:06,180 --> 00:01:07,710
and don't break it up first.
15
00:01:07,920 --> 00:01:14,460
So it's a very real possibility that you might import data and it does look something like this.
16
00:01:14,670 --> 00:01:20,280
And what we basically want to do is we want to break up the data that we have in these cells so that
17
00:01:20,280 --> 00:01:27,180
we have the employee name in one column, job title in another department and salary.
18
00:01:27,450 --> 00:01:30,540
And there are a few different ways that we can do this type of thing.
19
00:01:31,260 --> 00:01:38,370
Now we're going to use the oldest method in Excel, first of all, and that is by using text to columns.
20
00:01:38,550 --> 00:01:42,540
So what I'm going to do is I'm going to select the data that I want to split up.
21
00:01:43,200 --> 00:01:45,630
Let's jump up to the data ribbon.
22
00:01:45,840 --> 00:01:51,840
And in the data tools group, we have a big old button here that says text to columns and the screen
23
00:01:51,840 --> 00:01:59,310
tip says split a single column of text into multiple columns, and that is exactly what I want to do.
24
00:02:00,000 --> 00:02:01,680
So let's click on this button.
25
00:02:01,920 --> 00:02:06,180
Now this is going to basically take you through a convert text to columns with it.
26
00:02:06,630 --> 00:02:11,460
And if you've ever used a wizard before, you'll know that kind of guides you through the process.
27
00:02:11,760 --> 00:02:18,390
Now, the first thing we need to determine here is if our column is a limited or fixed width.
28
00:02:18,540 --> 00:02:25,140
Now, the limited means that your different fields, so your different items, the employee, the department,
29
00:02:25,140 --> 00:02:28,680
the job title, so on and so forth, how they are split up.
30
00:02:28,800 --> 00:02:32,280
So the delimiter that I'm using here is a comma.
31
00:02:32,400 --> 00:02:35,610
I have a comma separating each of my fields.
32
00:02:35,850 --> 00:02:41,130
So I'm going to choose delimited and click on next on the next page.
33
00:02:41,160 --> 00:02:47,970
This is where I can define the type of delimiter I'm using, because it might be that your fields are
34
00:02:47,970 --> 00:02:56,040
separated with a tab, or maybe a comma, or maybe a semicolon or a space, or maybe some other item
35
00:02:56,040 --> 00:02:56,730
entirely.
36
00:02:56,940 --> 00:03:02,700
If you do have your fields separated with something that you can't see listed just here, you can choose
37
00:03:02,850 --> 00:03:09,160
other and then specify in here how your fields are separated now, minus separated with a comma.
38
00:03:09,210 --> 00:03:10,470
So let's choose that option.
39
00:03:11,070 --> 00:03:18,390
And as soon as I do that, you can see in the preview window, it's now splitting my data wherever it
40
00:03:18,390 --> 00:03:19,320
finds a comma.
41
00:03:19,530 --> 00:03:21,300
So that is absolutely perfect.
42
00:03:21,600 --> 00:03:23,040
Let's click on next.
43
00:03:23,340 --> 00:03:27,870
Now here, if I wanted to, I could start applying some formatting to the columns.
44
00:03:28,320 --> 00:03:31,290
Now I'm just going to leave my columns on the default, which is general.
45
00:03:31,680 --> 00:03:34,500
The important thing here is the destination.
46
00:03:35,040 --> 00:03:40,740
So this is where you specify where you want your data to be placed after it's been split up.
47
00:03:41,430 --> 00:03:49,410
So I'm going to remove A4 from there because I want the first item to be in Cell C for let's click on
48
00:03:49,500 --> 00:03:50,070
Finish.
49
00:03:50,730 --> 00:03:53,430
And would you take a look at that very quickly?
50
00:03:53,670 --> 00:03:56,700
It's broken everything up into nice, neat columns.
51
00:03:57,000 --> 00:04:01,470
I can then just go in and do my final pieces of formatting.
52
00:04:01,710 --> 00:04:08,850
So that is a very simple example of how you can use text to columns to break up data into multiple columns.
53
00:04:09,060 --> 00:04:13,890
So now let's take a look at how we might use that on the sales data that we've been working on.
54
00:04:14,640 --> 00:04:20,010
So on the next tab, I've actually made a small change to this worksheet just so I can show you this
55
00:04:20,010 --> 00:04:20,610
example.
56
00:04:21,300 --> 00:04:26,970
Now, if we take a look in Column A, what I've actually done here is I've combined the country with
57
00:04:27,000 --> 00:04:32,790
the product and the product is listed after the country in brackets or parentheses.
58
00:04:33,090 --> 00:04:39,660
So what I want to do here is I want to split up the country and the product into two separate columns.
59
00:04:39,990 --> 00:04:43,530
So for this, I need to add two blank columns.
60
00:04:44,010 --> 00:04:47,600
So control shift plus control shift plus.
61
00:04:48,030 --> 00:04:53,100
And let's call this one country and this one product.
62
00:04:54,150 --> 00:04:57,210
So now I can use text two columns to break up this data.
63
00:04:57,390 --> 00:05:01,800
So the first thing I'm going to do here is control shift down to select all of the data.
64
00:05:02,040 --> 00:05:04,740
Let's go up to the data tab and select.
65
00:05:04,870 --> 00:05:09,310
Text to columns once again, this is going to be a limited.
66
00:05:09,670 --> 00:05:15,130
But this is a bit different to how it was previously because what is separating my two fields, what
67
00:05:15,130 --> 00:05:17,380
is separating the country and the product?
68
00:05:17,920 --> 00:05:24,940
Well, I have a bracket in there, so I'm going to say that I want to split my data where it finds that
69
00:05:24,940 --> 00:05:26,080
first bracket.
70
00:05:26,900 --> 00:05:29,170
If you take a look at the data preview, that's fine.
71
00:05:29,170 --> 00:05:30,640
I've got the country in one column.
72
00:05:30,640 --> 00:05:34,610
I have the product in the next column, but I have a trailing bracket.
73
00:05:34,630 --> 00:05:36,520
Now we're going to deal with that afterwards.
74
00:05:36,730 --> 00:05:38,590
Let's just get this split up, first of all.
75
00:05:39,280 --> 00:05:41,950
So let's click on next and my destination.
76
00:05:42,610 --> 00:05:43,570
Let's remove that.
77
00:05:43,930 --> 00:05:46,090
It's going to be Selby, too.
78
00:05:47,350 --> 00:05:51,040
Now it might be that you get this error that says there's already data here now.
79
00:05:51,040 --> 00:05:52,360
I don't have any data there.
80
00:05:52,540 --> 00:05:55,090
Let's click on OK, and it's still going to put that in.
81
00:05:55,300 --> 00:05:59,890
So now what I can do is I can basically delete out this first column.
82
00:06:00,970 --> 00:06:05,560
Now, the final thing we need to deal with here is this trailing bracket that we have in this column.
83
00:06:05,560 --> 00:06:11,470
We don't need that to be there, so I can get rid of this doing a simple find and replace.
84
00:06:11,680 --> 00:06:15,970
And what that will do is it will allow you to specify what you want to find in this case, a closing
85
00:06:15,970 --> 00:06:19,000
bracket and you can say what you want to replace it with.
86
00:06:19,360 --> 00:06:23,650
And I'm going to replace it with a blank, which will effectively remove it.
87
00:06:24,430 --> 00:06:31,840
So I'm going to select Column B and press control F. Now I'm going to jump across to the Replace tab
88
00:06:31,930 --> 00:06:34,210
and I'm going to specify what it needs to find.
89
00:06:34,420 --> 00:06:41,050
So I'm looking for a closing bracket and I want to replace it with nothing.
90
00:06:41,350 --> 00:06:49,960
So I'm going to leave this blank and replace or it's made 702 replacements and it's got rid of that
91
00:06:49,960 --> 00:06:50,830
closing bracket.
92
00:06:51,400 --> 00:06:53,470
So that is how I could use text to columns.
93
00:06:53,470 --> 00:06:58,680
In a more practical example, in the next lesson, I'm going to show you how you can do the same thing,
94
00:06:58,690 --> 00:07:02,770
how you can split up data, but this time using Excel functions.
9936
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.