You are on page 1of 7

Advanced to Expert: How Arrays Really Work

Link Topic Comprehension Your Notes


Lifting Lifting & Pairwise Lifting Select One…
Broadcasting Broadcasting Excel Array Behavior Select One…
Implicit Intersection - Why Some Legacy
Implicit Select One…
Formulas Needed CSE
CSE CSE Formulas No Longer Needed? Select One…
Lifting & Pairwise Lifting

Example of Lifting

1/20/2019 1
3/1/2019 3
4/10/2019 4

Example of Pairwise Lifting

1 4 5
2 5 7
3 6 9

Example of Pairwise Lifting & Lifting in one Formula

Filter A5 to A7 if month > 2 AND Year = 2019

Lifting & pairwise


lifting in the Include
argument for FILTER.
Broadcasting Excel Array Behavior

Simple example of Broadcasting


1 1 2 {=A4:A6+B4} 9 =SUM(_xlfn.anchorarray(C4))
2 3
3 4

Broadcasting in SORT function Sort by column A, B, C in descending order


A A 1
A A 2
A C 3
B A 4
B Z 5
C A 6
C B 7
C A 8
C C 9

SUM formula

1 1 1
1

Sum:

What if we have arrays of different sizes?

Array 1 Array 2
Broadcasting is not possible.
1 1 Excel doesn't know which
1 1 number should be
1 ? broadcasted to the empty cell.

Sum:
Implicit Intersection - Why Some Legacy Formulas Needed CSE

Dynamic array Excel doesn't allow for implicit Intersection.


To force implicit intersection we can use the SINGLE function.

1/20/2019 1 {=MONTH(A6:A8)}
3/1/2019 3
4/10/2019 4

This formula written in Legacy Excel looks like this:


Legacy Excel

Depending on where the formula is written - we get back the value on the same row.
If there are no values in front, we get back an error.

If we open this file in Dynamic Array Excel we see this:


DA Excel
CSE Formulas No Longer Needed?
Short answer: CSE formulas are NO longer Needed

Quote from Microsoft: "CSE array formulas are only retained for compatibility reasons. Going forward, you should use dynami
Source: support.office.com

Example where you could use it - To stop formulas from spilling (too much)

App Revenue Sort but only show TOP 3


Arcade 40004
Aviatrr 32710
Baden 7620
deRamblr 7443
Fightrr 13135
Twistrr 14576
Pes 5428
Kryptis 927
Perino 463
Halotot 15126
Inkly 3953
Blend 3839
Dasring 5692
Didactic 13434
Flowrrr 4326
Right App 12979
Silvrr 5237
Sleops 1480
Voltage 17306
WenCaL 17761
Kind Ape 683
Mirrrr 1366
Pet Feed 1708
Rehire 6148
Accord 684
Amplefio 4104
Atmos 0
Commuta 1710
Infic 684
Minor Liar 10407
Misty Was 2508
Mosquit 0
Motocyco 0
Twenty20 7105
g forward, you should use dynamic arrays formulas instead."

You might also like