Management & CommerceHardBusiness analyst · Excel test
B2:B7 hold 40, 0, 60, 0, 20 and an empty cell. What do =AVERAGE(B2:B7) and =AVERAGEIF(B2:B7, ">0") return?
- A. 20 and 40
- B. 24 and 24
- C. 40 and 24
- D. 24 and 40
Correct answer: D. 24 and 40
AVERAGE skips the empty cell but includes zeros: 120/5 = 24. AVERAGEIF with '>0' uses only 40, 60 and 20: 120/3 = 40. Treating the blank as zero would give 20.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- Table p(id, cat) has ids 1, 2, 3 in category X, ids 4, 5 in Y and id 6 in Z. How many rows does SELECT FROM p a JOIN p b ON a.cat = b.cat…
- Table e(name, s) has salaries A 90, B 90, C 80, D 70. What do these return? P: SELECT DISTINCT s FROM e ORDER BY s DESC LIMIT 1 OFFSET 1…
- A column holds the names Sara, Raman, Ria, Kavya and Ana. How many of them match LIKE '%a' (assume a case-insensitive comparison)?
- A firm orders 1,000 units at a time. At this quantity its annual holding cost is ₹6,000 and its annual ordering cost is ₹3,000. Without…
- A three-server bank counter (M/M/3) has arrivals of 24 per hour and each teller serves 10 per hour. On average, how many tellers are busy?
- A ward has 20 beds, the average length of stay is 4 days and the hospital targets 85% average occupancy. How many admissions per day can…