0% found this document useful (0 votes)
5 views51 pages

Excel - Tutoriel de Formules de Tableau Dynamique

This document is a tutorial designed for Office 365 subscribers to help users master dynamic array formulas in Excel. It provides step-by-step instructions on creating and using dynamic arrays, including examples of single and multi-cell array formulas, 2D constants, and mathematical operations. Users are guided through various features and functions to enhance their understanding and application of dynamic arrays in spreadsheets.

Uploaded by

nella01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views51 pages

Excel - Tutoriel de Formules de Tableau Dynamique

This document is a tutorial designed for Office 365 subscribers to help users master dynamic array formulas in Excel. It provides step-by-step instructions on creating and using dynamic arrays, including examples of single and multi-cell array formulas, 2D constants, and mathematical operations. Users are guided through various features and functions to enhance their understanding and application of dynamic arrays in spreadsheets.

Uploaded by

nella01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 51

Welcome

Instructions for screen readers: After you go through the tip sheets in this tutorial, you'll learn how to quickly master dynamic array formulas.
The instructions for each sheet start in cell A1, and each subsequent step is in cell A2, A3, and so on.
The instructions will indicate which cells to navigate to for use of a feature, or further reading.
To start, press CTRL+PAGE DOWN.

Dynamic array formulas


For Office 365 subscribers only.

This tutorial will work best if you follow along with the Guidelines and examples of dynamic array

Let's go
>

Go back to top by pressing CTRL+HOME. To start the tour, press CTRL+PAGE DOWN.
then
enter the
formula
as a
legacy
Single & multi-cell array formulas
array with
Single & multi-cell array formulas
Ctrl+Shift
Use
+Enter.a combination of array formulas to calculate sub-totals and a grand total
There
The are headers in cells D9:H9, data beginning in cell D10 going down to cell H19, with totals in row 20.
same
goes
TheUsefor
array formula in cell H10 is =F10:F19*G10:G19, and it multiplies the number of cars sold by their unit price.
the Total a combination of array formulas to calculate sub-totals and a grand total
The arrayinformula in cell H20 is =SUM(F10:F19*G10:G19), and gives a grand total of all cars sold.
formula
cell H20.
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial
Sales Number
Person Car Type Sold Unit Price Total Sales
Barnhill Sedan 5 33,000 165,000
Coupe 4 37,000 148,000
Ingle Sedan 6 24,000 144,000
Coupe 8 21,000 168,000
Jordan Sedan 3 29,000 87,000
Coupe 1 31,000 31,000
Pica Sedan 9 24,000 216,000
Coupe 5 37,000 185,000
Sanchez Sedan 6 33,000 198,000
Coupe 8 31,000 248,000
Grand Total 55 1,590,000

Previous
Feedback
s and a grand total
als in row 20.
by their
als and unitaprice.
grand total

o the next sheet.

Next
2D constants
2D constants
2D constants let you create multiple row/column combinations
There are three separate data sets in cells D9:G11, D15:G18, and D21:G23. The first two are dynamic arrays, and the last has b
Use2D
a comma (,) to createlet
constants rowyou
separators,
create and amultiple
semi-colon (;)row/column
for column separators.
combinations
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial
Dynamic array > =SEQUENCE(3;4)
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?

Dynamic array > ={1.2.3.4;5.6.7.8;9.10.11.12}


#NAME? #NAME? #NAME? #NAME?
1 2 3 1
5 6 7 8
9 10 11 12

Legacy array > {={1.2.3.4;5.6.7.8;9.10.11.12}}


#NAME? #NAME? #NAME? #NAME?
1 2 3 1
5 6 7 8
9 10 11 12

Previous
Feedback
re dynamic arrays, and the last has been entered as a legacy array formula with Ctrl+Shift+Enter.
nations
e to the next sheet.

.10.11.12}}

Next
Horizontal
Horizontal&&vertical
verticalconstants
constants
There are several ways to create horizontal and vertical constants with arrays
There
There
GOOD isTO are
a range
KNOW of several waysinto
horizontal constant create
cells D10:H12,horizontal and vertical
and a range of vertical constants
constant in cells D16:F20. with arrays
We're using the FORMULATEXT function to display the formulas we used.
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial

Horizontal constant from 1-5


#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
1 2 3 4
1 2 3 4

Vertical constant from 1-5


#NAME? #NAME? #NAME?
#NAME? 1 1
#NAME? 2 2
#NAME? 3 3
#NAME? 4 4
#NAME? 5 5

Formulas (D16:F16) =SEQUENCE(5) ={1;2;3;4;5} {={1;2;3;4;5}}

Previous
Feedback
onstants with arrays
constants
cells D16:F20. with arrays

to the next sheet.

#NAME? Formulas
#NAME? =SEQUENCE(1;5)
1 ={1.2.3.4.5}
1 {={1.2.3.4.5}}

Next
Array constant in a formula
Array constant in a formula
You can use array constants in your formulas, and mix them with ranges, or combine them
There's a header row with January - May in cells D8:H8, then a dynamic array formula in cell D9 that has spilled to H9. The form
UseYou
CTRL+PAGE UP up array
can use to returnconstants
to the previous in
worksheet, CTRL+PAGE DOWN
your formulas, and to advance
mix them to the next
with sheet.
ranges, or co
Give us feedback on this tutorial

#NAME? #NAME? #NAME? #NAME?


#NAME? #NAME? #NAME? #NAME?

Combined range and array constants

Total #NAME? =SOMME(D9:H9*SEQUENCE(1;5))

Total #NAME? =SOMME(D9:H9*{1.2.3.4.5})

Combined array constants

Total #NAME? =SOMME(SEQUENCE(1;5;3;1)*SEQUENCE(1;5))

Total 85 =SOMME({3.4.5.6.7}*{1.2.3.4.5})

Previous
Feedback
ell D9 that has spilled to H9. The formula is: =SEQUENCE(1,5,3,1). There are several other array formula examples in cells E13, E15, E19 and
e to the next
them with sheet.
ranges, or combine them

#NAME?
#NAME?

SEQUENCE(1;5))

{1.2.3.4.5})

NCE(1;5;3;1)*SEQUENCE(1;5))

.7}*{1.2.3.4.5})

Next
xamples in cells E13, E15, E19 and E21.
Array constant in a formula
Array constant in a formula
You can use array constants in your formulas, and mix them with ranges, or combine them
We've gone to Formulas > Name Manager > New Name, and defined Quarter1 as ={"January","February","March"}, and Quart
In cell
You
2GOOD C16 we
can
TO used
KNOWuse =TRANSPOSE(C9:H9)
array constants to create
ina your
vertical formulas,
list of months. and mix them with ranges, or co
Go to Formulas > Defined Names > Name Manager > New to create a named array constant.
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial
=Quarter1 =Quarter2
January February March April May April

{=Quarter1} {=Quarter2}
January February March April May April

=TRANSPOSE(C9:H9)
Month
January
February
March
April
May
April

Previous
Feedback
ary","March"}, and Quarter2 as ={"April","May","June"} respectively. You can then use them as a formula by entering =Quarter1. We've en
ith ranges, or combine them

Next
entering =Quarter1. We've entered them in cells C9 & F9 as dynamic arrays, and C12 & F12 as legacy arrays.
Sample datasets
Sample datasets
Create a quick sample dataset like this with only 2 formulas
In cell B9 we have =TEXT(DATE(YEAR(TODAY()),SEQUENCE(1,12),1),"MMM"), which spills the months from Jan - Dec across to
In cell B10 we have
Create =INT(RANDARRAY(6,12)*1000)
a quick sample dataset tolike create a random
this witharray
onlyof numbers that's 6 rows tall by 12 columns wide
2 formulas
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial

#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?


#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?

* If you don't have Office 365, you can use this formula: =TEXT(DATE(YEAR(TODAY()),{1,2,3,4,5,6,7,8,9,10,11,12},1),"mmm"), entered w

Previous
Feedback
months from Jan - Dec across to M9. The DATE function uses YEAR(TODAY()) as the YEAR argument, then SEQUENCE(1,12), creates an arr
's
las 6 rows tall by 12 columns wide. The numbers will change each time Excel recalculates.
o the next sheet.

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

8,9,10,11,12},1),"mmm"), entered with Ctrl+Shift+Enter.

Next
UENCE(1,12), creates an array from 1 to 12 for the months, then 1 for the DAY argument. The whole thing is wrapped in the TEXT function
wrapped in the TEXT function, which converts the date to MMM text format.
Mathematical operators in a formula
Mathematical operators in a formula
You can use mathematical operators in your formulas > Multiply (*), Divide (/), Add (+), and Subtract (-). We've got multiply &
WeYou
have dynamically
can use created month headersoperators
mathematical in D8:I8, D11:I11,
inD14:I14,
your D17:I17, D20:I20,
formulas >and D23:I23. Beneath
Multiply each of those
(*), Divide (/),
UseSubtract
CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance
(-). We've got multiply & divide examples here. You can try to add & s to the next sheet.
Give us feedback on this tutorial
these examples, or your own.

Multiply #NAME? #NAME? #NAME?


=SEQUENCE(1;6)*2 #NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


={1.2.3.4.5.6}*2 2 4 6

#NAME? #NAME? #NAME?


{={1.2.3.4.5.6}*2} 2 4 6

Divide #NAME? #NAME? #NAME?


=SEQUENCE(1;6)/2 #NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


={1.2.3.4.5.6}/2 0.5 1 1.5

#NAME? #NAME? #NAME?


{={1.2.3.4.5.6}/2} 0.5 1 1.5

Previous
Feedback
, and Subtract (-). We've got multiply & divide examples here. You can try to add & subtract with these examples, or your own.
sI20,
>and D23:I23. Beneath
Multiply each of those,
(*), Divide there are
(/), Add various
(+), and examples of multiplying (*) and dividing (/) array constants. You can try adjusti
ance to the next sheet.
ere. You can try to add & subtract with

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


8 10 2

#NAME? #NAME? #NAME?


8 10 2

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


2 2.5 0.5

#NAME? #NAME? #NAME?


2 2.5 0.5

Next
amples, or your own.
ay constants. You can try adjusting the examples to add (+) and subtract (-) on your own.
Square and square root
Square and square root
You can use the caret (^) sign to calculate squares, and the SQRT function to calculate square roots. Here the arrays generate
WeYou
have dynamically
can use created month headers
the caret (^) signin D8:I8,
to D11:I11, D14:I14,
calculate D17:I17, D20:I20,
squares, andand theD23:I23.
SQRT Beneath each of those
function to c
Useroots.
CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to
Here the arrays generate a sequence from 1 to 6, and return the square advance to the next sheet.
Give us feedback on this tutorial
each.

Square #NAME? #NAME? #NAME?


=SEQUENCE(1;6)^2 #NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


={1.2.3.4.5.6}^2 1 4 9

#NAME? #NAME? #NAME?


{={1.2.3.4.5.6}^2} 1 4 9

Square root #NAME? #NAME? #NAME?


=RACINE(SEQUENCE(1;6)^2) #NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


=RACINE({1.2.3.4.5.6}^2) 1 2 3

#NAME? #NAME? #NAME?


{=RACINE({1.2.3.4.5.6}^2)} 1 2 3

Previous
Feedback
square roots. Here the arrays generate a sequence from 1 to 6, and return the square/square root of each.
I20, and
and the D23:I23.
SQRT Beneath each of those,
function there are various
to calculate examples of squaring, and calculting square roots.
square
ance to the next sheet.
o 6, and return the square/square root of

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


16 25 1

#NAME? #NAME? #NAME?


16 25 1

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


4 5 1

#NAME? #NAME? #NAME?


4 5 1

Next
TRANSPOSE function
TRANSPOSE function
You can use the TRANSPOSE function to flip your data the other way around
We
KEEPhave header rows with dynamically generated months in cells D8:I8, D14:I14, and D20:I20. There are 3 x 6 arrays beneath
IN MIND
Some array
You can constants
use canthegetTRANSPOSE
pretty long. It's better to use SEQUENCE
function to fliptoyour
automatically
data build
thethem for you.
other way around
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial

TRANSPOSE #NAME? #NAME? #NAME?


=TRANSPOSE(SEQUENCE(6;4)) #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


=TRANSPOSE({1.2.3.4;5.6.7.8;9.1 1 5 9
0.11.12;13.14.15.16;17.18.19.20; 2 6 10
21.22.23.24}) 3 7 11
4 8 12

#NAME? #NAME? #NAME?


{=TRANSPOSE({1.2.3.4;5.6.7.8;9. 1 5 9
10.11.12;13.14.15.16;17.18.19.2 2 6 10
0;21.22.23.24})} 3 7 11
4 8 12

Previous
Feedback
D20:I20. There are 3 x 6 arrays beneath them using the TRANSPOSE function to flip the arrays the other way around.
a build
y thethem
otherfor you.
way around
ance to the next sheet.

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


13 17 1
14 18 22
15 19 23
16 20 24

#NAME? #NAME? #NAME?


13 17 1
14 18 22
15 19 23
16 20 24

Next
Reference existing arrays
Reference existing arrays
You can use the spilled range operator (#) to reference a dynamic array. If the array range changes, the spilled range operator
We have dynamically generated header months in cells D8:I8, D13:I13, D18:I18, and D23:I23. Beneath those are 3 x 6 arrays. T
UseYou can use
CTRL+PAGE UP up the spilled
to return range
to the previous operator
worksheet, (#)
CTRL+PAGE DOWNto reference a next
to advance to the dynamic
sheet. array. If t
changes,
Give the
us feedback on thisspilled
tutorial range operator will automatically adjust.

Array #NAME? #NAME? #NAME?


=SEQUENCE(3;6;10;10) #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

Spilled range operator #NAME? #NAME? #NAME?


=D9# #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

Array #NAME? #NAME? #NAME?


={10.20.30.40.50.60;70.80.90.100.11 10 20 30
0.120;130.140.150.160.170.180} 70 80 90
130 140 150

Spilled range operator #NAME? #NAME? #NAME?


=D19# #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

Previous
Feedback
changes, the spilled range operator will automataically adjust.
3. Beneath those are 3 x 6 arrays. The first and third examples use array functions to populate those ranges, while the second and fourth
ce a next
to the dynamic
sheet. array. If the array range
djust.

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

#NAME? #NAME? #NAME?


40 50 10
100 110 120
160 170 180

#NAME? #NAME? #NAME?


#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?

Next
ges, while the second and fourth examples use the spilled range operator (#) to dynamically reference the arrays above them. For exampl
rays above them. For example, =D9# will return the array that's spilled to cells D9:I11.
Count or return characters
Count or return characters
You can use arrays to count how many characters are in text strings, or even find the shortest and longest text strings. As a bo
UseYou
CTRL+PAGE UP up arrays
can use to return totothecount
previoushow
worksheet,
many CTRL+PAGE DOWN to are
characters advance
in totext
the next sheet. or even fi
strings,
Give us feedback on this tutorial
and longest text strings. As a bonus, we used the CONCAT function to convert
into a proper sentence.

Data CONCAT() =CONCAT(C9;" ";C10;" ";C11;" ";C12;" ";C13)


This is a This is a bunch of cells that come together to form a sing
bunch of cells that
come together
to form a
single sentence.

Total characters in a range


66 =SOMME(NBCAR(C9:C13))

Find the longest text string in a range of cells


bunch of cells that =INDEX(C9:C13;EQUIV(MAX(NBCAR(C9:C13));NBCAR(C9:C13);0)

Find the shortest text string in a range of cells


This is a =INDEX(C9:C13;EQUIV(MIN(NBCAR(C9:C13));NBCAR(C9:C13);0)

Average number of characters in each text string


13.2 =MOYENNE(NBCAR(C9:C13))

Previous
Feedback
gest text strings. As a bonus, we used the CONCAT function to convert the text strings into a proper sentence.
rings, or even find the shortest
tion to convert the text strings

" ";C12;" ";C13)


together to form a single sentence.

13));NBCAR(C9:C13);0);1)

3));NBCAR(C9:C13);0);1)

