Advanced_Excel_2019_PC-3-6-4-a
Advanced_Excel_2019_PC-3-6-4-a
Period number:
Product code 1 2 3 4 5 6
A123 36 33 38 41 39 23
B434 42 46 44 40 40 25
A234 48 35 29 36 21 22
A123 23 29 47 30 36 42
A123 29 31 38 35 42 46
B434 32 22 39 23 42 34
A789 29 32 31 50 29 50
B434 50 22 33 43 21 33
B434 25 50 38 36 48 49
A123 31 25 34 49 47 20
A234 25 39 21 40 34 41
A123 28 21 39 33 48 33
B434 23 20 29 42 24 48
Problem Solving
1
Problem Solving
Enter a formula in cell E5 that will calculate cumulative sales for the product code in D5 to the end of the
period number in E3.
The suggested answer is based on treating the block of values as an array and then applying one criterion
based on the row values and another based on the column values. This uses SUMPRODUCT() and Boolean
logic. An added PivotTable makes it easy to check the result.
As well as the answer shown using SUMPRODUCT() you could also use an Array formula:
{=SUM($E$10:$J$22*(D10:D22=D5)*(E9:J9<=E4))}
670
4
A123 670
Period number:
Product code 1 2 3 4 5 6
A123 36 33 38 41 39 23
B434 42 46 44 40 40 25
A234 48 35 29 36 21 22
A123 23 29 47 30 36 42
A123 29 31 38 35 42 46
B434 32 22 39 23 42 34
A789 29 32 31 50 29 50
B434 50 22 33 43 21 33
B434 25 50 38 36 48 49
A123 31 25 34 49 47 20
A234 25 39 21 40 34 41
A123 28 21 39 33 48 33
B434 23 20 29 42 24 48
Data
Product code Sum of 1 Sum of 2 Sum of 3 Sum of 4 Sum of 5 Sum of 6
A123 147 139 196 188 212 164
A234 73 74 50 76 55 63
A789 29 32 31 50 29 50
B434 172 160 183 184 175 189
Total Result 421 405 460 498 471 466
Click the plus sign
above to display
exercise help