Exercises / Conditional counting and sums · 11 of 11

Revenue for one region, no helper column

A comparison like (A2:A6="Yes") gives TRUE or FALSE for each row. Multiplying turns TRUE into 1 and FALSE into 0, so the rows that fail the test count as 0: =SUMPRODUCT((A2:A6="Yes")*B2:B6) adds column B only where column A says Yes.

Your taskIn H2, work out the revenue (price × quantity) for the region in H1 only, using SUMPRODUCT.
Pro

Unlock this exercise and every module after the basics.

Pro opens every exercise in every module, your review schedule, and the final test for the course certificate.

RowABCDEFGH
1OrderRegionPriceQtyRegionNorth
2#01North$24.0010Revenue
3#02South$18.0025
4#03North$32.006
5#04East$24.0012
6#05South$40.003
7#06North$18.0014
8#07East$32.008
9#08North$40.005
10#09South$24.009