09 M365ExcelClass
09 M365ExcelClass
A B C D E F G H I
A B C D E F G H I
42
4) A worksheet array formula is a formula that contains at least one operation that delivers an array of
43 answers rather than a single answer.
44 Divide by 2
45 Numbers Divide by 2
46 10 5 C46: =B46:B47/F44 = {10;8}/2 = {5;4}
47 8 4
math operation delivers an array of answers and
48
therefore this is an array formula
49 List Count Unique:
50 Quad 2 C50: =ROWS(UNIQUE(B50:B52)) = ROWS({"Quad";"Aspen"}) = 2
51 Aspen
52 Quad UNIQUE function delivers an array of answers into ROWS
function and therefore this is an array formula
53
54
55 5) An aggregate operation operates on an array of items, but delivers a single answer.
56
57 Numbers Add Numbers
NOT an array
58 10 18 D58: =SUM(B58:B59) = 18
formula!!
59 8
60 The SUM aggregate operation delivers a single answer.
61 SUM and all other aggregate functions can not deliver an array of answers.
62
63
64 6) The final answer from an array formula can either be a range of spilled values or a single value .
65
When the last operation in an array formula is an array operation, the formula delivers a range of spilled
66 values into the worksheet and is called a dynamic spilled array formula.
67
68 Numbers Divide by 2 Divide by 2
69 10 5 C69: =B69:B70/G68
70 8 4
71
dynamic spilled array formula
72
When the last operation in an array formula is an aggregate operation, the formula delivers a single value
73 and is called a scalar array formula.
74
array operation makes it an array formula
75 Total
76 9 C76: =SUM(B69:B70/G68)
77
78 scalar array formula SUM to deliver one answer makes it a scalar array formula
79
80 7) When a formula operation delivers an array of answers, the operation is called an array operation.
81 The array of answers generated by an array operation is called a resultant array.
82 resultant array
83 C46: =B46:B47/F44 = {10;8}*2 = {5;4}
84
85 C50: =ROWS(UNIQUE(B50:B52)) = ROWS({"Quad";"Aspen"}) = 2
math array operation
86
87 array function operation
09-M365ExcelClass.xlsx - AFNotes(1) Page 3 of 26
MECS Video #9 - Array Formula Notes
A B C D E F G H I
88
89 8) Types of worksheet arrays:
90 1. Range reference
91 2. Array constant
92 3. Resultant array
93 4. Dynamic spilled array
94
95 Sale ($) Tax Rate
96 123.87 0.765 1. range reference 2. array constant
97 52.14
98 3,158.49 Top Two ($)
99 2416.24 D99: =LARGE(ROUND( B96:B98 * D96,2), {1;2} )
100 94.76
101 Calculation steps:
102 LARGE( {94.76;39.89;2416.24} ,{1;2})
103 3. resultant array from LARGE {2416.24;94.76}
104
3. resultant array from ROUND
105
106
107 Day Fiscal Quarter
108 4/12/23 Q4
109 5/9/23 Q4
110 11/13/23 Q2
111 2/8/23 Q3
3. array constant (full table)
112 9/8/23 Q1
113
4. dynamic
114 C108: =LOOKUP(MONTH(B108:B112), {1,"Q3";4,"Q4";7,"Q1";10,"Q2"} )
spilled array
115
1 A B C D E F G H I
2
3 9) Array operations that are possible in a worksheet are:
1] Direct array operation: math, comparative, join operator works directly against an array of values,
4 such as:
5
6 Quad Cost Aspen Cost
7 10 8
8
9 Quad Cost*2 Aspen Cost*2 Quad Cost>=2 Aspen Cost>=2 Quad Cost&2 Aspen Cost&2
10 20 16 TRUE TRUE 102 82
11
12
13 Math: Comparative: Join:
14 C10: =C7:D7*2 E10: =C7:D7>=2 G10: =C7:D7&2
15 Calculation steps: Calculation steps: Calculation steps:
16 {10,8}*2 {10,8}>=2 {10,8}&2
17 {10*2,8*2} {10>=2,8>=2} {10&2,8&2}
18 {20,16} {TRUE,TRUE} {“102”,”82”}
19
2] Function argument array operation: function argument expects a single value, and you give it an
array of values. A function argument array operation forces the function to deliver an array of answers,
20 such as:
21
22 Tax Rate 10.5%
23
24 Employee Gross Pay ($) Tax ($) ROUND:
25 Chantel 2,379.09 249.8 E25: =ROUND(D25:D27*D22,2) =
26 Kamala 2,630.57 276.21 Calculation steps:
27 Sioux 1,884.75 197.9 ROUND( {249.804;276.209;197.898} ,2)
28 {249.80;276.21;197.90}
29
30 List 1 List 2 Item in List 2, XMATCH:
31 Gigi Chantel #N/A E31: =XMATCH(D31:D34,C31:C33)
32 Ty Gigi 1 Calculation steps:
33 Sioux Ty 2 {#N/A;1;2;#N/A}
34 Miki #N/A
35
3] Array function operation: functions such as UNIQUE and are programmed to deliver an array of
36 answers.
37
38 No. Products Unique List: UNIQUE:
39 1 Quad Quad F39: =UNIQUE(D39:D42)
40 2 Carlota Carlota Calculation steps:
41 3 Quad {"Quad";"Carlota"}
42 4 Quad
43
44 SEQUENCE:
45 C39: =SEQUENCE(4)
46 Calculation steps:
47 {1;2;3;4}
48
A B C D E F G
1
2 11) Array Operation Configurations, the Evaluation Process, and the Size of the Resultant Array
3
4 Multiple 2
5
6 Sales Tax ($) Cell * Column:
7 10 20 D7: =D4*C7:C8
8 20 40 =2*{10;20} = {2*10;2*20} = {20;40}
9 =Cell (1R x 1C) * Column (2R x 1C) = Column (2R x 1C)
10
11 Price ($) Units Sales Column * Column (same number of rows):
12 2 5 10 D12: =B12:B13*C12:C13
13 5 4 20 ={2;5}*{5;4} = {2*5;5*4} = {10;20}
14 =Column (2R x 1C) * Column (2R x 1C) = Column (2R x 1C)
15
16 Price ($) Units Sales Column * Column (different number of rows):
17 2 5 10 D17: =B17:B18*C17:C19
18 5 4 20 ={2;5}*{5;4;2} = {2*5;5*4;???*4} = {10;20;#N/A}
=Column (2R x 1C) * Column (3R x 1C) = Error because columns do not contain
19 2 #N/A same number of rows.
20
21 Sales 10 20 Cell * Row:
22 Tax Paid 20 40 C22: =D24*C21:D21
23 =2*{10,20} = {2*10,2*20} = {20,40}
24 Multiple 2 =Cell (1R x 1C) * Row (1R x 2C) = Row (1R x 2C)
25
26 Price ($) 2 5 Row * Row (same number of columns):
27 Units 5 4 C28: =C26:D26*C27:D27
28 Sales 10 20 ={2,5}*{5,4} = {2*5,5*4} = {10,20}
29 =Row (1R x 2C) * Row (1R x 2C) = Row (1R x 2C)
30
31 Price ($) 2 5 Row * Row (different number of columns):
32 Units 5 4 2 C33: =C31:D31*C32:E32
33 Sales 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
34 number of columns
35
A B C D E F G
1
2 10 20 Array Formula Process for Column * Row:
3 2 20 40 C3: =B3:B5*C2:D2
4 1 10 20 ={2;1;3}*{10,20} = {2*10,2*20;1*10,1*20;3*10,3*20} = {20,40;10,20;30,60}
5 3 30 60 =Column (3R x 1C) * Row (1R x 2C) = Table (3R x 2C)
6
7 2 1 3 Array Formula Process for Row * Column:
8 10 20 10 30 C8: =C7:E7*B8:B9
9 20 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}
10 =Column (3R x 1C) * Row (1R x 2C) = Table (3R x 2C)
11
12 14 10 Array Formula Process for Table * Table:
13 4 15 B12: =B16:C18*B20:C22
14 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}
15 Table (3R x 2C) * Table (3R x 2C) = Table (3R x 2C)
16 2 5
17 4 3
18 1 6
19
20 7 2
21 1 5
22 3 4
23
24 1 12 Array Formula Process for Column * Row * Table:
25 10 8 B24: =B30:B32*C29:D29*C30:D32
={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} =
26 1 8 {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}
27 =Column (3R x 1C) * Row (1R x 2C) * Table (3R x 2C) = Table (3R x 2C)
28
Row ➔
Column
29 1 4
30 1 1 3
31 2 5 1
32 1 1 2
33
A B C D E F
1
2 Total Sales
3 Product/SalesRep Sioux Ty Function Argument Array Operation in SUMIFS
4 Aspen 20 40 C4: =SUMIFS(D8:D13,B8:B13, B4:B5,C8:C13, C3:D3 )
5 Quad 20 20 =SUMIFS(D3:D8,B3:B8, {"Aspen";"Quad"} ,C3:C8, {"Sioux","Ty"} )
6 Two function argument array operations:
7 Product SalesRep Sales {"Aspen";"Quad"} = Column (2R x 1C)
8 Quad Sioux 10 {"Sioux","Ty"} = Row (1R x 2C)
9 Aspen Ty 20 SUMIFS delivers a cross tabulated table (2R x 2C) like this:
10 Quad Ty 20 {20,40;20,20}
11 Aspen Ty 20
12 Aspen Sioux 20
13 Quad Sioux 10
14
15 Contains Criteria Contains? Function Argument Array Operation in SEARCH
16 Carlota #VALUE! D16: =SEARCH(B16:B17,B20:B25)
17 Quad #VALUE! =SEARCH( {"Carlota";"Quad"} ,B20:B25)
18 #N/A Function argument array operation:
19 Product #N/A {"Carlota";"Quad"} = Column (2R x 1C),
20 Quad #N/A Because B20:B25 is 6 rows and {"Carlota";"Quad"} is 2 rows,
21 Aspen #N/A SEARCH delivers a column of errors:
22 Quad {#VALUE!;#VALUE!;#N/A;#N/A;#N/A;#N/A}
23 Aspen When more than one row is involved in array operation,
24 Aspen they must have same number of rows.
25 Quad When they do not, we get an error.
26
A B C D E F G H I J K L M N O P Q
1 Commission Rate
2 0.0575
3
4 Date Employee Sales($) Commission $ Total Sales Unique Dates Employee Total Sales 2 Biggest Sales Sales Rep?
5 10/26/22 Chantel Mimms 1,211.71 69.67 77,500.29 10/26/22 Abigail Sinclaire 14673.82 14,338.83 Sioux Radcoolinator
6 10/26/22 Nanjala Gwenevere 1,269.93 73.02 10/27/22 Chantel Mimms 20053.03 12,990.78 Nanjala Gwenevere
7 10/26/22 Sioux Radcoolinator 879.40 50.57 10/28/22 Nanjala Gwenevere 20681.51
8 10/26/22 Timmy Smith 957.74 55.07 Total Comm$ 10/29/22 Sioux Radcoolinator 19792.04
9 10/27/22 Chantel Mimms 1,212.54 69.72 4,456.26 10/30/22 Timmy Smith 2299.89
10 10/27/22 Nanjala Gwenevere 652.94 37.54
11 10/27/22 Sioux Radcoolinator 891.45 51.26
12 10/27/22 Timmy Smith 128.30 7.38 G5: =SUM(Sales016[Sales($)])
13 10/28/22 Chantel Mimms 890.25 51.19 I5: =UNIQUE(Sales016[Date])
14 10/28/22 Nanjala Gwenevere 719.90 41.39 K5: =SORT(UNIQUE(Sales016[Employee]))
15 10/28/22 Sioux Radcoolinator 724.66 41.67 L5: =SUMIFS(Sales016[Sales($)],Sales016[Employee],K5#)
16 10/28/22 Timmy Smith 1,213.85 69.8 N5: =LARGE(Sales016[Sales($)],{1;2})
17 10/29/22 Chantel Mimms 11,222.47 645.29 O5: =XLOOKUP(N5#,Sales016[Sales($)],Sales016[Employee])
18 10/29/22 Nanjala Gwenevere 12,990.78 746.97 G9: =SUM(ROUND(Sales016[Sales($)]*E2,2))
19 10/29/22 Sioux Radcoolinator 2,957.70 170.07 K12: =ShowFormulas(G4:O41)
20 10/29/22 Abigail Sinclaire 3,786.09 217.7 G23: =Sales016[Employee]&" comm = "&ROUND(Sales016[Sales($)]*E2,2)
21 10/30/22 Chantel Mimms 5,516.06 317.17
22 10/30/22 Nanjala Gwenevere 5,047.96 290.26 Join:
23 10/30/22 Sioux Radcoolinator 14,338.83 824.48 Chantel Mimms comm = 69.67
24 10/30/22 Abigail Sinclaire 10,887.73 626.04 Nanjala Gwenevere comm = 73.02 Array = 2 or more items
25 Sioux Radcoolinator comm = 50.57 Aggregate Operation = operates on an array of items, but delivers a single answer
26 Timmy Smith comm = 55.07 Array Operation = formula operation that delivers an array of answers
27 Chantel Mimms comm = 69.72 Types of Operations =
28 Nanjala Gwenevere comm = 37.54 Direct
29 Sioux Radcoolinator comm = 51.26 Math
30 Timmy Smith comm = 7.38 Join
31 Chantel Mimms comm = 51.19 Logical
32 Nanjala Gwenevere comm = 41.39 Function argument
33 Sioux Radcoolinator comm = 41.67 Function
34 New Records: Timmy Smith comm = 69.8 Resultant Array = array created by array operation
35 Chantel Mimms comm = 645.29 Types of Arrays =
36 10/29/22 Chantel Mimms 11222.47 Nanjala Gwenevere comm = 746.97 Range
37 10/29/22 Nanjala Gwenevere 12990.78 Sioux Radcoolinator comm = 170.07 Resultant Array
38 10/29/22 Sioux Radcoolinator 2957.7 Abigail Sinclaire comm = 217.7 Dynamic Spilled Array
39 10/29/22 Abigail Sinclaire 3786.09 Chantel Mimms comm = 317.17 Array Constant: {} House Array. , = Column. ; = Row.
40 10/30/22 Chantel Mimms 5516.06 Nanjala Gwenevere comm = 290.26 Define Worksheet Array Formula = formula that contains at least one operation that deliver an array of answers,
41 10/30/22 Nanjala Gwenevere 5047.96 Sioux Radcoolinator comm = 824.48 rather than a single answer
42 10/30/22 Sioux Radcoolinator 14338.83 Abigail Sinclaire comm = 626.04 Types of Array Formulas =
43 10/30/22 Abigail Sinclaire 10887.73 Dynamic Spilled Array Formulas
44 Hurdle: Scalar Array Formula
45 60 Dynamic Array Formula Characteristics:
46 1. Dynamic spilled array formula lives in top cell
47 Boolean: 2. Formula spills down from and to right of the top cell
48 TRUE 3. Edit formula in top cell
49 TRUE 4. Cells below top cell do not contains values, but can be referenced
50 FALSE 5. If cell content is in way of spilled results, you get a #SPILL! error
51 FALSE 6. Spilled Range Operator is: #. Refer to dynamic spilled array with top cell and #, like: I5#
52 TRUE 7. Spilled arrays not allowed in Excel Tables
53 FALSE
A B C D E F G H I J K L M N O P Q R
1
2 Why Array Formulas are useful:
3 1) Make Worksheet Formulas Easier Than Before with Dynamic Spilled Array Formulas
4 Dynamic Spilled Array Formulas:
5 Don't have to lock cell references
6 Don't have to manually copy formula
7 Editing is done in top cell with no re-copy
8
9 Goal 1: Create Profit Budget
Budget Income
10 Statement by Month Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Total
11 Expenses as % of Sales % Revenue 5,000 4,500 4,375 8,540 9,700 1,452 1,500 1,125 9,050 1,375 1,950 2,275 50,842
12 COGS Expense 0.375 COGS Expense 1,875 1,688 1,641 3,203 3,638 545 563 422 3,394 516 731 853 19,066
13 Research Expense 0.125 Research Expense 625 563 547 1,068 1,213 182 188 141 1,131 172 244 284 6,355
14 Selling & Marketing Ex. 0.0975 Selling & Marketing Ex. 488 439 427 833 946 142 146 110 882 134 190 222 4,957
15 Interest Expense 0.05 Interest Expense 250 225 219 427 485 73 75 56 453 69 98 114 2,542
16 Income Tax Expense 0.175 Income Tax Expense 875 788 766 1,495 1,698 254 263 197 1,584 241 341 398 8,897
17 Other Expense 0.015 Other Expense 75 68 66 128 146 22 23 17 136 21 29 34 763
18 Total Expenses 4,188 3,769 3,664 7,152 8,124 1,216 1,256 942 7,579 1,152 1,633 1,905 42,580
19 Net Income (Profit) 813 731 711 1,388 1,576 236 244 183 1,471 223 317 370 8,262
20
21 F12: =ROUND(F11:Q11*C12:C17,2)
22
23 Goal 2: Create Schedule of Future Value Retirement Amounts
24
25 Retirement Assumptions: Year/Rate of Return 0.02 0.04 0.06 0.08 0.1 0.12
26 Start Years to invest 10 10 115,592 127,462 140,762 155,660 172,343 191,017
27 Number Year Examples 8 15 179,664 209,241 244,742 287,382 338,611 400,165
28 Year Increment 5 20 250,403 308,736 383,892 480,924 606,387 768,756
29 Start Rate of Return 2.0% 25 328,506 429,788 570,104 765,302 1,037,644 1,418,339
30 Number Rate Examples 6 30 414,738 577,066 819,299 1,183,145 1,732,187 2,563,126
31 Rate Increment 2.0% 35 509,944 756,253 1,152,778 1,797,095 2,850,756 4,580,633
32 Yearly Deposit ($) 10,000 40 615,060 974,260 1,599,048 2,699,188 4,652,222 8,136,169
33 Initial Deposit ($) 5,000 45 731,116 1,239,500 2,196,258 4,024,658 7,553,501 14,402,238
34
35 F26: =FV(F25#,E26#,-C32,-C33)
36
A B C D E F G H I J K L
1
2 Why Array Formulas are useful:
3 2) Help Build More Compact Solutions
4 Scarlar Array Formulas can eliminate unnecessay intermediate steps in the worksheet
5
6
7 Goal 1: Estimate returns for stock A & B in a portfolio of stocks.
8
Weight of Stock in
9 Portfolio: 60.00% 40.00%
Probability of Stock A Contribution Stock B Contribution
10 Economic State Stock A Estimated Return Stock B Estimated Return to Portfolio to Portfolio
11 Bad 35.00% 2.50% -7.50% 0.00525 -0.0105 G11: =C11:C13*D9:E9*D11:E13
12 OK 25.00% 8.50% 12.50% 0.01275 0.0125
13 Good 40.00% 14.50% 22.00% 0.0348 0.0352
Estimated Portfolio Estimated Portfolio
14 Returns: 9.00% Returns: 9.00% H14: =SUM(G11#)
15
Example of More Compact Solution that
16 E14: =SUM(D11:E13*C11:C13*D9:E9)
17
18 Goal 2: Estimate the Overall Profit for Next Year
19
Net Year Estimated
20 Expenses as % of Sales % Profit:
21 COGS Expense 0.375 8261.74
22 Research Expense 0.125
23 Selling & Marketing Ex. 0.0975 G21: =SUM(-ROUND(TOROW(E28:E39)*E21:E26,2),E28:E39)
24 Interest Expense 0.05
25 Income Tax Expense 0.175 Example of More Compact Solution that
26 Other Expense 0.015
27 Revenue $
28 Jan 5,000
29 Feb 4,500
30 Mar 4,375
31 Apr 8,540
32 May 9,700
33 Jun 1,452
34 Jul 1,500
35 Aug 1,125
36 Sep 9,050
37 Oct 1,375
38 Nov 1,950
39 Dec 2,275
09-M365ExcelClass.xlsx - CompactSolutions (an) Page 12 of 26
MECS Video #9 - Array Formula Notes
A B C D E F G H I J K L M N O P Q
1
2 Goal: Calculate Standard deviation for the portfolio that contains stock A & B.
3
Weight of Stock in
4 Portfolio: 0.6 0.4
Stock A Full Stock B Full
Probability of Estimated Estimated 3. Subtract 4) * Prob of
5 Economic State Return Return 1) Weight * Return 2) Add for Econ State Mean & Square Econ
6 Bad 0.5 0.0 -0.15 0 -0.06 -0.06 0.004096 0.002048
7 OK 0.4 0.05 0.05 0.03 0.02 0.05 0.002116 0.0008464
8 Great 0.1 0.1 0.2 0.06 0.08 0.14 0.018496 0.0018496
9
10 5) Add = Var 0.004744
11 6) SQRT = SD 0.068876701
12 Expected Portfolio Returns: 0.0040
13
14 Example of More Compact Solution that avoids all worksheet cell steps that are listed above:
15
16 Standard Deviation of Ex. Portfolio Returns: 0.068876701
17 Standard Deviation of Ex. Portfolio Returns: 0.068876701
18
19 M16: =SQRT(SUM(BYROW(D6:E8*D4:E4,LAMBDA(r,(SUM(r)-M12)^2))*C6:C8))
20 M17: =SQRT(SUM((MMULT(D6:E8*D4:E4,SEQUENCE(COLUMNS(D4:E4),1,1,0))-M12)^2*C6:C8))
21
A B C D E F G H I J K L M
1
2 Question:
3 Executive at HMO wanted to check Patient Record Data accuracy. An independent and random sample of medical records was taken for each of the four years.
4
5 Year SurveyAnswer Count Year
6 2011 Yes SurveyAnswer 2011 2012 2013 2014 Grand Total
7 2012 Yes Yes 39 43 45 41 168
8 2013 No No 304 223 271 341 1139
9 2014 No Grand Total 343 266 316 382 1307
10 2011 No
11 2012 No % Column Total Year
12 2013 No SurveyAnswer 2011 2012 2013 2014 Grand Total
13 2014 No Yes 11.37% 16.17% 14.24% 10.73% 12.85%
14 2011 No No 88.63% 83.83% 85.76% 89.27% 87.15%
15 2012 No Grand Total 100.00% 100.00% 100.00% 100.00% 100.00%
16 2013 No
17 2014 No Expected Value Year
18 2011 No SurveyAnswer 2011 2012 2013 2014 Grand Total
19 2012 No Yes 44.08875 34.19128 40.61821 49.10176 168
20 2013 No No 298.9112 231.8087 275.3818 332.8982 1139
21 2014 No Grand Total 343 266 316 382 1307
22 2011 Yes
23 2012 No Deviation^2 Year
24 2013 No SurveyAnswer 2011 2012 2013 2014
25 2014 No Yes 25.89541 77.59359 19.20009 65.63851
26 2011 Yes No 25.89541 77.59359 19.20009 65.63851
27 2012 No
28 2013 Yes Deviations Squared/Expected Frequencies:
29 2014 No SurveyAnswer 2011 2012 2013 2014
30 2011 No Yes 0.587347 2.269397 0.472697 1.336785
31 2012 No No 0.086632 0.334731 0.069722 0.197173
32 2013 No
33 2014 No Test Statistic Chi-Square = c2 = 5.354484
34 2011 No
35 2012 No Example of More Compact Solution that avoids all worksheet cell steps that are listed above:
36 2013 No
37 2014 No Test Statistic Chi-Square = c2 = 5.354484 G37: =SUM((G9:J9*K7:K8/K9-G7:J8)^2/(G9:J9*K7:K8/K9))
38 2011 Yes
09-M365ExcelClass.xlsx - CS(3) Page 14 of 26
MECS Video #9 - Array Formula Notes
A B C D E F G H I J K L M N
1
2 SUMPRODUCT function is an aggregate function that is programmed to make array calculations, but deliver an aggregate answer.
3 SUMPRODUCT can multiple 2 or more same size arrays, then add the resultant result to get an aggregate sum total
4 Arguments: SUMPRODUCT(arra1,[array2] … )
5
6 Goal 1: Calculate total sales (price * units) in single cell. Time in milliseconds:
7
8 Product Price Units Total Sales ($) SUM Times: SUMPRODUCT times:
9 c 49.05 6 284,443,532.22 7.3 6.6
10 q 13.31 126 7.3 6.5
11 a 26.79 1 Total Sales ($) 7.5 6.6
12 c 37.92 167 284,443,532.22 7.4 6.6
13 q 49.92 78 Ave: 7.38 6.58
14 a 40.37 87 F9: =SUM(C9:C100560*D9:D100560)
15 c 25.83 32 F12: =SUMPRODUCT(C9:C100560,D9:D100560) % Decrease: -10.85%
16 q 44.77 105
17 a 18.52 66
18 c 46.21 163 Goal 2: Multiply each test score by each test weight and then add to get student total score.
19 q 10.7 142 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
20 a 30.82 141
21 c 36.35 31 Weights: 20% 25% 15% 40%
22 q 44.79 137
23 a 16.24 21 Name Test 1 Test 2 Test 3 Test 4 Weighted Ave. Weighted Ave. Weighted Ave. Weighted Ave.
24 c 10.64 39 Sioux 91 94 91 87.5 90.35 90.35 90.35 90.35
25 q 35.68 147 Chin 98 87.5 79 86 87.73 87.73 87.73 87.725
26 a 38.54 157 Ty 73 36 56 78 63.20 63.20 63.20 63.2
27 c 13.18 78 Mo 65 70 72 84 74.90 74.90 74.90 74.9
28 q 30.97 32
29 a 46.33 109 Test Weights K24: =SUMPRODUCT(G24:J24,$G$21:$J$21)
30 c 36.31 4 Test 1 20% L24: =SUMPRODUCT(G24:J24,TOROW($G$30:$G$33))
31 q 47.16 1 Test 2 25% M24: =G24*$G$21+H24*$H$21+I24*$I$21+J24*$J$21
32 a 47.95 40 Test 3 15% N24: =MMULT(G24:J24,$G$30:$G$33)
33 c 42.54 146 Test 4 40%
34 q 26.3 186
100560 c 46.75 10
100561
A B C D E F G H I J K L M N O P
1 VSTACK
Quarter 1 Quarter 2 Re-Orient Data
2 Date Student Test Score Date Student Test Score Functions CHOOSECOLS
3 1/6/23 Sioux Test 1 87 3/1/23 Sioux Test 4 87 CHOOSECOLS SORT
4 2/10/23 Sioux Test 2 86 3/15/23 Sioux Test 5 86 CHOOSEROWS TAKE
5 2/22/23 Sioux Test 3 70 4/3/23 Sioux Test 6 70 DROP
6 1/6/23 Chantel Test 1 96 3/1/23 Chantel Test 4 87 TAKE Goal:
7 2/10/23 Chantel Test 2 90 3/15/23 Chantel Test 5 90 VSTACK Top Five Student Sorted Scores
8 2/22/23 Chantel Test 3 90 4/3/23 Chantel Test 6 90 HSTACK from both tables
9 1/6/23 Mo Test 1 89 3/1/23 Mo Test 4 89 SORT
10 2/10/23 Mo Test 2 45 3/15/23 Mo Test 5 90 TOCOL Top: 6
11 2/22/23 Mo Test 3 93 4/3/23 Mo Test 6 93 TOROW
12 1/6/23 Ty Test 1 99 3/1/23 Ty Test 4 99 TRANSPOSE Student ALL Scores
13 2/10/23 Ty Test 2 92 3/15/23 Ty Test 5 90 WRAPCOLS Ty 99
14 2/22/23 Ty Test 3 92 4/3/23 Ty Test 6 92 WRAPROWS Ty 99
15 SORTBY Chantel 96
16 UNIQUE Mo 93
17 Top 4 include ties: EXPAND Mo 93
18 Top 4 FILTER Ty 92
19 Value 93
20 N13: =TAKE(SORT(CHOOSECOLS(VSTACK(C3:E14,H3:J14),1,3),2,-1),O10)
21 Student ALL Scores
22 Ty 99 C22: =CHOOSECOLS(SORT(FILTER(VSTACK(C3:E14,H3:J14),VSTACK(E3:E14,J3:J14)>=D19),3,-1),1,3)
23 Ty 99
24 Chantel 96
25 Mo 93
26 Mo 93
Q R S T U V W X Y Z AA AB AC AD
1 TOROW
2 TRANSPOSE
3
4 Goal:
5 Orient test scores from second table horizontally
6
7 Tests: Test 4, 87, Test 5, 86, Test 6, 70, Test 4, 87, Test 5, 90, Test 6, 90, Test 4, 89, Test 5, 90, Test 6, 93, Test 4, 99, Test 5, 90, Test 6, 92
8
9 Test: Test 4 Test 5 Test 6 Test 4 Test 5 Test 6 Test 4 Test 5 Test 6 Test 4 Test 5 Test 6
10 Score: 87 86 70 87 90 90 89 90 93 99 90 92
11
12
13 R7: =TEXTJOIN(", ",,TOROW(I3:J14))
14 R9: =TRANSPOSE(I3:J14)
15
AF AG AH AI AJ AK AL AM AN AO AP AQ
1 WRAPCOLS SORTBY FILTER Date
AS AT AU AV AW AX AY AZ BA BB
1 VSTACK
2 SORT
3 Product Sales UNIQUE
4 Quad 439.43 DROP
5 Carlota 231.05
6 Quad 120.01 Goal:
7 Aspen 550.51 Create Dynamic Product Sales Report
8 Aspen 400.1
9 Carlota 397.84 Product Sales
10 Aspen 950.61
11 Carlota 628.89
12 Quad 559.44
13 New Data: Total 2138.94
14
15 Yanaki 129.27
16 Carlota 388.49
17 Yanaki 43.69
18
19 AW10: =VSTACK(SORT(UNIQUE(ProdSales[Product])),"Total")
20 AX10: =VSTACK(DROP(SUMIFS(ProdSales[Sales],ProdSales[Product],AW10#),-1),SUM(ProdSales[Sales]))
21
BE BF BG BH BI BJ BK BL BM BN BO BP BQ BR
1 SEQUENCE
A B C D E F G H I J K L M N O P Q R S T U V W
1 Rows 10 Products Rows 10 Insurance Agent has 6 appointments.
2 Columns 2 Quad Columns 2 It is known from past data that she makes a sale 20.0% of the time.
Create Arrays of
3 Numbers Min 1 Yanaki Start 5 What is probability that she will make 3 sales?
4 RANDARRAY Max 5 Carlota Step 5
5 SEQUENCE Bellen Average Test Score 75
6 RANDARRAY SEQUENCE Binomial Distribution Stand. Dev 10
7 P 0.2 Start 34
8 Goal: Spill Repeated Word n 6 End 114
9
10 0 to 1 1 to 5 Rounded Text Col1 Col2 Seq1 Seq5 Date Sales SalesRep X P(x) X = Test Score P(x)
11 0.020353096 3 2.04 Yanaki 0.09443854 0.29889143 1 5 11/19/22 775.17 Sioux 0 0.262144 34 8.92617E-06
12 0.020060188 3 4.09 Bellen 0.25791647 0.27118213 2 10 11/20/22 631.59 Sioux 1 0.393216 35 1.3383E-05
13 0.452945726 2 2.56 Carlota 0.3728837 0.04736142 3 15 11/21/22 1929.39 Sioux 2 0.24576 36 1.98655E-05
14 0.128392687 4 4.67 Yanaki 0.8431947 0.78732642 4 20 11/22/22 688.83 Sioux 3 0.08192 37 2.91947E-05
15 0.854260646 2 4.71 Bellen 0.54913444 0.30608632 5 25 11/23/22 167.37 Sioux 4 0.01536 38 4.2478E-05
16 0.548742503 2 2.76 Yanaki 0.52959386 0.1060084 6 30 11/24/22 765.01 Sioux 5 0.001536 39 6.11902E-05
17 0.618090179 5 2.23 Carlota 0.03146846 0.50966053 7 35 11/25/22 936.83 Sioux 6 6.4E-05 40 8.72683E-05
18 0.314188881 2 4.11 Carlota 0.08098736 0.68743436 8 40 11/26/22 930.98 Sioux 41 0.000123222
19 0.726513975 4 3.04 Quad 0.29443964 0.41247996 9 45 42 0.000172257
20 0.034440246 3 3.29 Quad 0.08242327 0.67828537 10 50 Goal: Investigate characters in text string: 43 0.000238409
21 44 0.000326682
22 D11: =RANDARRAY(E1) The dog is rad Average Test Score = 75, Stand. Dev =4510 0.000443185
23 E11: =RANDARRAY(E1,,E3,E4,1) 0.05 46 0.000595253
24 F11: =ROUND(RANDARRAY(E1,,E3,E4),2) Characters: Code: 0.04 47 0.000791545
25 G11: =INDEX(G2:G5,RANDARRAY(E1,,1,ROWS(G2:G5),1)) T 84 0.03 48 0.001042093
P(x)
26 H11: =RANDARRAY(E1,E2) h 104 0.02 49 0.001358297
27 K11: =SEQUENCE(L1) e 101 50 0.00175283
0.01
28 L11: =SEQUENCE(L1,,L3,L4) 32 51 0.002239453
0
29 P11: =INDEX("Sioux",SEQUENCE(ROWS(O11:O18),,1,0)) d 100 52 0.002832704
34
38
42
46
50
54
58
62
66
70
74
78
82
86
90
94
98
102
106
110
30 S11: =SEQUENCE(T8+1,,0) o 111 53 0.003547459
X = Test Score
31 T11: =BINOM.DIST.RANGE(T8,T7,S11#) g 103 54 0.00439836
32 V11: =SEQUENCE(W8-W7+1,,W7) 160 55 0.005399097
33 W11: =NORM.DIST(V11#,W5,W6,0) i 105 56 0.006561581
34 N25: =MID(N22,SEQUENCE(LEN(N22)),1) s 115 57 0.007895016
35 O25: =CODE(N25#) 32 58 0.009404908
36 r 114 59 0.011092083
37 a 97 60 0.01295176
38 d 100 61 0.014972747
A B C D E F G H I J K L M N O P Q R S T
1 FREQUENCY TREND Linear Regression to estimate based on X & Y.
2
Statistics & Upper Limit Sales Calls Call Estimates Sales Sales
3 Matrix Algebra Cola Sales ($) for Sales ($) Frequency Categories for Upper Limits Made (X) Sales (Y) Day (X) Estimates (Y) Estimates (Y) Slope
4 FREQUENCY Coke 250 250 2 Sales <= 250 156 96,408 Day 1 52 34,657 34,657 822.285112
5 GROWTH Pepsi 504 450 4 250 < Sales <=450 39 22,737 Day 2 67 46,992 46,992 Y-intercept
6 LINEST Bloxy 331 750 6 450 < Sales <=750 121 95,832 Day 3 133 101,262 101,262 -8101.4457
7 LOGEST Bloxy 1047 1050 5 750 < Sales <=1050 68 35,496 Day 4 160 123,464 123,464
8 MMULT c 275 1 Sales >1050 30 20,190 Day 5 111 83,172 83,172
9 MODE.MULT RC 1005 48 37,968 Day 6 26 13,278 13,278
10 MUNIT RC 616 157 140,358 Day 7 136 103,729 103,729
11 TREND Bloxy 1043 MODE.MULT 103 74,572 Day 8 126 95,506 95,506
12 RC 1054 74 43,734 Day 9 159 122,642 122,642
13 RC 275 Mode = Number That Occurs Most Frequently 87 60,030 Day 10 70 49,459 49,459
14 RC 271 165 112,200 Day 11 163 125,931 125,931
15 c 604 Modes: 63 58,212
16 RC 923 275 148 141,192 Q4: =TREND(M4:M19,L4:L19,P4:P14)
17 Bloxy 613 923 64 36,416 R4: =P4:P14*P23+Q23
18 Pepsi 474 51 40,851
19 Pepsi 923 H4: =FREQUENCY(E4:E21,G4:G7) 68 39,916 LINEST
20 RC 678 H16: =MODE.MULT(E4:E21) Calculates Linear Regression Statistics.
21 Pepsi 169
22 Slope Y-intercept
23 822.2851123 -8101.445746
24
25 P23: =LINEST(M4:M19,L4:L19)
26 P30: =LINEST(M4:M19,L4:L19,1,1)
27
28 LINEST
29
30 Slope m 822.2851123 -8101.445746 Intercept b
31 Standard Error m 78.06068356 7831.591503 Standard Error b
32 Coefficient of Determination 0.887967288 13763.44004 Standard Error y
33 F 110.963502 14 df
34 SS Regression 21020069392 2652051946 SS Residual
35 const: = 1 = TRUE = b calculated normally. 0 = FALSE = b set to zero.
36 stats: 1 = TRUE = calculate all statistics. 0 = FALSE = calculate just m and b.
37
A B C D E F G H I J
1
TEXTSPLIT - row
FILTERXML
2 TEXTSPLIT Text delimiter
3 TEXTSPLIT 2,23,43,6,90,690 2 2
4 FILTERXML 23 23
5 43 43
6 6 6
7 90 90
8 690 690
9
TEXTSPLIT - row &
10 Text column delimiter
11 2,23;43,6;90,690 2 23
12 43 6
13 90 690
14
TEXTSPLIT - 2
15 Text delimters for row
16 2,23;43,6;90,690 2 23 43 6 90 690
17
18 E3: =TEXTSPLIT(D3,,",")
19 F3: =FILTERXML("<AllText><Num>"&SUBSTITUTE(D3,",","</Num><Num>")&"</Num></AllText>","//Num")
20 E11: =TEXTSPLIT(D11,",",";")
21 E16: =TEXTSPLIT(D16,{",",";"})
22