Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
I just want to finish off this section on logical functions, and if statements by talking a little
bit about how you can use IFS to handle errors in your spreadsheets.
Now if we take a look at this example just here, we're fairly familiar with this data.
This is that bonus spreadsheet we were looking at previously.
Now in this bonus column, if we take a look at the first formula, I've basically set up a formula
to work out the bonus only for people who have a job rating of five or four.
And so you can see that reflected in this column.
So where they have a job rating of four or five, we have the bonus amount, anything under four.
So one, two or three, we have an NSA error in the cell.
And that's because I haven't accounted for job ratings one, two and three in this particular formula.
Now it might be that you are happy to leave your spreadsheet looking like this.
What I will say is that if you do have a spreadsheet that has lots of errors contained within cells,
even if those errors are correctly there, which they are, in this case, it makes your spreadsheet
not only look a little bit messy.
If you were to send this to somebody else who's maybe not familiar with the data, they might think
that these are actual errors that need to be fixed.
What would be much better here would be to add some meaning to these errors.
So maybe instead of and I wanted to say no bonus, which makes it a lot clearer.
Now we can do this by using error handling formulas.
And if we jump up to the Formulas tab in this logical group, you're going to find the two that we're
going to use in this lesson in here.
We're going to take a look at if error and if any.
Now let's start out with if and now what if any will do is it will help you deal with any, any errors
that you have in your spreadsheet.
Now, Anna isn't the only type of error that you might see in sales.
You might see a div. error or a value error or a name error.
And all of these different errors mean different things.
But if you specifically have an any error in a cell, you can use the if and a function to assign meaning
to that.
Now, as we do have an error, we're going to use that function.
Now what I want to do here is let's select the first cell that contains a formula.
Let's jump up and edit this in the formula bar.
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.
Now, notice underneath this particular function has two arguments value and value if an a.
So in other words, value if we find an NA in the cell.
Now the first argument, the value, while the value in this cell is generated by that if s formula.
So effectively, the IFS formula is our first argument is our value so we can click on the end press
coma.
And now all we need to do is simply specify what we want to say in the cell.
If it comes across in an error?
Well, I wanted to say no bonus.
We need to add this in quote marks and close the bracket.
So we've wrapped an infant, a formula around if.
S formula.
Enter and take a look at that.
Now, if I copy this down, I've replaced all of those and Arar's with something that is a lot more
meaningful.
A text string that says no bonus.
Now the if any formula can only be used when you have any errors in your spreadsheet.
And as I said, there are lots of different types of errors that you can get in a cell.
And for any other error, you can't use a fancy to assign any meaning.
That is where we would use the second error handling formula if error if error works in a very similar
way to, if any.
But it will handle all types of errors, not just in errors.
So let's take a look at this in action as well.
If we jump across to the if error spreadsheet, if you recall, we put together a little formula here
and again, it's an effect formula which gave us the day of the week when we enter in a day number.
And what I said was that if somebody enters a day that isn't one to seven, so for example, eight,
it's going to produce an error because the formula doesn't account for that.
Now, in this case, I am getting an error again, so I could effectively use the if and error handling.
But we're going to do this in a different way and we're going to use if error instead.
So if error we can use for any type of error and we edit the formula in exactly the same way.
So we're going to Typekit if error at the beginning, we have the same two arguments value and value.
If error, the value again is going to.
Generated by our IFS formulas, we can go right to the end.
Press coma and then we can enter in what we want it to say.
Now in this case, I wanted to say, please enter a number between one and seven.
So what I'm doing here is basically giving the user a little bit of guidance if they enter an incorrect
value.
So let's hit enter.
And there we have that piece of text, and if I choose a different day, it doesn't come up.
If I put in number 10, I'm going to get that piece of text.
So using error handling in this way can really help you keep your spreadsheets consistent, meaningful
and easy to understand for anybody who might be using them.
The only takeaways here are if you have any errors in the cell you can use, if any, or if error if
you have any other type of error, you can only use if error.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.