0% found this document useful (0 votes)
16 views

S3 Dynamic Array LegacyFormulas

Uploaded by

Somashekar B
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

S3 Dynamic Array LegacyFormulas

Uploaded by

Somashekar B
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 31

How Legacy Formulas are Impacted

Link Topic Comprehension


Compatibility Backward & Forward Compatibility Done but needs practice
CellRef Absolute & Mixed Cell Referencing Done & Understood

SUMIFS SUMIFS & COUNTIFS with OR Condition Done & Understood


(more than 1 criteria in one column)
VLOOKUP IF VLOOKUP & IF Functions with Dynamic Done & Understood
Arrays
SpillRef Referencing Spilled Data Ranges in Done & Understood
Other Sheets
TRANSPOSE FREQ TRANSPOSE & FREQUENCY Functions Done but needs practice
Challenge Challenge: Data Analysis with Legacy Done but needs practice
Formulas & Dynamic Arrays
Your comments
Backward & Forward Compatibility

Raw Data

Division Region Revenue


Utility North America 44,196 Total Productivity
Utility South America 20,898
Utility Asia 46,994 Referencing Ranges
Utility Europe 43,695
Utility Australia 34,196
Productivity North America 34,155
Productivity South America 24,396
Productivity Asia 29,276
Productivity Europe 45,540
Productivity Australia 29,277
Game North America 44,675
Game South America 42,569
Game Asia 43,784
Game Europe 46,336
Game Australia 49,656

SINGLE added to formula as


Excel is unsure if it will spill. In
the first two examples, you can
safely remove it. Removing it
in the third example will spill
the results.
Excel Pre-DA CSE Formula Excel DA Formulas
Curly brackets will be
added in older version.
162,644 162,644

North America North America


South America South America
Asia Asia
Europe Europe
Australia Australia

Index Formulas New DA formula


{=_.xlfn._xlws.SORT(_xlfn.
UNIQUE(A6:A20))}
North America #NAME? in older Excel version.
#NAME?
North America #NAME?

Australia Spilled Array Operator (#)


{=_xlfn.ANCHORARRAY(H16)}
in older Excel version.
#NAME?
SINGLE added to formula as #NAME?
Excel is unsure if it will spill. In #NAME?
the first two examples, you can
safely remove it. Removing it
in the third example will spill
the results.
ets will be
der version.

lws.SORT(_xlfn.
6:A20))}
cel version.

NCHORARRAY(H16)}
xcel version.
Absolute & Mixed Cell Referencing
Dynamic Array Aware Excel & Absolute Cell Referencing
Legacy version uses the dollar sign $
fix references.
Legacy version DA version
Exchange rate: 0.880146 0.880146
App Revenue USD Revenue EUR Revenue EUR
Fightrr 11,649 10,253 10,253
Kryptis 7,718 6,793 6,793
Perino 15,033 13,231 13,231
Five Labs 21,579 18,993 18,993
Twistrr 27,211 23,949 23,949
Hackrr 18,701 16,459 16,459
Pes 45,316 39,885 39,885
Baden 35,980 31,668 31,668
Jellyfish 7,657 6,739 6,739
Aviatrr 8,126 7,152 7,152
deRamblr 5,272 4,640 4,640
Arcade 6,375 5,611 5,611
Commuta 6,353 5,592 5,592
Infic 12,373 10,890 10,890
Accord 17,760 15,631 15,631
Misty Wash 30,400 26,756 26,756
Twenty20 20,400 17,955 17,955
Tanox 21,088 18,561 18,561
Minor Liar 23,737 20,892 20,892
Mosquit 6,302 5,547 5,547
Atmos 10,675 9,396 9,396
Scrap 13,307 11,712 11,712
Motocyco 11,182 9,842 9,842
Amplefio 8,250 7,261 7,261
Strex 8,152 7,175 7,175

Dynamic Array Aware Excel & Mixed Cell Referencing

Legacy version DA version