Next
Nth values
Nth values
You can use arrays to return the Nth largest or smallest values from a set with the SMALL & LARGE functions
We have a series of random numbrs in cells B9:B18 populated with =INT(RANDARRAY(10,1)*100). There is a variable value in c
To You
get thecan use arrays
Nth smallest values, weto return
used the Nth largestwhich
=SMALL(B9#,SEQUENCE(D9)), or smallest values
uses the spilled fromtoalook
range operator set with
in the arra
UseLARGE
CTRL+PAGE functions
UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial

Data Value Nth Smallest Nth Largest SUM of Nth Smallest values
#NAME? 3 #NAME? #NAME? #NAME? =SOMME(PETITE.VALEU
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? SUM of Nth largest values
#NAME? #NAME? =SOMME(GRANDE.VALE
#NAME?
#NAME? Average of Nth Smallest values
#NAME? #NAME? =MOYENNE(PETITE.VALE
#NAME?
#NAME? Average of Nth largest values
#NAME? #NAME? =MOYENNE(GRANDE.VA

Previous
Feedback
There is a variable value in cell D9 that you can change to adjust the output of the Nth smallest or largest values in the list. It's currently se
ees fromtoalook
operator set with
in the arraythe SMALL
beginning in cell&
B9, then the sequence function creates an array the same size as the value entered in cell D

=SOMME(PETITE.VALEUR(B9#;SEQUENCE(D9)))

=SOMME(GRANDE.VALEUR(B9#;SEQUENCE(D9)))

allest values
=MOYENNE(PETITE.VALEUR(B9#;SEQUENCE(D9)))

gest values
=MOYENNE(GRANDE.VALEUR(B9#;SEQUENCE(D9)))

Next
ues in the list. It's currently set to 3. The Nth smallest values are listed beginning in cell F9, and the Nth largest values are start in cell H9. T
e as the value entered in cell D9.
st values are start in cell H9. Tehre are additional formulas in cells J9, J12, J15, and J18.
Errors
Errors
You can use arrays to ignore or count errors in your data where normal functions would fail
We have sample data in cells C9:C18, which has been defined as "Data". There is a #VALUE! Error in cell C11, and a #N/A error
EXPERIMENT
CanYou
you find
cantheuse
maximum value to
arrays in the range? or count errors in your data where normal functio
ignore
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial

Data Sum a range that contains error values


40 371 =SOMME(SI(ESTERREUR(Data);"";Data))
38
0 Count the number of errors in a range
76 0 =SOMME(SI(ESTERREUR(Data);1;0))
73
0 Average the values in the range
22 37.10 =MOYENNE(SI(ESTERREUR(Data);"";Data))
37
0 Find the minimum value in the range
85 0 =MIN(SI(ESTERREUR(Data);"";Data))

Previous
Feedback
cell C11, and a #N/A error in cell C14. These error values will prevent most formulas, like SUM or COUNT from functioning properly, and th
e normal functions would fail

Next
m functioning properly, and they will instead return errors of their own. In cell E9 we used =SUM(IF(ISERROR(Data),"",Data)) to sum the dat
Data),"",Data)) to sum the data and ignore the error. In cell E12 we used =SUM(IF(ISERROR(Data),1,0)) to count the number of errors in the
nt the number of errors in the data range. We calculate the average in cell E15, and the minumum value in cell E18. You can try to create
ell E18. You can try to create a few of your own using COUNT or MAX.
Conditions
Conditions
You can use arrays calculate based on certain conditions
We have
HERE'S THEdata
KEYby sales rep and month in cells C9:E24, where column E has been defined as "Sales". There are several example
UseYou
the asterisk
can use(*) forarrays
the AND operator, and the Plus
to calculate (+) sign for
based onthe OR operator.
certain conditions
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial

Sales Rep Month Sales Sum values > 0


Tom January 9,882 67,692 =SOMME(SI(Sales>0;Sa
Fred January 9,418
Amy January 3,355 Sum values > 0 AND < 2500
Sal January 0 2,839 =SOMME((Sales>0)*(Sa
Fritz January 2,304
Sravan January 7,134 Sum values > 0 OR < 2500
Xi January 5,751 61,900 =SOMME(SI((Sales>0)+
Hector January 6,282
Tom February (2,210) Average excluding 0
Fred February 9,207 4,127 =MOYENNE(SI(Sales<>
Amy February 10
Sal February 3,214
Fritz February (3,582)
Sravan February 2,553
Xi February 525
Hector February 8,057

Previous
Feedback
There are several examples of formulas to sum based on different conditions in cells G8, G10, G12, and G14. For example, cell G8 has the f

=SOMME(SI(Sales>0;Sales))

=SOMME((Sales>0)*(Sales<=2500)*(Sales))

=SOMME(SI((Sales>0)+(Sales<2500);Sales))

=MOYENNE(SI(Sales<>0;Sales))

Next
For example, cell G8 has the formula =SUM(IF(Sales>0,Sales)), which sums all cells in the Sales column that are greater than 0.
re greater than 0.
Count the number of differences between two ranges of cells
Count the number of differences between two ranges
You can use arrays to compare data sources for differences
We have
Qtr_1 is atwo tables
named of monthly
range for cells sales
D9:D23in cells B9:D23 and F9:F23 with headers in row 8. Column D, the sales column has been d
Qtr_2 is a named range for cells H9:H23
You can use arrays to compare data sources for differences
Use CTRL+PAGE UP up to return to the previous worksheet, CTRL+PAGE DOWN to advance to the next sheet.
Give us feedback on this tutorial

Sales Rep Month Sales Sales Rep Month Sales Count the number of differences betwe
Tom January 7,825 Tom April 6,707 15 =SOMME(SI(Qtr_1=Qtr_2;0
Fred January 5,433 Fred April 7,557
Amy January 254 Amy April 8,094 Find the row # of the maximum value in
Sal January 4,971 Sal April 4,897 21 =MIN(SI(Qtr_1=MAX(Qtr_1
Fritz January 5,796 Fritz April 6,916
Tom February 4,398 Tom May 1,338 Find the row # of the minimum value in
Fred February 2,870 Fred May 8,043 11 =MAX(SI(Qtr_1=MIN(Qtr_1
Amy February 7,861 Amy May 1,623
Sal February 4,934 Sal May 810 Find the address of the maximum value
Fritz February 8,047 Fritz May 1,066 $D$21 =ADRESSE(MIN(SI(Qtr_1=M
Tom March 1,427 Tom June 9,681
Fred March 7,970 Fred June 9,451 Find the address of the minimum value
Amy March 8,379 Amy June 6,235 $D$11 =ADRESSE(MAX(SI(Qtr_1=M
Sal March 1,938 Sal June 867
Fritz March 956 Fritz June 2,847

Previous
Feedback
en two ranges of cells
D, the sales column has been defined as Qtr_1, while column H has been defined as Qtr_2. There are comparison arrays in cells J9, J11, J1
s
he next sheet.

umber of differences between two ranges


=SOMME(SI(Qtr_1=Qtr_2;0;1))

w # of the maximum value in a range


=MIN(SI(Qtr_1=MAX(Qtr_1);LIGNE(Qtr_1);""))

w # of the minimum value in a range


=MAX(SI(Qtr_1=MIN(Qtr_1);LIGNE(Qtr_1);""))

dress of the maximum value in a range


=ADRESSE(MIN(SI(Qtr_1=MAX(Qtr_1);LIGNE(Qtr_1);""));COLONNE(Qtr_1))

dress of the minimum value in a range


=ADRESSE(MAX(SI(Qtr_1=MIN(Qtr_1);LIGNE(Qtr_1);""));COLONNE(Qtr_1))

Next
arison arrays in cells J9, J11, J13, J15, and J17. For instance, in cell J9 we have =SUM(IF(Qtr_1=Qtr_2,0,1)), which counts the number of diffe
ch counts the number of differences between two ranges. There are descriptions of what each formula does starting in cell L9.
starting in cell L9.
Learn more - Scroll down to cells B11, D11, and F11 for links to other information
Learn more
Use CTRL+PAGE UP to return to the previous worksheet
Give us feedback on this tutorial
Check out these other resources for more information

Related articles Other helpful information


FILTER function Excel functions (by category)
RANDARRAY function Excel functions (alphabetical)
SEQUENCE function Overview of formulas in Excel
SINGLE function How to avoid a broken formula
SORT function
SORTBY function
UNIQUE function
Spilled array behavior
Dynamic array formulas vs. legacy CSE array formulas

Previous
Feedback
More resources
Training courses
Tech community
Excel blog
Make a suggestion at Excel User Voice

You might also like