All language subtitles for 7. Error Handling with IFERROR and IFNA

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:04,850 --> 00:00:11,870 I just want to finish off this section on logical functions, and if statements by talking a little 2 00:00:11,870 --> 00:00:16,760 bit about how you can use IFS to handle errors in your spreadsheets. 3 00:00:17,030 --> 00:00:21,670 Now if we take a look at this example just here, we're fairly familiar with this data. 4 00:00:21,680 --> 00:00:24,650 This is that bonus spreadsheet we were looking at previously. 5 00:00:24,920 --> 00:00:31,550 Now in this bonus column, if we take a look at the first formula, I've basically set up a formula 6 00:00:31,700 --> 00:00:38,270 to work out the bonus only for people who have a job rating of five or four. 7 00:00:38,930 --> 00:00:41,690 And so you can see that reflected in this column. 8 00:00:41,690 --> 00:00:47,680 So where they have a job rating of four or five, we have the bonus amount, anything under four. 9 00:00:47,690 --> 00:00:51,830 So one, two or three, we have an NSA error in the cell. 10 00:00:52,280 --> 00:00:57,170 And that's because I haven't accounted for job ratings one, two and three in this particular formula. 11 00:00:57,380 --> 00:01:01,280 Now it might be that you are happy to leave your spreadsheet looking like this. 12 00:01:01,690 --> 00:01:07,670 What I will say is that if you do have a spreadsheet that has lots of errors contained within cells, 13 00:01:07,820 --> 00:01:13,250 even if those errors are correctly there, which they are, in this case, it makes your spreadsheet 14 00:01:13,250 --> 00:01:15,470 not only look a little bit messy. 15 00:01:15,890 --> 00:01:21,290 If you were to send this to somebody else who's maybe not familiar with the data, they might think 16 00:01:21,350 --> 00:01:24,020 that these are actual errors that need to be fixed. 17 00:01:24,170 --> 00:01:28,730 What would be much better here would be to add some meaning to these errors. 18 00:01:28,910 --> 00:01:34,640 So maybe instead of and I wanted to say no bonus, which makes it a lot clearer. 19 00:01:34,850 --> 00:01:38,720 Now we can do this by using error handling formulas. 20 00:01:38,930 --> 00:01:43,760 And if we jump up to the Formulas tab in this logical group, you're going to find the two that we're 21 00:01:43,760 --> 00:01:45,710 going to use in this lesson in here. 22 00:01:46,370 --> 00:01:49,600 We're going to take a look at if error and if any. 23 00:01:50,420 --> 00:01:58,190 Now let's start out with if and now what if any will do is it will help you deal with any, any errors 24 00:01:58,190 --> 00:01:59,600 that you have in your spreadsheet. 25 00:02:00,350 --> 00:02:04,700 Now, Anna isn't the only type of error that you might see in sales. 26 00:02:04,700 --> 00:02:09,680 You might see a div. error or a value error or a name error. 27 00:02:10,190 --> 00:02:13,280 And all of these different errors mean different things. 28 00:02:13,460 --> 00:02:23,120 But if you specifically have an any error in a cell, you can use the if and a function to assign meaning 29 00:02:23,120 --> 00:02:23,600 to that. 30 00:02:23,900 --> 00:02:27,260 Now, as we do have an error, we're going to use that function. 31 00:02:27,500 --> 00:02:31,430 Now what I want to do here is let's select the first cell that contains a formula. 32 00:02:31,550 --> 00:02:34,430 Let's jump up and edit this in the formula bar. 33 00:02:34,610 --> 00:02:39,620 Now what we're going to do is we're going to type in F and a that's the formula we're going to use. 34 00:02:39,830 --> 00:02:45,800 Now, notice underneath this particular function has two arguments value and value if an a. 35 00:02:45,830 --> 00:02:49,310 So in other words, value if we find an NA in the cell. 36 00:02:50,300 --> 00:02:57,920 Now the first argument, the value, while the value in this cell is generated by that if s formula. 37 00:02:58,580 --> 00:03:05,870 So effectively, the IFS formula is our first argument is our value so we can click on the end press 38 00:03:05,870 --> 00:03:06,440 coma. 39 00:03:06,770 --> 00:03:11,960 And now all we need to do is simply specify what we want to say in the cell. 40 00:03:12,200 --> 00:03:14,450 If it comes across in an error? 41 00:03:14,660 --> 00:03:16,960 Well, I wanted to say no bonus. 42 00:03:16,970 --> 00:03:21,140 We need to add this in quote marks and close the bracket. 43 00:03:21,800 --> 00:03:26,150 So we've wrapped an infant, a formula around if. 44 00:03:26,150 --> 00:03:27,010 S formula. 45 00:03:27,710 --> 00:03:29,720 Enter and take a look at that. 46 00:03:30,350 --> 00:03:36,770 Now, if I copy this down, I've replaced all of those and Arar's with something that is a lot more 47 00:03:36,770 --> 00:03:37,550 meaningful. 48 00:03:37,940 --> 00:03:40,970 A text string that says no bonus. 49 00:03:41,210 --> 00:03:47,120 Now the if any formula can only be used when you have any errors in your spreadsheet. 50 00:03:47,780 --> 00:03:52,640 And as I said, there are lots of different types of errors that you can get in a cell. 51 00:03:52,760 --> 00:03:57,290 And for any other error, you can't use a fancy to assign any meaning. 52 00:03:58,040 --> 00:04:04,910 That is where we would use the second error handling formula if error if error works in a very similar 53 00:04:04,910 --> 00:04:05,980 way to, if any. 54 00:04:06,200 --> 00:04:10,520 But it will handle all types of errors, not just in errors. 55 00:04:11,180 --> 00:04:13,610 So let's take a look at this in action as well. 56 00:04:14,440 --> 00:04:20,090 If we jump across to the if error spreadsheet, if you recall, we put together a little formula here 57 00:04:20,090 --> 00:04:26,060 and again, it's an effect formula which gave us the day of the week when we enter in a day number. 58 00:04:26,840 --> 00:04:33,380 And what I said was that if somebody enters a day that isn't one to seven, so for example, eight, 59 00:04:33,650 --> 00:04:36,980 it's going to produce an error because the formula doesn't account for that. 60 00:04:37,010 --> 00:04:43,400 Now, in this case, I am getting an error again, so I could effectively use the if and error handling. 61 00:04:43,880 --> 00:04:47,450 But we're going to do this in a different way and we're going to use if error instead. 62 00:04:48,170 --> 00:04:53,790 So if error we can use for any type of error and we edit the formula in exactly the same way. 63 00:04:53,810 --> 00:05:00,980 So we're going to Typekit if error at the beginning, we have the same two arguments value and value. 64 00:05:00,980 --> 00:05:04,160 If error, the value again is going to. 65 00:05:04,270 --> 00:05:08,020 Generated by our IFS formulas, we can go right to the end. 66 00:05:08,530 --> 00:05:12,610 Press coma and then we can enter in what we want it to say. 67 00:05:13,300 --> 00:05:23,500 Now in this case, I wanted to say, please enter a number between one and seven. 68 00:05:24,100 --> 00:05:29,350 So what I'm doing here is basically giving the user a little bit of guidance if they enter an incorrect 69 00:05:29,350 --> 00:05:29,830 value. 70 00:05:30,740 --> 00:05:31,720 So let's hit enter. 71 00:05:32,020 --> 00:05:36,190 And there we have that piece of text, and if I choose a different day, it doesn't come up. 72 00:05:36,700 --> 00:05:40,300 If I put in number 10, I'm going to get that piece of text. 73 00:05:40,510 --> 00:05:47,080 So using error handling in this way can really help you keep your spreadsheets consistent, meaningful 74 00:05:47,080 --> 00:05:50,830 and easy to understand for anybody who might be using them. 75 00:05:51,070 --> 00:05:57,370 The only takeaways here are if you have any errors in the cell you can use, if any, or if error if 76 00:05:57,370 --> 00:06:01,120 you have any other type of error, you can only use if error. 8122

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