All language subtitles for 5. Splitting Data using Text Functions

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French Download
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:05,290 --> 00:00:10,990 In this lesson, I'm going to show you how you can split up data using text functions. 2 00:00:11,800 --> 00:00:17,650 And if we jump across to the Formulas tab and take a look in the text group in our functions library, 3 00:00:18,010 --> 00:00:21,940 this is where are you going to find all of the commands that are going to be using? 4 00:00:22,360 --> 00:00:26,230 And you can see we have so many different text functions in here. 5 00:00:26,500 --> 00:00:33,580 Now, I will say that for certain pieces of text, using text functions is a pretty easy endeavor, 6 00:00:33,970 --> 00:00:40,720 but sometimes it can get extremely complicated and I'm going to show you how complex it can get at the 7 00:00:40,720 --> 00:00:41,980 end of this lesson. 8 00:00:42,250 --> 00:00:48,370 And then in the next lesson, I'm going to show you the way that I split up my data all the time because 9 00:00:48,370 --> 00:00:49,750 it is so much easier. 10 00:00:50,380 --> 00:00:55,180 But it's good to have this basic knowledge of text functions because you will find yourself using them 11 00:00:55,180 --> 00:00:58,510 from time to time, particularly when combined with other functions. 12 00:00:59,020 --> 00:01:01,690 So let's take a look at some of them and how they work. 13 00:01:02,020 --> 00:01:08,800 Now, in this first example, I have just a small list of part numbers, and maybe I want to split these 14 00:01:08,800 --> 00:01:09,100 up. 15 00:01:09,100 --> 00:01:15,880 So I have the first three characters in the code column the middle, three characters in the identifier 16 00:01:15,880 --> 00:01:19,840 column and the last three characters in the part column. 17 00:01:20,080 --> 00:01:24,010 Now I could use text two columns to do this, but we're not going to do that. 18 00:01:24,010 --> 00:01:25,660 We're going to use text functions. 19 00:01:26,560 --> 00:01:32,410 So the first thing I want to extract from this string is the code, and the code is the first three 20 00:01:32,410 --> 00:01:33,850 characters of this string. 21 00:01:34,120 --> 00:01:40,480 So the function I'm going to use here is equals left because we're going to work from the left hand 22 00:01:40,480 --> 00:01:41,470 side of the cell. 23 00:01:41,560 --> 00:01:43,930 We have two arguments for this function. 24 00:01:43,960 --> 00:01:45,490 The first argument is text. 25 00:01:45,730 --> 00:01:50,830 So that is the cell that contains the text we want to extract. 26 00:01:51,190 --> 00:01:56,440 And this is a simple case of entering in how many characters we want to extract from the left. 27 00:01:57,220 --> 00:02:04,900 So because all of these are consistent, I want to extract three characters close the bracket, enter 28 00:02:05,140 --> 00:02:08,430 and I can simply double click to copy that down. 29 00:02:09,310 --> 00:02:13,230 Because all of these part numbers are very consistent in their format. 30 00:02:13,240 --> 00:02:17,200 They all have three characters three characters, three characters. 31 00:02:17,440 --> 00:02:24,220 Now, if I want to extract the middle three characters for this, I would use another text function 32 00:02:24,220 --> 00:02:28,450 called Mitt, and we have an additional argument here. 33 00:02:28,630 --> 00:02:30,040 So our first argument is text. 34 00:02:30,040 --> 00:02:31,480 So that is the cell. 35 00:02:31,630 --> 00:02:33,790 We then want the start number. 36 00:02:33,940 --> 00:02:38,770 So I need to count to cross until I get to the first character that I want to extract. 37 00:02:39,340 --> 00:02:48,430 So one two three four, I want to start from the fifth character and then I want to extract the next 38 00:02:48,550 --> 00:02:49,990 three characters. 39 00:02:51,070 --> 00:02:58,960 Close the bracket control answer and I can double click to copy that down, and I've extracted the middle 40 00:02:58,960 --> 00:03:00,040 part of this string. 41 00:03:00,190 --> 00:03:01,510 And then the final one. 42 00:03:01,510 --> 00:03:03,910 I want to extract the last three characters. 43 00:03:04,240 --> 00:03:07,270 For this, we use the write function. 44 00:03:07,990 --> 00:03:13,480 Once again, we select the text string and then the number of characters from the right that we want 45 00:03:13,480 --> 00:03:14,170 to extract. 46 00:03:14,440 --> 00:03:20,590 So three, in this case control enter and then double click to copy down. 47 00:03:20,860 --> 00:03:24,500 Now, extracting text in this way is all well and good. 48 00:03:24,970 --> 00:03:30,280 And if you have very consistent numbers or strings, then this works really well. 49 00:03:30,280 --> 00:03:36,640 It's super simple to put together, but more often than not you have data that isn't consistent. 50 00:03:37,330 --> 00:03:39,100 So let me show you an example. 51 00:03:39,520 --> 00:03:43,510 And again, if we take a look at this data down here, maybe this is something that we've imported. 52 00:03:43,810 --> 00:03:49,180 We basically have four pieces of information combined into one cell and separated by a comma. 53 00:03:49,960 --> 00:03:56,650 So if I want to extract the employee name from each of the cells, I'm not going to be able to do it 54 00:03:56,650 --> 00:03:58,030 using the left function. 55 00:03:58,720 --> 00:04:05,800 Because if this works for the first one, so let's say left, I want to extract from this cell number 56 00:04:05,800 --> 00:04:06,670 of characters. 57 00:04:07,210 --> 00:04:13,150 Well, for this first one, if I want to extract the entire name, that is one two three four five six 58 00:04:13,150 --> 00:04:15,580 seven eight nine nine characters. 59 00:04:15,580 --> 00:04:19,600 We need to count the space as a character so I could type in nine. 60 00:04:20,020 --> 00:04:24,280 Close the bracket answer and once that works for the first one. 61 00:04:24,520 --> 00:04:31,090 When I copy this down, it doesn't work for the others because these are not all consistent in their 62 00:04:31,090 --> 00:04:31,540 length. 63 00:04:31,780 --> 00:04:36,040 And this is where using text functions becomes a lot more complex. 64 00:04:36,760 --> 00:04:40,720 So let me show you how I could extract the name from this cell. 65 00:04:41,560 --> 00:04:43,840 We need to do something a little bit different. 66 00:04:44,110 --> 00:04:49,630 So what I'm going to do here is we are going to use left, but we're going to go about this in a different 67 00:04:49,630 --> 00:04:49,990 way. 68 00:04:50,050 --> 00:04:53,020 Now we're going to specify the cell A12. 69 00:04:53,290 --> 00:04:58,930 But when it comes to the number of characters, we need to think about this in a different way. 70 00:04:59,530 --> 00:05:02,890 I can't just count across to extract the number of characters. 71 00:05:03,190 --> 00:05:04,690 So what I'm going to do is look at this. 72 00:05:04,790 --> 00:05:10,790 Data and think to myself, is there any common identifier that I could use here? 73 00:05:11,600 --> 00:05:15,860 Well, I know that after every single name, we have a comma. 74 00:05:16,670 --> 00:05:23,630 So maybe I could find the comma in this string and then extract everything before it. 75 00:05:24,020 --> 00:05:25,580 And that would give me the name. 76 00:05:25,910 --> 00:05:30,800 So the first thing I need to do here is I need to find that first delimiter, that first comma. 77 00:05:31,520 --> 00:05:35,900 So I'm going to use the find command, another text function. 78 00:05:37,940 --> 00:05:40,280 Now we find we have a few different arguments. 79 00:05:40,640 --> 00:05:43,340 It's asking us which text we want to find. 80 00:05:44,000 --> 00:05:47,990 Well, I want to find a comma now because this is a comma. 81 00:05:48,410 --> 00:05:49,760 It's essentially text. 82 00:05:49,760 --> 00:05:51,360 It needs to go in quote marks. 83 00:05:51,360 --> 00:05:54,050 So I'm going to say, look for this comma. 84 00:05:54,770 --> 00:05:59,390 If you had something else, so maybe you've got a space in there, you could type in a space and put 85 00:05:59,390 --> 00:06:00,560 that between quote marks. 86 00:06:00,890 --> 00:06:03,200 It all depends how your fields are separated. 87 00:06:03,740 --> 00:06:05,210 I'm looking for a comma. 88 00:06:06,440 --> 00:06:08,030 Where am I looking for that comma? 89 00:06:08,360 --> 00:06:11,920 Well, I'm looking for it in cell A-12. 90 00:06:12,230 --> 00:06:17,450 So let's close that off, and let's also close off our left function. 91 00:06:18,020 --> 00:06:21,590 Now, if I was to hit, enter just here, I'm going to get that. 92 00:06:21,680 --> 00:06:23,060 And if I copy it down. 93 00:06:23,420 --> 00:06:28,550 Notice that it has extracted the name, but it's also giving me a comma on the end. 94 00:06:29,240 --> 00:06:35,000 So what I can do to get rid of that comma double click to edit the formula is just on the end here between 95 00:06:35,000 --> 00:06:35,790 these two brackets. 96 00:06:35,810 --> 00:06:42,950 I'm going to say minus one to effectively go back to character, and that's going to get rid of that 97 00:06:42,950 --> 00:06:43,460 comma. 98 00:06:44,270 --> 00:06:48,380 So that formula just there, if you look at it in the formula bar, it isn't too bad. 99 00:06:48,380 --> 00:06:49,660 We start with left. 100 00:06:49,670 --> 00:06:54,650 We then specify the cell and we then just say, find the comma in cell. 101 00:06:54,650 --> 00:06:57,890 A-12 extract a minus one. 102 00:06:57,890 --> 00:07:00,530 So we're not including the comma in that extract. 103 00:07:01,250 --> 00:07:03,350 So that formula isn't too bad. 104 00:07:04,040 --> 00:07:10,490 Where things start to get really complicated is if I then want to extract the job title because that's 105 00:07:10,490 --> 00:07:12,320 in the middle of this data. 106 00:07:12,560 --> 00:07:18,620 Now the formula that you need to put together in order to extract the job title using text functions 107 00:07:18,860 --> 00:07:25,250 is extremely long, very complicated and very much outside the scope of this intermediate course. 108 00:07:25,790 --> 00:07:28,880 But just so you can see how long this formula is. 109 00:07:29,150 --> 00:07:30,380 I've got it over here. 110 00:07:30,680 --> 00:07:35,590 So if I click on this and we take a look at that in the formula bar, would you take a look at that? 111 00:07:35,600 --> 00:07:38,630 We have so many different things going on there. 112 00:07:38,960 --> 00:07:41,270 It's a very long and complicated formula. 113 00:07:41,720 --> 00:07:42,830 It does work. 114 00:07:42,830 --> 00:07:45,230 You can see it has extracted that job title. 115 00:07:45,440 --> 00:07:52,130 But for me, trying to remember this and taking the time to type all of this into a cell is never the 116 00:07:52,130 --> 00:07:55,520 method that I use if I want to extract the job title. 117 00:07:55,790 --> 00:08:01,280 And in the next lesson, I'm going to show you by far the easiest way to split up your data. 118 00:08:01,640 --> 00:08:05,150 So I'm going to jump across there now, and I look forward to you joining me. 11652

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.