Management & CommerceVery hardBusiness analyst · Excel test
A1 contains the text '5' (a number stored as text) and A2 contains 3. What do =SUM(A1:A2) and =SUM("5", 3) return?
- A. 8 and 8
- B. 3 and 3
- C. #VALUE! and 8
- D. 3 and 8
Correct answer: D. 3 and 8
SUM ignores text values in referenced cells, so SUM(A1:A2) = 3. But text representations of numbers typed directly as arguments are converted, so SUM("5", 3) = 8. This is why imported numbers stored as text silently drop out of totals.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- Table v(cust, city, amt) has rows (A, Pune, 100), (B, NULL, 200), (C, Pune, 50), (D, Goa, NULL), (E, NULL, 80). What does SELECT…
- Using the same table v, what does CASE WHEN amt >= 100 THEN 'High' WHEN amt >= 50 THEN 'Mid' ELSE 'Low' END return for customers C and D?
- Using table v, how many rows do these return? P: SELECT FROM v WHERE amt > 60; Q: SELECT city, SUM(amt) FROM v GROUP BY city HAVING…
- Table m(store, mon, rev) has S1: month 1 = 100, month 2 = 120, month 3 = 90; S2: month 1 = 200, month 2 = 180. What does rev − LAG(rev)…
- Using table v (where Goa's only row has amt NULL), what do SELECT SUM(amt) FROM v WHERE city = 'Goa' and SELECT COALESCE(SUM(amt), 0) FROM…
- A subscription business started the quarter with 1,000 customers, gained 200 new customers during the quarter and ended with 1,050…