Exchange rate: 0.880146 0.789361 0.880146
App Revenue USD Revenue EUR Revenue GBP Revenue EUR
Fightrr 11,649 10,253 9,195 10,253
Kryptis 7,718 6,793 6,092 6,793
Perino 15,033 13,231 11,866 13,231
Five Labs 21,579 18,993 17,034 18,993
Twistrr 27,211 23,949 21,479 23,949
Hackrr 18,701 16,459 14,761 16,459
Pes 45,316 39,885 35,771 39,885
Baden 35,980 31,668 28,401 31,668
Jellyfish 7,657 6,739 6,044 6,739
Aviatrr 8,126 7,152 6,414 7,152
deRamblr 5,272 4,640 4,162 4,640
Arcade 6,375 5,611 5,032 5,611
Commuta 6,353 5,592 5,015 5,592
Infic 12,373 10,890 9,767 10,890
Accord 17,760 15,631 14,019 15,631
Misty Wash 30,400 26,756 23,996 26,756
Twenty20 20,400 17,955 16,103 17,955
Tanox 21,088 18,561 16,646 18,561
Minor Liar 23,737 20,892 18,737 20,892
Mosquit 6,302 5,547 4,975 5,547
Atmos 10,675 9,396 8,426 9,396
Scrap 13,307 11,712 10,504 11,712
Motocyco 11,182 9,842 8,827 9,842
Amplefio 8,250 7,261 6,512 7,261
Strex 8,152 7,175 6,435 7,175
Legacy version uses the dollar sign $ to
fix references.

DA version
0.789361
Revenue GBP
9,195 Dynamic-Array-Aware Excel doesn't need
6,092 us to worry about absolute and mixed cell
11,866 referencing when writing formulas such as
these. Exceptions apply - see next lecture.
17,034
21,479
14,761
35,771
28,401
6,044
6,414
4,162
5,032
5,015
9,767
14,019
23,996
16,103
16,646
18,737
4,975
8,426
10,504
8,827
6,512
6,435
SUMIFS & COUNTIFS with OR Condition (more than 1 criteria in one column)

1. Create a summary table by Region an


Division Region App Revenue
Game Asia Arcade 4,378
Game Asia Aviatrr 5,254
Game Asia Baden 6,130 Division
Game Asia deRamblr 7,443 #NAME?
Game Asia Fightrr 13,135 #NAME?
Game Asia Twistrr 7,443 #NAME?
Game Australia Arcade 15,890
Game Australia Aviatrr 11,917
Game Australia Baden 1,490
Game Australia Pes 497 2. How many Apps in the following Reg
Game Australia Twistrr 3,476
Game Europe Arcade 9,267 Asia
Game Europe Aviatrr 9,731 Australia
Game Europe Kryptis 927 Answer:
Game Europe Perino 463
Game Europe Pes 463
Game Europe Twistrr 2,317
Game North America Arcade 5,361
Game North America Aviatrr 5,808
Game North America Pes 4,468
Game North America Twistrr 1,340
Game South America Arcade 5,108
Productivity Asia Halotot 3,513
Productivity Asia Inkly 2,928
Productivity Europe Blend 911
Productivity Europe Dasring 2,277
Productivity Europe Didactic 3,188
Productivity Europe Flowrrr 3,643
Productivity Europe Halotot 5,465
Productivity Europe Right App 5,465
Productivity Europe Silvrr 4,554
Productivity Europe Sleops 455
Productivity Europe Voltage 911
Productivity Europe WenCaL 10,930
Productivity North America Blend 1,708
Productivity North America Dasring 683
Productivity North America Didactic 683
Productivity North America Flowrrr 683
Productivity North America Halotot 6,148
Productivity North America Inkly 1,025
Productivity North America Kind Ape 683
Productivity North America Mirrrr 1,366
Productivity North America Pet Feed 1,708
Productivity North America Rehire 6,148
Productivity North America Right App 7,514
Productivity North America Silvrr 683
Productivity North America Sleops 342
Productivity North America Voltage 3,416
Productivity North America WenCaL 1,366
Productivity South America Blend 1,220
Productivity South America Dasring 2,732
Productivity South America Didactic 9,563
Productivity South America Sleops 683
Productivity South America Voltage 12,979
Productivity South America WenCaL 5,465
Utility Australia Accord 684
Utility Australia Amplefio 4,104
Utility Australia Atmos 0
Utility Australia Commuta 1,710
Utility Australia Infic 684
Utility Australia Minor Liar 684
Utility North America Minor Liar 9,723
Utility South America Misty Wash 2,508
Utility South America Mosquit 0
Utility South America Motocyco 0
Utility South America Twenty20 7,105
column)

eate a summary table by Region and Division

Asia North America Europe


Australia South America
Values should show the
Region 1 Region 2 Region 3 Sum by region as specified
#NAME? #NAME? #NAME? in the header.
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

w many Apps in the following Regions have sales over 10,000?

>10000

3
VLOOKUP & IF Functions with Dynamic Arrays

Sales by Agent How much do we pay out in comm


(commission values can be found in
Division Date Sales Agent Sales
Game 1/1/2019 Peter Ramsy 5,254
Game 1/1/2019 Stevie Bridge 4,378 Productivity
Game 1/2/2019 Peter Ramsy 6,130
Productivity 1/2/2019 Richard Elliot 3,513 Sales Agent
Game 1/3/2019 Betina Bauer 7,443 #NAME?
Game 1/3/2019 Ewan Thompson 13,135 #NAME?
Utility 1/4/2019 Dan Ziegler 4,104 #NAME?
Productivity 1/4/2019 Paul Garza 2,928 #NAME?
Game 1/5/2019 Betina Bauer 3,476
Utility 1/5/2019 Brigitte Bond 1,710
Game 1/5/2019 Paul Hill 7,443
Game 1/6/2019 Ewan Thompson 11,917
Game 1/7/2019 Peter Ramsy 1,490
Productivity 1/8/2019 Paul Garza 2,277
Productivity 1/9/2019 Richard Elliot 3,188
Game 1/9/2019 Stevie Bridge 497
Productivity 1/10/2019 Natalie Porter 5,465
Game 1/10/2019 Paul Hill 15,890
Productivity 1/10/2019 Richard Elliot 3,643
Game 1/11/2019 Betina Bauer 9,267
Game 1/11/2019 Ewan Thompson 9,731
Productivity 1/11/2019 Natalie Porter 15,000
Productivity 1/13/2019 Robert Musser 4,554
Game 1/13/2019 Stevie Bridge 927
Utility 1/14/2019 Brigitte Bond 9,723
Game 1/14/2019 Peter Ramsy 463
Game 1/15/2019 Betina Bauer 463
Productivity 1/15/2019 Natalie Porter 10,930
Game 1/15/2019 Peter Ramsy 2,317
Productivity 1/17/2019 Paul Garza 1,708
Productivity 1/18/2019 Paul Garza 6,148
Productivity 1/19/2019 Robert Musser 1,025
Game 1/19/2019 Stevie Bridge 5,361
Productivity 1/20/2019 Paul Garza 1,366
Productivity 1/20/2019 Richard Elliot 15,000
Game 1/21/2019 Ewan Thompson 5,808
Game 1/23/2019 Ewan Thompson 4,468
Utility 1/24/2019 Brigitte Bond 2,508
Productivity 1/25/2019 Paul Garza 6,148
Productivity 1/26/2019 Robert Musser 7,514
Game 1/26/2019 Stevie Bridge 1,340
Productivity 1/27/2019 Richard Elliot 3,416
Utility 1/28/2019 Brigitte Bond 7,105
Game 1/28/2019 Ewan Thompson 5,108
Utility 1/30/2019 Dan Ziegler 2,052
Game 1/30/2019 Maria Tot 220
Productivity 1/30/2019 Paul Garza 5,465
Productivity 1/30/2019 Richard Elliot 12,000
Game 1/31/2019 Peter Ramsy 230
uch do we pay out in commission for each sales agent by division?
ssion values can be found in "data" tab)

Learn how to create this drop-down in


the next section

Sales Commission Commission amount Status


#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
Division List
#NAME?
#NAME? This is used for the
drop-down list
#NAME?
Commission data used as reference in other sheets
Commission Rate by Sales Agent

Sales Agent Commission Rate


