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?

  1. A. 20 and 40
  2. B. 24 and 24
  3. C. 40 and 24
  4. 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.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic