Ch15 Excel365 ArrayFormulas
Ch15 Excel365 ArrayFormulas
#NAME?
Array Syntax:
Curly Brackets house the array: { }
Comma means column ,
Semi-colon means row ;
Array constant of column values: 1 2 3
D7: {={1,2,3}}
Array constant of row values: 1
D9: {={1;2;3}} 2
3
Array constant of table values: 1 Jan
D13: {={1,"Jan";2,"Feb";3,"Mar"}} 2 Feb
3 Mar
Array constant = hard coded array of column values, row values or table values.
Array constant = hard coded array of column values, row values or table values.
Thrower Time1 Time2 Time3 Time4 Time5 Total of Top 3
Stevie 143s 78s 43s 169s 118s 430s
Formula in cell H3:
{=SUM(LARGE(C3:G3,{1,2,3}))}
#NAME?
Thrower Time1 Time2 Time3 Time4 Time5 Total of Top 3
Stevie 143s 78s 43s 169s 118s 430s
Formula in cell H3:
{=SUM(LARGE(C3:G3,{1,2,3}))} = SUM({169,143,118})
LARGE values:
169 143 118
Quad Cost Aspen Cost Tax Rate
10 8 0.1
Quad Cost*2 Aspen Cost*2 Tax Amount
20 16 #NAME?
Formula in cell B6: Formula in cell D6:
{=B3:C3*2} {=SUM(_xlfn.anchorarray(B6)*D3)}
#NAME?
Math Operator:
Quad Cost*2 Aspen Cost*2
20 16
Join Operator:
Quad Cost&2 Aspen Cost&2
102 82
Comparative Operator:
Quad Cost>=2 Aspen Cost>=2
1 1
Quad Cost Aspen Cost
10 8
#NAME?
{=_xlfn.xmatch(H5:H8,F5:F7)} = {#N/A;1;2;#N/A}
Array Function Operations:
Product Sales Unique List Transpose:
Quad 326.17 #NAME? #NAME? #NAME? #NAME?
Carlota 251.57 #NAME?
Quad 374.03 #NAME? Formula in G5:
Aspen 256.22 {=TRANSPOSE(_xlfn.anchorarray(E5))}
Aspen 171.21
Carlota 446.2 Sequence:
Quad 236.06 #NAME?
#NAME?
Formula in E5: #NAME?
{=_xlfn.unique(B5:B11)}
Formula in G11:
{=_xlfn.sequence(3)}
{=_xlfn.unique(B5:B11)} = {#N/A;1;2;#N/A}
#NAME?
#NAME?
Product Sales Product Formula in E3:
Quad 326.17 #NAME? {=_xlfn._xlws.sort(_xlfn.uniqu
Carlota 251.57 #NAME?
Quad 374.03 #NAME?
Aspen 256.22
Aspen 171.21
Carlota 446.2
Quad 236.06
xlws.sort(_xlfn.unique(B3:B9))}
Product Sales Product Formula in E3:
Quad 326.17 #NAME? {=_xlfn._xlws.sort(_xlfn.uniqu
Carlota 251.57
Quad 374.03 data
Aspen 256.22
Aspen 171.21
Carlota 446.2
Quad 236.06
xlws.sort(_xlfn.unique(B3:B9))}
Product Sales Product Total Sales Formula in E3:
Quad 326.17 #NAME? #NAME? {=_xlfn._xlws.sort(_xlfn.uniqu
Carlota 251.57 #NAME? #NAME?
Quad 374.03 #NAME? #NAME?
Aspen 256.22
Aspen 171.21
Carlota 446.2
Quad 236.06
xlws.sort(_xlfn.unique(B3:B9))}
Product Sales Product Total Sales Formula in E3:
Quad 326.17 #NAME? #NAME? {=_xlfn._xlws.sort(_xlfn.uniqu
Carlota 251.57 #NAME? #NAME?
Quad 374.03 #NAME? #NAME?
Aspen 256.22 #NAME? #NAME?
Yanaki 171.21
Carlota 446.2
Quad 236.06
xlws.sort(_xlfn.unique(B3:B9))}
Date Stock Open ($) Close ($) Change
10/27/2020 GOOGL 1,588.93 1,598.88 9.95
10/26/2020 GOOGL 1,615.00 1,584.29 -30.71
10/23/2020 GOOGL 1,615.05 1,632.98 17.93
Multiple
2
Multiple 2
Price ($) 2 5
Units 5 4
Sales 10 20
Price ($) 2 5
Units 5 4 2
Sales 10 20 #N/A
Array Formula Process for Cell * Row:
Formula in cell C3: {=D5*C2:D2}
2*{10,20}
{2*10,2*20}
#NAME?
#NAME?
=Cell (1R x 1C) * Row (1R x 2C) = Row (1R x 2C)
Array Formula Process for Row * Row (same number of columns):
Formula in cell C12: {=C10:D10*C11:D11}
{2,5}*{5,4}
{2*5,5*4}
#NAME?
#NAME?
=Row (1R x 2C) * Row (1R x 2C) = Row (1R x 2C)
Array Formula Process for Row * Row (different number of columns):
Formula in cell C20: {=C18:D18*C19:E19}
{2,5}*{5,4,2}
{2*5;5*4;???*4}
{10,20,#N/A}
={2,5}*{5,4,2} = {2*5;5*4;???*4} = {10,20,#N/A}
=Row (1R x 2C) * Row (1R x 3C) = Error because rows do not contain same number of columns
Formula in cell C3: {=D5*C2:D2}
#NAME?
=Cell (1R x 1C) * Row (1R x 2C) = Row
2 1 3
10 20 10 30
20 40 20 60
14 10
4 15
3 24
2 5
4 3
1 6
7 2
1 5
3 4
Array Formula Process for Column * Row:
Formula in cell C3: {=B3:B5*C2:D2}
{2;1;3}*{10,20}
{2*10,2*20;1*10,1*20;3*10,3*20}
{20,40;10,20;30,60}
={2;1;3}*{10,20} = {2*10,2*20;1*10,1*20;3*10,3*20} = {20,40;10,20;30,60}
=Column (3R x 1C) * Row (1R x 2C) = Table (3R x 2C)
Array Formula Process for Row * Column:
Formula in cell C11: {=C10:E10*B11:B12}
{2,1,3}*{10;20}
{2*10,1*10,3*10;2*20,1*20,3*20}
{20,10,30;40,20,60}
={2,1,3}*{10;20} = {2*10,1*10,3*10;2*20,1*20,3*20} = {20,10,30;40,20,60}
=Column (3R x 1C) * Row (1R x 2C) = Table (3R x 2C)
Array Formula Process for Table * Table:
Formula in cell B18: {=B22:C24*B26:C28}
{2,5;4,3;1,6}*{7,2;1,5;3,4}
{2*7,5*2;4*1,3*5;1*3,6*4}
{14,10;4,15;3,24}
={2,5;4,3;1,6}*{7,2;1,5;3,4} = {2*7,5*2;4*1,3*5;1*3,6*4} = {14,10;4,15;3,24}
Table (3R x 2C) * Table (3R x 2C) = Table (3R x 2C)
Formula in cell C3: {=B3:B5*C2:D2}
={2;1;3}*{10,20} = {2*10,2*20;1*10,1*20;3*10,3*20} = {20,40;10
=Column (3R x 1C) * Row (1R x 2C) = Table (3R x 2C)
*20,1*20,3*20} = {20,10,30;40,20,60}
Table (3R x 2C)
2;4*1,3*5;1*3,6*4} = {14,10;4,15;3,24}
ble (3R x 2C)
column element from
the row: 1 4
1 1 3
row
element 2 5 1
from the
column: 1 1 2
Array Formula Process for Column * Row * Table:
1 12 {=C3:C5*D2:E2*D3:E5}
10 8 {1;2;1}*{1,4}*{1,3;5,1;1,2}
1 8 {1*1,1*4;2*1,2*4;1*1,1*4}*{1,3;5,1;1,2}
{1,4;2,8;1,4}*{1,3;5,1;1,2}
{1*1,4*3;2*5,8*1;1*1,4*2]
{1,12;10,8;1,8}
={1;2;1}*{1,4}*{1,3;5,1;1,2} = {1*1,1*4;2*1,2*4;1*1,1*4}*{1,3;5,1;1,2} = {1,4;2,8;1,4}*{1,3;5,1;1
=Column (3R x 1C) * Row (1R x 2C) * Table (3R x 2C) = Table (3R x 2C)
{=C3:C5*D2:E2*D3:E5}
={1;2;1}*{1,4}*{1,3;5,1;1,2} = {1*1,1*4;2*1,2*4;1*1,1*4}*{1,3;5,1;1,2} = {1,4;2,8;1,4}*{1,3;5,1;1
=Column (3R x 1C) * Row (1R x 2C) * Table (3R x 2C) = Table (3R x 2C)
Array Formula Process for Column * Row * Table:
{=C3:C5*D2:E2*D3:E5}
{1;2;1}*{1,4}*{1,3;5,1;1,2}
{1*1,1*4;2*1,2*4;1*1,1*4}*{1,3;5,1;1,2}
{1,4;2,8;1,4}*{1,3;5,1;1,2}
{1*1,4*3;2*5,8*1;1*1,4*2]
{1,12;10,8;1,8}
={1;2;1}*{1,4}*{1,3;5,1;1,2} = {1*1,1*4;2*1,2*4;1*1,1*4}*{1,3;5,1;1,2} = {1,4;2,8;1,4}*{1,3;5,1;1,2} = {1*1,4*3;2*5,8*1;1*1,4*2] = {1,1
=Column (3R x 1C) * Row (1R x 2C) * Table (3R x 2C) = Table (3R x 2C)
{=C3:C5*D2:E2*D3:E5}
={1;2;1}*{1,4}*{1,3;5,1;1,2} = {1*1,1*4;2*1,2*4;1*1,1*4}*{1,3;5,1;1,2} = {1,4;2,8;1,4}*{1,3;5,1;1,2} = {1*1,4*3;2*5,8*1;1*1,4*2] = {1,1
=Column (3R x 1C) * Row (1R x 2C) * Table (3R x 2C) = Table (3R x 2C)
Total Sales
Product SalesRep Sales Product/SalesRep #NAME? #NAME?
Quad Sioux 10 #NAME? #NAME? #NAME?
Aspen Ty 20 #NAME? #NAME? #NAME?
Quad Ty 20
Aspen Ty 20
Aspen Sioux 20 Contains Criteria Contains?
Quad Sioux 10 Carlota #VALUE!
Quad #VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
Formula in cell G4: {=SUMIFS(D4:D9,B4:B9,F4:F5,C4:C9,G3:H3)}
Two function argument array operations = E4:E5, Column (2R x 1C), and F3:G3, Row (1R x 2C) = Table (2R x 2C) delivered by
#NAME?
=SUMIFS(D4:D9,B4:B9,F4:F5,C4:C9,G3:H3)}
Two function argument array operations = E4:E5, Column (2R x 1C), and F3:G3, Row (1R x 2C) = Table (2R x 2C) delivered by
#NAME?
=SEARCH(F9:F10,B4:B9)}
Two function argument array operations = E9:E10, Column (2R x 1C), and A4:A9, Column (6R x 1C) = Error because columns
and F3:G3, Row (1R x 2C) = Table (2R x 2C) delivered by SUMIFS.
and A4:A9, Column (6R x 1C) = Error because columns do not contain same number of rows
and F3:G3, Row (1R x 2C) = Table (2R x 2C) delivered by SUMIFS.
and A4:A9, Column (6R x 1C) = Error because columns do not contain same number of rows
Ex #1 Goal: Estimate returns for stock A & B in a portfolio of stocks.
Weight of Stock in
Portfolio: 0.6 0.4
Weight of Stock in
Portfolio: 0.6 0.4
Weight of Stock in
Portfolio: 0.6 0.4
Weight of Stock in
Portfolio: 0.6 0.4
Weight of Stock in
Portfolio: 0.6 0.4
Weight of Stock in
Portfolio: 0.6 0.4
Weight of Stock in
Portfolio: 0.6 0.4
Weight of Stock in
Portfolio: 0.6 0.4
% Decrease:
in milliseconds:
SUMPRODUCT times:
6.6
6.5
6.6
6.6
6.57
-10.85%
Ex #5 Goal: Calculate total sales (price * units) in single cell.
% Decrease:
in milliseconds:
SUMPRODUCT times:
6.6
6.5
6.6
6.6
6.57
-10.85%
Ex #6 Goal: Calculate total sales (price * units) in single cell, have formula ignore text.
Too much work: 91*20% + 94*25.00% + 91*15.00% + 87.5*40.00% = 18.2 + 23.5 + 13.65 + 35 = 90.35
.5 + 13.65 + 35 = 90.35
Weighted Average
90.35
87.73
63.20
74.90
.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#7 Example: Sioux's Total Score = 91*20% + 94*25.00% + 91*15.00% + 87.5*40.00% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Weights: 20% 25% 15% 40%
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5 90.35
Chin 98 87.5 79 86 87.73
Ty 73 36 56 78 63.20
Mo 65 70 72 84 74.90
Formula in cell G8: =SUMPRODUCT(C8:F8,$C$5:$F$5)
Too much work: 91*20% + 94*25.00% + 91*15.00% + 87.5*40.00% = 18.2 + 23.5 + 13.65 + 35 = 90.35
.5 + 13.65 + 35 = 90.35
Weighted Average
90.35
87.73
63.20
74.90
F8,$C$5:$F$5)
.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#8 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5
Chin 98 87.5 79 86
Ty 73 36 56 78
Mo 65 70 72 84
Test Weights
Test 1 20%
Test 2 25%
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#8 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5 #VALUE!
Chin 98 87.5 79 86 #VALUE!
Ty 73 36 56 78 #VALUE!
Mo 65 70 72 84 #VALUE!
Test Weights Formula in cell G6: =SUMPRODUCT(C6:F6,$C$12:$C$15)
Test 1 20%
Test 2 25%
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
$12:$C$15)
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#9 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5
Chin 98 87.5 79 86
Ty 73 36 56 78
Mo 65 70 72 84
Test Weights
Test 1 20%
Test 2 25%
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#9 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5 363.50
Chin 98 87.5 79 86 280.40
Ty 73 36 56 78 133.65
Mo 65 70 72 84 116.40
Test Weights Formula in cell G6: {=SUM(C6:F6*C12:C15)}
Test 1 20%
Test 2 25%
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#10 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5
Chin 98 87.5 79 86
Ty 73 36 56 78
Mo 65 70 72 84
Test Weights
Test 1 20%
Test 2 25% Then manually copy down ê
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#10 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5 90.35
Chin 98 87.5 79 86 87.73
Ty 73 36 56 78 63.20
Mo 65 70 72 84 74.90
Test Weights Formula in cell G6: =C6*$C$12+D6*$C$13+E6*$C$14+F6*$C$15
Test 1 20%
Test 2 25% Then manually copy down ê
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
6*$C$14+F6*$C$15
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#11 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5
Chin 98 87.5 79 86
Ty 73 36 56 78
Mo 65 70 72 84
Test Weights
Test 1 20%
Test 2 25% Spills down ê
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#11 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5 90.35
Chin 98 87.5 79 86 87.73
Ty 73 36 56 78 63.20
Mo 65 70 72 84 74.90
Test Weights Formula in cell G6: {=C6:C9*C12+D6:D9*C13+E6:E9*C14+F6:F9*C15}
Test 1 20%
Test 2 25% Spills down ê
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
+E6:E9*C14+F6:F9*C15}
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#12 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5
Chin 98 87.5 79 86
Ty 73 36 56 78
Mo 65 70 72 84
Test Weights
Test 1 20%
Test 2 25% Spills down ê
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
Ex Goal: Multiply each test score by each test weight and then add to get student total score.
#12 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5 90.35
Chin 98 87.5 79 86 87.73
Ty 73 36 56 78 63.20
Mo 65 70 72 84 74.90
Test Weights Formula in cell G6: {=MMULT(C6:F9,C12:C15)}
Test 1 20%
Test 2 25% Spills down ê
Test 3 15%
Test 4 40%
Actual Numbers
#NAME? Ave: W. Ave:
#NAME? ### 90.35
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
23.5 + 13.65 + 35 = 90.35
1) No empty cells in either array ü
91 94 91 87.5 Array 1: 4R x 4C
98 87.5 79 86
73 36 56 78
65 70 72 84
2) Number of columns in array 1 = number of rows in array 2 ü
1 2 3 4 Array 1:
▼ ▼ ▼ ▼ R x
91 94 91 87.5 4 x
98 87.5 79 86
73 36 56 78
65 70 72 84
3) Goal is to multiply each row in array 1 times each column in array 2
Column 1
Row 1 91 94 91 87.5 x 20%
Row 2 98 87.5 79 86 25%
Row 3 73 36 56 78 15%
Row 4 65 70 72 84 40%
Spills to right è
Ex Goal: Calculate Highline College athletic department baseball order total costs for each team.
#13 3 columns in array 1 and 3 rows in array 2, you can use MMULT.
Must be equal
3) Goal is to multiply each row in array 1 times each column in array 2
Column 1 Column 2
Row 1 $27 $3 $37 x 13 16
43 69
19 14
Spills to right è
Ex Goal: Calculate Highline College athletic department baseball order total costs for each team.
#14 Parallel arrays, then you can use SUMPRODUCT, or TRANSPOSE and MMULT.
Women's Team Men's Team
Items: Costs: Number Units Ordered:
Bats $27 13 16
Balls $3 43 69
Gloves $37 19 14
Totals: 1183 1157
Formula in cell D10: =SUMPRODUCT(D7:D9,$C$7:$C$9)
Then manually copy to right è
OR
Totals: 1183 1157
Formula in cell D15: {=MMULT(TRANSPOSE(C7:C9),D7:E9)}
Spills to right è
Name Test 1 Test 2 Test 3 Test 4 Total Test Points
Sioux 91 94 91 87.5
Chin 98 87.5 79 86
Ty 73 36 56 78
Mo 65 70 72 84
Test Weights
Test 1 20%
Test 2 25% Spills down ê
Test 3 15%
Test 4 40%
5% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Ex Goal: Create a formula that can spill weighted average.
#12 Example: Sioux's Total Score = 91*20% + 94*25% + 91*15% + 87.5*40% = 18.2 + 23.5 + 13.65 + 35 = 90.35
Name Test 1 Test 2 Test 3 Test 4 Weighted Average
Sioux 91 94 91 87.5 90.35
Chin 98 87.5 79 86 87.73
Ty 73 36 56 78 63.20
Mo 65 70 72 84 74.90
MULT(C6:F9,C12:C15)}
Ex Goal: Create a formula that can spill row totals for each row in table.
#15 Example: Sioux's Total Score = 91*1 + 94*1 + 91*1 + 87.5*1 = 91 + 94 + 91 + 87.5 = 363.5
Name Test 1 Test 2 Test 3 Test 4 Total Test Points
Sioux 91 94 91 87.5
Chin 98 87.5 79 86
Ty 73 36 56 78
Mo 65 70 72 84
Test Weights
Test 1 1
Test 2 1 Spills down ê
Test 3 1
Test 4 1
Ex Goal: Create a formula that can spill row totals for each row in table.
#15 Example: Sioux's Total Score = 91*1 + 94*1 + 91*1 + 87.5*1 = 91 + 94 + 91 + 87.5 = 363.5
Name Test 1 Test 2 Test 3 Test 4 Total Test Points
Sioux 91 94 91 87.5 363.50
Chin 98 87.5 79 86 350.50
Ty 73 36 56 78 243.00
Mo 65 70 72 84 291.00
Array 1: Array 2:
R x C R x C
4 x 4 ? x ?
Must be equal
1
1
1
1
###
###
###
###
Ex Goal: Create single cell formulas to calculate:
#16 Expected portfolio of stocks return.
Standard deviation of expected portfolio returns.
Spills down ê
Ex #17 Goal: Spill Row Totals using MMULT, SEQUENCE and COLUMNS functions.
Name Test 1 Test 2 Test 3 Test 4 Total Test Points
Sioux 91 94 91 87.5 #NAME?
Chin 98 87.5 79 86 #NAME?
Ty 73 36 56 78 #NAME?
Mo 65 70 72 84 #NAME?
Formula in cell G5: {=MMULT(C5:F8,_xlfn.sequence(COLUMNS(C5:F8),1,1,0))}
Spills down ê
Rows:
TRUEs and FALSEs
Product Product Product =FILTER({"Q";"C";"Q";"A"},{TRUE;FALSE;TRUE;FALSE}) = {"Q";"Q"}
Q Q #NAME? #NAME?
C #NAME? #NAME?
Q Ones and Zeroes
A =FILTER({"Q";"C";"Q";"A"},{1;0;1;0}) = {"Q";"Q"}
#NAME?
#NAME?
Numbers
=FILTER({"Q";"C";"Q";"A"},{43;0;-2;0}) = {"Q";"Q"}
#NAME?
#NAME?
Mixed
=FILTER({"Q";"C";"Q";"A"},{TRUE;0;-2;0}) = {"Q";"Q"}
#NAME?
#NAME?
Columns:
=FILTER({"Q","C","Q","A"},{TRUE,FALSE,TRUE,FALSE}) = {"Q","Q"}
#NAME? #NAME?
Not enough rows in include
UE;FALSE}) = {"Q";"Q"} =FILTER({"Q";"C";"Q";"A"},{TRUE;FALSE;TRUE}) = #VALUE!
#NAME?
Product Color Sales Product Product Color Sales AND logical test
Quad Blue 326.17 Quad #NAME? #NAME? #NAME?
Carlota Red 251.57 #NAME? #NAME? #NAME?
Quad Blue 374.03 Color
Aspen Red 256.22 Blue
Aspen Blue 171.21
Carlota Red 446.2 Formula in cell H15: {=_xlfn._xlws.filter(B15:D21,(B15:B21=F15)*(C15
Quad Clear 236.06 Spills down ê
Product Color Sales Product Product Color Sales NOT logical test
Quad Blue 326.17 Quad #NAME? #NAME? #NAME?
Carlota Red 251.57 #NAME? #NAME? #NAME?
Quad Blue 374.03 #NAME? #NAME? #NAME?
Aspen Red 256.22 #NAME? #NAME? #NAME?
Aspen Blue 171.21
Carlota Red 446.2 Formula in cell H35: {=_xlfn._xlws.filter(B35:D41,B35:B41<>F35)}
Quad Clear 236.06 Spills down ê
5:B11=F5,"No matches")}
,(B15:B21=F15)*(C15:C21=F18))}
OR logical test
,(B25:B31=F25)+(C25:C31=F28))}
,B35:B41<>F35)}
array of numbers
,D45:D51)}
array argument = [if_empty] argument =
table, column or value to use if returned
row to be filtered filter is empty
E;FALSE;TRUE;FALSE;TRUE;FALSE;FALSE})
E;FALSE*TRUE;FALSE*FALSE;TRUE*FALSE})
Ex Goal: Extract records that contain the product "Quad" AND the color "Blue".
#19 Product Color Sales Product Product Color Sales
Quad Blue 326.17 w #NAME?
Carlota Red 251.57
Quad Blue 374.03 Color
Aspen Red 256.22 Blue
Aspen Blue 171.21
Carlota Red 446.2 Formula in cell H5: {=_xlfn._xlws.filter(B5:D11,(B5:B11=F5)*(C5:C11=F8)
Quad Clear 236.06 Spills down ê
OR:
Color
Blue
E;FALSE;TRUE;FALSE;TRUE;FALSE;FALSE})
E;FALSE*TRUE;FALSE*FALSE;TRUE*FALSE})
xlws.filter(B5:D11,(B5:B11=F28)*(C5:C11=F31),{"None","-","-"})}
Ex Goal: Extract records that contain the product "Quad" OR the color "Blue".
#20 Product Color Sales Product Product Color Sales
Quad Blue 326.17 Quad
Carlota Red 251.57
Quad Blue 374.03 Color
Aspen Red 256.22 Blue
Aspen Blue 171.21
Carlota Red 446.2
Quad Clear 236.06 Spills down ê
of answers.
Ex Goal: Extract records that contain the product "Quad" OR the color "Blue".
#20 Product Color Sales Product Product Color Sales
Quad Blue 326.17 Quad #NAME? #NAME? #NAME?
Carlota Red 251.57 #NAME? #NAME? #NAME?
Quad Blue 374.03 Color #NAME? #NAME? #NAME?
Aspen Red 256.22 Blue #NAME? #NAME? #NAME?
Aspen Blue 171.21
Carlota Red 446.2 Formula in cell H5: {=_xlfn._xlws.filter(B5:D11,(B5:B11=F5)+(C5:C11=F8)
Quad Clear 236.06 Spills down ê
of answers.
Ex #21 Goal: Extract records where the product is NOT "Quad".
Product Color Sales Product Product Color Sales
Quad Blue 326.17 Quad
Carlota Red 251.57
Quad Blue 374.03
Aspen Red 256.22
Aspen Blue 171.21
Carlota Red 446.2
Quad Clear 236.06 Spills down ê
Spills down ê
array of answers.
er of columns into formula:
r(B5:F11,{0,1,0,0,1})}
Ex Goal: Filter data set to show only the "Product" and "Sales" columns.
#23 Sales Rep Product Color Date Sales Product Sales
Sioux Quad Blue ### 326.17 #NAME? #NAME?
Chantel Carlota Red ### 251.57 #NAME? #NAME?
Chin Quad Blue ### 374.03 #NAME? #NAME?
Chantel Aspen Red ### 256.22 #NAME? #NAME?
Chin Aspen Blue ### 171.21 #NAME? #NAME?
Sioux Carlota Red ### 446.2 #NAME? #NAME?
Sioux Quad Clear ### 236.06 #NAME? #NAME?
Formula in cell H5: {=_xlfn._xlws.filter(B5:F11,ISNUMBER(_xlfn.xmatch(B4:F4,H4:I4)))}
Spills down ê
array of answers.
er of columns into formula:
r(B5:F11,{0,1,0,0,1})}
array argument = [exactly_once] argument = TRUE
table, column or row that = unique set
is the source data FALSE or omitted = distinct set
[by_col] argument =
TRUE = returns unique/distinct columns
FALSE or omitted = returns unique/distinct rows
ment = TRUE
et
distinct set
Ex #24 Goal: Extract a distinct list of sales rep names from a column.
Sales Rep Product Sales Sales Rep
Sioux Quad 10
Chantel Carlota 20
Chin Quad 30
Chantel Carlota 10
Chantel Quad 30
Sioux Carlota 10
Dino Quad 20
Spills down ê
Ex #24 Goal: Extract a distinct list of sales rep names from a column.
Sales Rep Product Sales Sales Rep
Sioux Quad 10 #NAME?
Chantel Carlota 20 #NAME?
Chin Quad 30 #NAME?
Chantel Carlota 10 #NAME?
Chantel Quad 30
Sioux Carlota 10
Dino Quad 20
Formula in cell F5: {=_xlfn.unique(B5:B11)}
Spills down ê
Ex #25 Goal: Extract a unique list of sales rep names from a column.
Sales Rep Product Sales Sales Rep
Sioux Quad 10
Chantel Carlota 20
Chin Quad 30
Chantel Carlota 10
Chantel Quad 30
Sioux Carlota 10
Dino Quad 20
Spills down ê
Ex #25 Goal: Extract a unique list of sales rep names from a column.
Sales Rep Product Sales Sales Rep
Sioux Quad 10 #NAME?
Chantel Carlota 20 #NAME?
Chin Quad 30
Chantel Carlota 10
Chantel Quad 30
Sioux Carlota 10
Dino Quad 20
Formula in cell F5: {=_xlfn.unique(B5:B11,,1)}
Spills down ê
Ex #26 Goal: Extract a distinct list of records (distinct rows) from a table.
Sales Rep Product Sales Sales Rep Product Sales
Sioux Quad 100
Chantel Carlota 200
Chantel Carlota 200
Chantel Carlota 200
Chantel Quad 100
Sioux Quad 100
Sioux Quad 100
Spills down ê
Ex #26 Goal: Extract a distinct list of records (distinct rows) from a table.
Sales Rep Product Sales Sales Rep Product Sales
Sioux Quad 100 #NAME? #NAME? #NAME?
Chantel Carlota 200 #NAME? #NAME? #NAME?
Chantel Carlota 200 #NAME? #NAME? #NAME?
Chantel Carlota 200
Chantel Quad 100
Sioux Quad 100
Sioux Quad 100
Formula in cell F5: {=_xlfn.unique(B5:D11)}
Spills down ê
Ex #27 Goal: Extract a distinct list of names from a row.
Sales Rep
Spills to right è
Ex #27 Goal: Extract a distinct list of names from a row.
ue(st_12[Product])}
t_12[Sales],st_12[Product],_xlfn.anchorarray(F5))}
ue(st_12[Product])}
(st_12[Product],_xlfn.anchorarray(I5))}
array argument =
table, column or row that is the
source data
[sort_index] argument =
relative position of column/s
that you want to sort by
array argument = [sort_order] argument =
table, column or row that is the 1 or omitted = A-Z (Small-Big)
source data -1 = Z-A (Big-Small)
Spills down ê
Ex #29 Goal: Sort the column distinct list A-Z.
Sales Rep Sales Rep
Sioux #NAME?
Chantel #NAME?
Chin #NAME?
Chantel #NAME?
Chantel
Sioux
Dino
Formula in cell D5: {=_xlfn._xlws.sort(_xlfn.unique(B5:B11))}
Spills down ê
Ex #30 Goal: Sort the column distinct list Z-A.
Sales Rep Sales Rep
Sioux
Chantel
Chin
Chantel
Chantel
Sioux
Dino
Spills down ê
Ex #30 Goal: Sort the column distinct list Z-A.
Sales Rep Sales Rep
Sioux #NAME?
Chantel #NAME?
Chin #NAME?
Chantel #NAME?
Chantel
Sioux
Dino
Formula in cell D5: {=_xlfn._xlws.sort(_xlfn.unique(B5:B11),,-1)}
Spills down ê
Ex #31 Goal: Sort the row distinct list A-Z.
Sales Rep Sioux Chantel Chin Chantel Chantel Sioux Dino
Sales Rep
Spills to right è
Ex #31 Goal: Sort the row distinct list A-Z.
Sales Rep Sioux Chantel Chin Chantel Chantel Sioux Dino
Spills down ê
Ex #32 Goal: Select the racer & time columns and sort the records by time, smallest to biggest.
Date Track Racer Time Racer Time(s)
8/5/2022 SeaTac Isaac 38.8 #NAME? #NAME?
8/5/2022 SeaTac Zaine 38.2 #NAME? #NAME?
8/5/2022 SeaTac Ella 38.1 #NAME? #NAME?
8/6/2022 Everett Zaine 37.5 #NAME? #NAME?
8/6/2022 Everett Isaac 35.1 #NAME? #NAME?
8/6/2022 Everett Ella 36.5 #NAME? #NAME?
Formula in cell G5: {=_xlfn._xlws.sort(D5:E10,2)}
Spills down ê
Ex #33 Goal: Sort the times for each trach smallest to biggest.
Date Track Racer Time Track Racer Time(s)
8/5/2022 SeaTac Isaac 38.8
8/5/2022 SeaTac Zaine 38.2
8/5/2022 SeaTac Ella 38.1
8/6/2022 Everett Zaine 37.5
8/6/2022 Everett Isaac 35.1
8/6/2022 Everett Ella 36.5
Spills down ê
Ex #33 Goal: Sort the times for each trach smallest to biggest.
Date Track Racer Time Track Racer Time(s)
8/5/2022 SeaTac Isaac 38.8 #NAME? ### #NAME?
8/5/2022 SeaTac Zaine 38.2 #NAME? ### #NAME?
8/5/2022 SeaTac Ella 38.1 #NAME? ### #NAME?
8/6/2022 Everett Zaine 37.5 #NAME? ### #NAME?
8/6/2022 Everett Isaac 35.1 #NAME? ### #NAME?
8/6/2022 Everett Ella 36.5 #NAME? ### #NAME?
Formula in cell G5: {=_xlfn._xlws.sort(C5:E10,{1,3},{-1,1})}
Spills down ê
Ex #34 Goal: Sort the times for each trach smallest to biggest.
Date Track Racer Time Track Racer Time(s)
8/5/2022 SeaTac Isaac 38.8
8/5/2022 SeaTac Zaine 38.2
8/5/2022 SeaTac Ella 38.1
8/6/2022 Everett Zaine 37.5
8/6/2022 Everett Isaac 35.1
8/6/2022 Everett Ella 36.5
Spills down ê
Ex #34 Goal: Sort the times for each track smallest to biggest.
Date Track Racer Time Track Racer Time(s)
8/5/2022 SeaTac Isaac 38.8 #NAME? ### #NAME?
8/5/2022 SeaTac Zaine 38.2 #NAME? ### #NAME?
8/5/2022 SeaTac Ella 38.1 #NAME? ### #NAME?
8/6/2022 Everett Zaine 37.5 #NAME? ### #NAME?
8/6/2022 Everett Isaac 35.1 #NAME? ### #NAME?
8/6/2022 Everett Ella 36.5 #NAME? ### #NAME?
Formula in cell G5: {=_xlfn.sortby(C5:E10,C5:C10,-1,E5:E10,1)}
Spills down ê
Formula in cell B11: {=CHAR(_xlfn.sequence(255))}
columns argument =
ncrement amount how many rows in
next number sequence
Ex #36 Goal: Demonstrate various types of number sequences.
rows 6 6
[columns]
[start] -15
[step]
Start at 1, Step 1 Start at -15, Step 1
6 6
0 1
2 0
Start at 0, Step 2 All 1s
Size: 3 3
6 6
Repeat Cycle
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
I12: {=ROUNDUP(_xlfn.sequence(I6)/I4,0)}
J12: {=MOD(_xlfn.sequence(J6,,0),J4)+1}
ence(I6)/I4,0)}
D(_xlfn.sequence(J6,,0),J4)+1}
Ex #36 Goal: Demonstrate various types of number sequences.
rows 6 6
[columns]
[start] -15
[step]
Start at 1, Step 1 Start at -15, Step 1
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
0 1
2 0
Start at 0, Step 2 All 1s
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
6 6
Repeat Cycle
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
I12: {=ROUNDUP(_xlfn.sequence(I6)/I4,0)}
J12: {=MOD(_xlfn.sequence(J6,,0),J4)+1}
ence(I6)/I4,0)}
D(_xlfn.sequence(J6,,0),J4)+1}
Ex #37 Goal: Demonstrate rectangular sequence.
rows 4
[columns] 4
[start]
[step]
Ex #37 Goal: Demonstrate rectangular sequence.
rows 4
[columns] 4
[start]
[step]
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
C9: {=_xlfn.sequence(C4,C5)}
Ex #38 Goal: Demonstrate repeating number sequences.
Size: 3
rows 6
Step 1 Step 2 Step 3
All in one formula:
Repeat
Ex #38 Goal: Demonstrate repeating number sequences.
Size: 3
rows 6
Step 1 Step 2 Step 3
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
F8: {=ROUNDUP(_xlfn.sequence(C5)/C4,0)}
Ex #39 Goal: Demonstrate cyclical number sequences.
Size: 3
rows 6
start 0
Step 1 Step 2 Step 3
** Note: MOD gives you the remainder after performing division. For example MOD(4,3) = 1 because 4/3 = 1
All in one formula:
Cyclical
** Note: MOD gives you the remainder after performing division. For example MOD(4,3) = 1 because 4/3 = 1
All in one formula:
Cyclical
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
F9: {=MOD(_xlfn.sequence(C5,,0),C4)+1}
All possible
categories
(bins with upper
and lower limit)
#NAME?
#NAME?
#NAME?
#NAME?
Ex #40 Goal: Create qualitative frequency distribution for product variable.
Data Set: Qualitative Frequency Distribution
Product Sales Product Frequency
Quad $173.16
Aspen $22.95
Quad $91.72
Aspen $33.32
Aspen $50.00
Carlota $18.91
< Hidden rows Quad $198.27
Ex #40 Goal: Create qualitative frequency distribution for product variable.
Data Set: Qualitative Frequency Distribution
Product Sales Product Frequency
Quad $173.16 #NAME? #NAME?
Aspen $22.95 #NAME? #NAME?
Quad $91.72 #NAME? #NAME?
Aspen $33.32
Aspen $50.00 F7: {=_xlfn._xlws.sort(_xlfn.unique(C7:C20))}
Carlota $18.91 G7: {=COUNTIFS(C7:C20,_xlfn.anchorarray(F7))}
< Hidden rows Quad $198.27
bins_array argument =
data_array argument =
upper limits for counting
number source data
categories
FREQUENCY(data_array, bins_array)
#NAME?
Ex #41 Goal: Create quantitative frequency distribution for sales variable.
Data Set: Quantitative Frequency Distribution
(C7:C20,E7:E10)}
Ex #41 Goal: Create quantitative frequency distribution for sales variable.
Data Set: Quantitative Frequency Distribution
(C7:C20,E7:E10)}
Ex #42 Goal: Remove last counting category that FREQUENCY array function creates.
Data Set: Quantitative Frequency Distribution
E10),_xlfn.sequence(ROWS(E7:E10)))}
Ex #43 Goal: Full process to create quantitative frequency distribution for sales variable.
Data Set: Min
Max
Product Sales Lower limit of 1st category
Quad $173.16 Upper limit last category
Aspen $22.95 Width of each bin 50
Quad $91.72 rows
Aspen $33.32 start
Aspen $50.00 step
Carlota $18.91
Carlota $40.10 Quantitative Frequency Distribution
Carlota $27.89
Quad $143.69 $ Sales Upper Limit (included) Frequency
Quad $69.69
Quad $17.09
Aspen $83.97
Aspen $78.40
Quad $198.27
r sales variable.
Ex #43 Goal: Full process to create quantitative frequency distribution for sales variable.
Data Set: Min $17.09
Max $198.27
Product Sales Lower limit of 1st category $0.00
Quad $173.16 Upper limit last category $200.00
Aspen $22.95 Width of each bin 50
Quad $91.72 rows 4
Aspen $33.32 start $50.00
Aspen $50.00 step $50.00
Carlota $18.91
Carlota $40.10 Quantitative Frequency Distribution
Carlota $27.89
Quad $143.69 $ Sales Upper Limit (included) Frequency
Quad $69.69 #NAME? #NAME?
Quad $17.09 #NAME? #NAME?
Aspen $83.97 #NAME? #NAME?
Aspen $78.40 #NAME? #NAME?
Quad $198.27 #NAME? #NAME?
0,_xlfn.anchorarray(E16))}
Ex #44 Goal: Full process to create quantitative frequency distribution for sales variable.
Data Set: Min $17.09
Max $198.27
Product Sales Lower limit of 1st category $0.00
Quad $173.16 Upper limit last category $200.00
Aspen $22.95 Width of each bin 50
Quad $91.72 rows 4
Aspen $33.32 start $50.00
Aspen $50.00 step $50.00
Carlota $18.91
Carlota $40.10 Quantitative Frequency Distribution
Carlota $27.89
Quad $143.69 $ Sales Upper Limit (included) Frequency
Quad $69.69 #NAME? #NAME?
Quad $17.09 #NAME? #NAME?
Aspen $83.97 #NAME? #NAME?
Aspen $78.40 #NAME? #NAME?
Quad $198.27 #NAME? #NAME?
0,_xlfn.anchorarray(E16))}
◄ Formula in cell H16: =" Sale <= "&DOLLAR(E16,0)
◄ Formula in cell H17: =DOLLAR(E16,0)&" < Sales <= "&DOLLAR(E17,0)
◄ Formula in cell H18: =DOLLAR(E17,0)&" < Sales <= "&DOLLAR(E18,0)
◄ Formula in cell H19: =DOLLAR(E18,0)&" < Sales <= "&DOLLAR(E19,0)
◄ Formula in cell H20: =DOLLAR(E19,0)&" < Sales"
Ex #44 Goal: Full process to create quantitative frequency distribution for sales variable.
Data Set: Min $17.09
Max $198.27
Product Sales Lower limit of 1st category $0.00
Quad $173.16 Upper limit last category $200.00
Aspen $22.95 Width of each bin 50
Quad $91.72 rows 4
Aspen $33.32 start $50.00
Aspen $50.00 step $50.00
Carlota $18.91
Carlota $40.10 Quantitative Frequency Distribution
Carlota $27.89
Quad $143.69 $ Sales Upper Limit (included) Frequency
Quad $69.69 #NAME? #NAME?
Quad $17.09 #NAME? #NAME?
Aspen $83.97 #NAME? #NAME?
Aspen $78.40 #NAME? #NAME?
Quad $198.27 #NAME? #NAME?
0,_xlfn.anchorarray(E16))}
Ex #45 Goal: Create quantitative frequency distribution for sales variable with COUNTIFS function.
Data Set: Quantitative Frequency Distribution
for SEQUENCE:
step
50
50
Ex #45 Goal: Create quantitative frequency distribution for sales variable with COUNTIFS function.
Data Set: Quantitative Frequency Distribution
for SEQUENCE:
step
50
50
ay(E7),C7:C20,"<"&_xlfn.anchorarray(F7))}
xlfn.sequence(I16,,J16,K16),0)}
Ex #39 Goal: a.
Pattern of Test Scores
Category Option 1
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
75 #NAME? #NAME?
66 #NAME? #NAME?
90 #NAME? #NAME?
41 #NAME? #NAME?
37 #NAME? #NAME? E? E? E? E?
AM AM AM AM A
#N #N #N #N #N
Test
Freq
E? E? E? E?
AM AM AM AM A
80 #NAME? #NAME? #N #N #N #N #N
53 #NAME? #NAME?
Test
61 #NAME? #NAME?
78
90 < Hidden data rows
56
Frequency
$19.12 #NAME? #NAME?
$25.53 #NAME? #NAME?
$27.58 #NAME? #NAME?
$182.88 #NAME? #NAME?
$5.47 #NAME? #NAME? E? E? E? E?
AM AM AM AM A
$14.74 #NAME? #NAME? #N #N #N #N #N
$17.56 #NAME? #NAME?
$
$9.94 #NAME? #NAME?
$44.21 < Hidden data rows
$4.62
Formula:
#NAME?
SEQUENCE
rows 10
[columns]
[start] 10
[step] 10
E? E? E? E? E? E? E? E? E? E? E?
AM AM AM AM AM AM AM AM AM AM AM
#N #N #N #N #N #N #N #N #N #N #N
Test Score Upper Limts
Freq
E? E? E? E? E? E? E? E? E? E? E?
AM AM AM AM AM AM AM AM AM AM AM
#N #N #N #N #N #N #N #N #N #N #N
Test Score Upper Limts
E? E? E? E? E? E? E? E? E? E? E?
AM AM AM AM AM AM AM AM AM AM AM
#N #N #N #N #N #N #N #N #N #N #N
$ SalesUpper Limts
Goal: a.
Pattern for $ Sales at Target
Category Option 1
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
Formula:
#NAME?
SEQUENCE
rows 10
[columns]
[start] 25
[step] 50
Goal: In cell D7 create a formula that calculates the total bank deposit based on the bills and number of bills.
Total Deposit
number of bills.
Goal: In cell D7 create a formula that calculates the total bank deposit based on the bills and number of bills.
Check if probability is = 1
1
(D7:F7)^0))-E14)^2*C9:C12))}
MNS(D7:F7),1,1,0))-E14)^2*C9:C12))}
Goal: Create a formula in cell H5: to spill a column of row totals.
Time on Calls
Sales Rep Date (min)
Chun 1/1/2022 218
Xiaver 1/1/2022 418
Shinia 1/1/2022 332
Billy 1/1/2022 248
Chun 1/2/2022 343
Xiaver 1/2/2022 183
Shinia 1/2/2022 223
Billy 1/2/2022 379
Chun 1/3/2022 389
Xiaver 1/3/2022 444
Shinia 1/3/2022 473
Billy 1/3/2022 195
Chun 1/4/2022 192
Xiaver 1/4/2022 217
Shinia 1/4/2022 122
each sales rep.
lled in the report.
Goal: Somewhere in the worksheet create a formula report that shows the total call times for each sales rep.
Add conditional formatting that formats the report depending on how many rows are spilled in the report.
xlws.sort(_xlfn.unique(CallsHW55[Sales Rep]))}
Time on
Time on Calls Calls
Sales Rep Date (min) Sales Rep Date (min)
Chun 1/1/2022 218
Xiaver 1/1/2022 418
Shinia 1/1/2022 332
Billy 1/1/2022
Chun 1/2/2022 343
Xiaver 1/2/2022 183
Shinia 1/2/2022 223
Billy 1/2/2022
Chun 1/3/2022 389
Xiaver 1/3/2022 444
Shinia 1/3/2022 473
Billy 1/3/2022
Chun 1/4/2022 192
Xiaver 1/4/2022 217
Shinia 1/4/2022 122
Goal: Using the FILTER function, filter the data set to show records that contains a time value.
Format the filtered data set.
Time on
Time on Calls Calls
Sales Rep Date (min) Sales Rep Date (min)
Chun 1/1/2022 218 #NAME? #NAME? #NAME? Formula in cell G6:
Xiaver 1/1/2022 418 #NAME? #NAME? #NAME? {=_xlfn._xlws.filter(Calls
Shinia 1/1/2022 332 #NAME? #NAME? #NAME?
Billy 1/1/2022 #NAME? #NAME? #NAME?
Chun 1/2/2022 343 #NAME? #NAME? #NAME?
Xiaver 1/2/2022 183 #NAME? #NAME? #NAME?
Shinia 1/2/2022 223 #NAME? #NAME? #NAME?
Billy 1/2/2022 #NAME? #NAME? #NAME?
Chun 1/3/2022 389 #NAME? #NAME? #NAME?
Xiaver 1/3/2022 444 #NAME? #NAME? #NAME?
Shinia 1/3/2022 473 #NAME? #NAME? #NAME?
Billy 1/3/2022 #NAME? #NAME? #NAME?
Chun 1/4/2022 192
Xiaver 1/4/2022 217
Shinia 1/4/2022 122
Formula in cell G6:
{=_xlfn._xlws.filter(CallsHW5Answer[],CallsHW5Answer[Time on Calls (min)])}
Goal: Extract records with top 5 scores, including records if there is a tie for 5th
Sort result by the numbers, biggest to smallest.
>
>
>
69 $15.53
75 $19.12
66 $25.53
90 $27.58
41 $182.88
37 $5.47
80 $14.74
53 $17.56
61 $9.94
78 $26.29
90 $47.85
95 $275.75
27 $598.32
61 $5.06
78 $6.58
57 $11.60
56 $77.50
$98.00
$678.22
$170.00
$87.00
$69.43
$41.02
$7.33
$9.58
$18.75
$37.44
$33.47
$8.45
$2.36
$15.47
$168.95
$89.27
$44.21
$4.62
Ex #40 Goal: a.
Test Grades From Excel Class
56
$11.60
$77.50
$98.00
$678.22
$170.00
#NAME #NAME #NAME #NAME #NAME #NAME #NAME #NA
$87.00 ? ? ? ? ? ? ?
$69.43 $ SalesUpper Limts
$41.02
$7.33
$9.58
$18.75
$37.44
$33.47
$8.45
$2.36
$15.47
$168.95
$89.27
$44.21
$4.62
Frequency SEQUENCE
#NAME? rows 10
#NAME? [columns]
#NAME? [start] 25
#NAME? [step] 50
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
3. What is the difference between a SUM function that contains a direct array multiplication operation, the SUMPRODUC
4. What is the difference between a distinct set of items and a unique set of items?
The different types of arrays in the worksheet are: 1) references (ranges, defined names, tables names), 2) array constants, 3
2. In your own words, define array formula.
An worksheet array formula is a formula that contains an array operation that results in more than one item. This array oper
formula. Or the formula can have as its final operation, an array operation that results in a spilled result into the worksheet,
array function.
3. What is the difference between a SUM function that contains a direct array multiplication operation, the SUMPRODUC
SUM function that contains a direct array multiplication operation will aggregate the values from the product operation, but
products and will avoid text value induced errors and tends to calculate more quickly than the SUM function with a direct mu
array are equal to the number of rows in the second array. Matrix multiplication will take each row in the first times each row
second".
4. What is the difference between a distinct set of items and a unique set of items?
A distinct set of items is a list of items that appear only one time in a list. A unique set of items is a list of items where all dup
5. What does the SEQUENCE array function do?
SEQUENCE array function creates an array of numbers based on: 1) the number of rows in the final array, 2) the number of c
{1;2;3;4;5;6;7}, {1;1;1;1;1;1;1}, {-1;0;1;2;3;4;5}, {1,2;3,4;5,6}, {2,4,6,8,10,12}
6. What does the FREQUENCY array function do?
The FREQUENCY array function counts numbers from a data set to determine the frequency within categories based on lowe
categories that contain an upper and lower limit for each. You must give frequency the upper limits for the categories, and th
are based on the upper limit (included) and a lower limit (the upper limit from the previous category), where the lower limit
the last category catches everything greater than the last upper limit.
es), 2) array constants, 3) resultant arrays (result of an array operation), 4) spilled arrays using the spilled range operator #.
ne item. This array operation can be internal in the formula and then used in a final aggregate operation, called a scalar array
ult into the worksheet, called a spilled array formula. The operations possible are: math, join, comparative, function argument or
product operation, but will error if there are text values in the array. When you use the SUMPRODUCT function, it will sum the
unction with a direct multiplication operation. The MMULT function performs matrix multiplication if the # of columns of the first
the first times each row in the second and then add, delivering a final array with the dimension "rows from first X columns in the
rray, 2) the number of columns in the final array, 3) a starting number, and 4) a step value or increment value. Examples are;
ategories based on lower and upper limits. Or, said a different way: The FREQUENCY array function counts numbers based on a set of
or the categories, and then it creates the first category that is equal to or less than the first upper limit, then the middle categories
, where the lower limit is not included. In math notation it would be: Lower Limit Previous Category < Number <= Upper Limit. Then
operator #.
a scalar array
tion argument or
xamples are;