Gary Miller 5%
James Willard 15%
Richard Elliot 14%
Robert Spear 22%
Roger Mun 12%
Paul Garza 33%
Robert Marquez 5%
Natalie Porter 29%
Kim West 20%
Stevie Bridge 20%
Andre Cooper 20%
Crystal Doyle 19%
Robert Musser 20%
Daniel Garrett 15%
Ann Withers 5%
Paul Hill 48%
Corinna Schmidt 30%
Ewan Thompson 16%
Walter Miller 5%
Paul Wells 20%
Betina Bauer 25%
Daniela Schreiber 5%
Dan Ziegler 26%
Peter Ramsy 14%
Wolfgang Ramjac 12%
Robert Richardson 5%
Brigitte Bond 5%
Robert Blume 5%
Mike Saban 10%
Maria Tot 20%
Lukas Hofer 10%
Referencing Spilled Data Ranges in Other Sheets

Moving Data - Option 1: One Reference to "VLOOKUP IF" Tab


A single reference to
over the data in a dyn
Sales Agent Sales Commission Commission amoStatus lose the ability to ma
#NAME? #NAME? #NAME? #NAME? #NAME? specific columns as d
#NAME? #NAME? #NAME? #NAME? #NAME? Status column
#NAME? #NAME? #NAME? #NAME? BEST
#NAME? #NAME? #NAME? #NAME? #NAME?

Moving Data - Option 2: Multiple References

Sales Agent Sales Commission Commission amoStatus


#NAME? #NAME? #NAME? #NAME? #NAME? Bringing in the spille
#NAME? #NAME? #NAME? #NAME? #NAME? (referencing the firs
#NAME? #NAME? #NAME? #NAME? #NAME? dragging the formul
to use spilled refere
#NAME? #NAME? #NAME? #NAME? #NAME?
A single reference to the entire range brings
over the data in a dynamic manner, but you
lose the ability to make spilled references to
specific columns as demonstrated in the
Status column

TRY THIS! Go to "Lookup IF" tab and


change the selection to "Game" - what
do you notice here? What is missing?

Bringing in the spilled columns separately


(referencing the first column and then
dragging the formula) allows you to continue
to use spilled references in your formulas.
TRANSPOSE & FREQUENCY Functions

1. Transpose the data


Sales Agent Commission Rate
Gary Miller 5% Gary MillerJames WillRichard Ell Robert Spe
James Willard 15% 0.05 15% 14% 22%
Richard Elliot 14%
Robert Spear 22%
Roger Mun 12%
Paul Garza 33% 2. Distribution frequency of commission rates
Robert Marquez 5%
Natalie Porter 29%
Kim West 20% Up to & including 10% 10.00% 10
Stevie Bridge 20% 20.00% 14
Andre Cooper 20% 30.00% 5
Crystal Doyle 19% 40.00% 1
Robert Musser 20% Over 40% 1
Daniel Garrett 15%
Ann Withers 5%
Paul Hill 48% Test This: Change rate for Robert
Marquez to 41%
Corinna Schmidt 30%
Ewan Thompson 16%
Walter Miller 5%
Paul Wells 20%
Betina Bauer 25%
Daniela Schreiber 5%
Dan Ziegler 26%
Peter Ramsy 14%
Wolfgang Ramjac 12%
Robert Richardson 5%
Brigitte Bond 5%
Robert Blume 5%
Mike Saban 10%
Maria Tot 20%
Lukas Hofer 10%
Roger MunPaul GarzaRobert MaNatalie PorKim West Stevie BridAndre CooCrystal DoyRobert MusDaniel Garr
12% 33% 5% 29% 20% 20% 20% 19% 20% 15%

mmission rates
Ann WitherPaul Hill Corinna ScEwan ThomWalter MillPaul Wells Betina BauDaniela Sc Dan ZieglerPeter Rams
5% 48% 30% 16% 5% 20% 25% 5% 26% 14%
Wolfgang Robert Ric Brigitte Bo Robert Bl Mike Saba Maria Tot Lukas Hofer
12% 5% 5% 5% 10% 20% 10%
Performance test results
Calculation times are
Test #1 Absolute & Mixed referencing Formula from "CellRef" tab tested on: in milliseconds.

