Enter the right data type
Three claims include eighty-five thousand riels as text; what does SUM omit?
- TQ2-C03-L07
- About 2 min
- Khmer voice · English terms
- Textbook pp 88–90
Lesson 7 · 8 of 20 in TQ2 Chapter 3
Practice card
Your turn
In the SUM range, 145,000 is numeric, while 85,000 and 170,000 are stored as text. What does SUM return?
Decide your answer first, then check it.
Check yourself
3 exam-style questions
2 questions on this lesson and 1 review question from Lesson 5. Choose an answer, then check it to see why it is right or wrong.
- Question 1 of 3This lessonTextbook pp 88–90
- Question 2 of 3This lessonTextbook pp 88–90
- Question 3 of 3Review · Lesson 5Textbook p 88
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 88–90.
Book §3.3, pp 88–90: data types. The three amounts (KHR 145,000, 85,000 and 170,000) are our example. The book also covers dates, times and fill patterns on pp 89–90.
How this lesson uses the textbook: TQ2 Chapter 3 · English pp 88–90
Source: TQ2 Chapter 3 · English printed pp 88–90
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
Three claims include eighty-five thousand riels as text; what does SUM omit?
The eighty-five-thousand-riel entry is text, so SUM skips it until it becomes a number.
The same visible characters can represent different types of data. An identifier such as a staff code may deliberately be text. An amount to be added needs to be numeric. A function such as SUM ignores text stored in a referenced range, even if that text looks like an amount.
Our three amounts are one hundred and forty-five thousand, eighty-five thousand and one hundred and seventy thousand riels. Their control total is four hundred thousand. But the middle entry is text, so SUM adds only one hundred and forty-five thousand and one hundred and seventy thousand, giving three hundred and fifteen thousand. Check the receipt; in this example the warning appears beside the selected eighty-five thousand, so choose Convert to Number. The sum is now four hundred thousand.
Watch out for changing only the display format. Check the stored type and the formula result after the correction.
Your turn. Return to the original case with eighty-five thousand stored as text. Change only one hundred and seventy thousand to text as well. What does SUM return?
Remember to choose the type for the task, then test the stored values.
The video already has Khmer subtitles. The Khmer transcript follows after our Khmer review.