Handle an error without hiding the problem
Worksheet: IFERROR wraps twenty-five divided by zero; what appears?
- TQ2-C04-L14
- About 2 min
- Khmer voice · English terms
- Textbook pp 127–128
Lesson 14 · 14 of 35 in TQ2 Chapter 4
Practice card
Your turn
What does IFERROR return when 25 is divided by 25 and the alternative message is Exception?
Decide your answer first, then check it.
Check yourself
3 exam-style questions
2 questions on this lesson and 1 review question from Lesson 12. Choose an answer, then check it to see why it is right or wrong.
- Question 1 of 3This lessonTextbook pp 127–128
- Question 2 of 3This lessonTextbook pp 127–128
- Question 3 of 3Review · Lesson 12Textbook pp 116–117, 127–128
Your answers stay on this device. A question you miss goes on your review list and comes back in a later quiz.
Notes
Read first: TQ2 study text, printed pages 127–128.
Book §§2.4–2.5, pp 127–128. The IFERROR examples are the book's (p 128); the denominator 25 in Your turn is ours. Printed slip, p 127: the IFERROR syntax is malformed; =IFERROR(C6*365,"Exception occurred") does the same job.
How this lesson uses the textbook: TQ2 Chapter 4 · English printed pp 127–128
Source: New term: IFERROR. Source §§2.4–2.5, pp 127–128.
These lessons add to your formal studies; they don't replace them. Keep going to class, reading your textbook, doing the practice exercises and taking notes.
Read the English transcript
Worksheet: IFERROR wraps twenty-five divided by zero; what appears?
It shows the supplied message, Exception, rather than the division error.
An error differs from a valid zero. A message makes an error visible for investigation, but it does not repair the input or establish its cause.
Divide twenty-five by zero inside IFERROR and specify Exception as the message. The calculation errors and the message appears. The book also changes the denominator to five; the calculation succeeds and returns five instead of the message.
Watch out for treating a returned message as proof that the error was fixed. Check the underlying data and formula.
Your turn. Keep the second formula and change only its denominator from five to twenty-five. What result appears?
Remember to distinguish an error, a valid zero and a corrected result.
The video already has Khmer subtitles. The Khmer transcript follows after our Khmer review.