Legacy version DA version

Manual Calc Automatic Calc Manual Calc Automatic Calc


1,000 rows 1 11.44 0.004 6.3 0.004
2 11.89 0.004 6.77 0.004
3 12.04 0.004 6.43 0.004
10,000 rows 1 12.71 0.005 8.94 0.006
2 12.95 0.005 8.54 0.006
3 12.9 0.005 8.5 0.005
300,000 rows 1 59.79 0.046 68.24 0.081
2 58.74 0.038 64.22 0.047
3 58 0.04 63.48 0.064

Test #2 IF Formula

Legacy version DA version

Manual Calc Automatic Calc Manual Calc Automatic Calc


1,000 rows 1 16.53 0.004 12.28 0.006
2 17.39 0.004 11.64 0.007
3 16.73 0.004 11.95 0.005
10,000 rows 1 18.45 0.006 16.37 0.009
2 18.5 0.006 16.14 0.008
3 17.68 0.008 15.71 0.007
300,000 rows 1 53.81 0.039 115.94 0.106
2 52.1 0.033 113.04 0.11
3 52.5 0.035 114.23 0.105

Test #2 VLOOKUP Function

Legacy version DA version

Manual Calc Automatic Calc Manual Calc Automatic Calc


1,000 rows 1 25.91 0.018 21.7 0.016
2 26.34 0.017 23.38 0.015
3 28.57 0.015 21.54 0.017
10,000 rows 1 31.1 0.018 50.19 0.04
2 31.85 0.023 47.05 0.039
3 31.05 0.023 47.01 0.046
300,000 rows 1 256.7 0.227 796.26 0.794
2 252.39 0.237 803.84 0.796
3 255.92 0.239 798.3 0.796
Calculation times are
in milliseconds.
Click HERE for VBA code to measure
Calculation speed and more info on
the way Excel runs calculations.
DA (new) to Legacy
(original) - Manual Calc
-45%
-43%
-47%
-30%
-34%
-34%
14%
9%
9%

DA (new) to Legacy
(original) - Manual Calc
-26%
-33%
-29%
-11%
-13%
-11%
115%
117%
118%

DA (new) to Legacy
(original) - Manual Calc
-16%
-11%
-25%
61%
48%
51%
210%
218%
212%
Challenge: Data Analysis with Legacy Formulas & Dynamic Arrays

Based on the Excel Table called "TableSales" which is in the SUMIFS tab, we need to do the following analysis:
1 Create a report that shows the average revenue per App sorted alphabetically in ascending order
2 If the average revenue is greater than the threshold in C9, a 10% bonus will be given for the app
- if revenue is 0, then 0% otherwise the bonus will be 2%.
3 We receive a list of 6 sales agents from our HR department (scroll down). We need to find out the bonus
percentage each sales agent can receive (based on our first table) - Test by adding a new app as specified in t

Threshold: 5,000
App Average Revenue Bonus Use DA references in your
formulas wherever possible.
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

Continue point 3 here:

App Sales Agent Bonus Get the bonus based on the analysis you do
for 1 & 2. Use DA references in your
WenCal Peter Ramsy #NAME? formulas wherever possible.
Get the bonus based on the analysis you do
for 1 & 2. Use DA references in your
formulas wherever possible.
Baden Stevie Bridge #NAME?
Fightrr Betina Bauer #NAME?
Twistrr Ewan Thompson #NAME? Make sure your results are dynamic. Go to
Kryptis Paul Hill #NAME? SUMIFS tab, add a new app called Bold to
Perino Maria Tot #NAME? the bottom of the list - Bold is in the Utility
division, in Asia and it earns 6,000 in
Revenue. Do all formulas update
accordingly?
TRUE
TRUE
lowing analysis: ✘ 1. Done
ascending order TRUE
✘ 2. Done
ven for the app
WELL DONE!
ed to find out the bonus ✘ 3. Done
g a new app as specified in the green box below.

sed on the analysis you do


references in your
r possible.
sed on the analysis you do
references in your
r possible.

sults are dynamic. Go to


new app called Bold to
list - Bold is in the Utility
d it earns 6,000 in
rmulas update

You might also like