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

Lesson 13 Stat Formulas

The document provides examples of formulas used to analyze and summarize data sets including AVERAGE, AVERAGEIF, COUNTIF, LARGE, SMALL, and RANK.FORMULA functions. It includes the formulas, test data sets, results, and commentary explaining what each formula is calculating. Key points covered include how the formulas handle errors, blanks, and ties in rankings.

Uploaded by

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

Lesson 13 Stat Formulas

The document provides examples of formulas used to analyze and summarize data sets including AVERAGE, AVERAGEIF, COUNTIF, LARGE, SMALL, and RANK.FORMULA functions. It includes the formulas, test data sets, results, and commentary explaining what each formula is calculating. Key points covered include how the formulas handle errors, blanks, and ties in rankings.

Uploaded by

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

Data Used in Formula

10 37
12 20
15 57
14.25
0
Testing
Formula Commentary
=AVERAGE(A2:A4) Returns average of A2:A4
=AVERAGE(A2:A4,20) Returns average of A2:A4 and 20

Returns average of A2:A5. Since A5 is blank,


=AVERAGE(A2:A5)
it is ignored (blanks and text are ignored)

Returns average of A2:A6. Since A5 is blank,


=AVERAGE(A2:A6) it is ignored. Since A6 has 0, it is taken into
calculation
Result Result
12.3333333333333 12.333333333
14.25 14.25

#NAME? 12.333333333

9.25 9.25
Data Used in Formula
Tom 10
Jane 12
Arjun 15
Tom 12
Tom 0

Formula Commentary Result


=AVERAGEIF(A2:A6,"To
Averages all the values for Tom 7.33333333333333
m",B2:B6)
=AVERAGEIF(A2:A6,"*a* Averages all the values for names that have
13.5
",B2:B6) alphabet "a" in it
=AVERAGEIF(B2:B6,">10
Average values that are greater than 10 13
")
Result

7.3333333333

13.5

13
Data Used in Formula
Fruit Quantity
A*pple 10
Banana* 21
Orange* 12
*Papaya 4
Fruit 5
Formula Commentary
=AVERAGEIFS(C3:C6,B3:B6,">1 Averages when the quantity is greater than
0",A3:A6,"<>Papaya") 10 and the fruit is not Papaya

=AVERAGEIFS(C3:C6,C3:C6,">1 Averages price when price is greater than


5",A3:A6,"*p*") $15 and fruit name has "p" alphabet in it
mula
Price
$20
$7
$12
$32
$16
Result Result

9.5 9.5

26 26
Data Used in Formula
1
2

hello
#DIV/0!
3/3/2014

Formula Commentary
=COUNT(A2:A6) Counts the cells that has number in it
=COUNTA(A2:A6) Counts the cells that are not empty
=COUNTBLANK(A2:A6) Count the cells that are blank
Result Result
3 3
5 5
1 1
Data Used in Formula
Fruit Quantity
Apple 10
Banana 21
Orange 12
Apple 4

Formula Commentary
Counts all the cells that have value greater
=COUNTIF(B3:B6,">10")
than 10

=COUNTIF(A3:A6,"*a*") Counts all cells that have text with "a" in it

Counts all cells that have the text "Apple" in


=COUNTIF(A3:A6,"Apple")
it
=COUNTIF(A3:A6,"?*") Count all the cells that have text in it
Result Result

3 2

1 4

2 2

4 4
Data Used in Formula
Fruit Quantity
Apple 21
Banana 21
Orange 12
Apple 4

Formula Commentary
Counts all the cells in B3:B6 that have value
=COUNTIFS(B3:B6,">10" greater than 10 and at the same time, cells
,A3:A6,"*a*") A3:A6 which have text that contains alphabet
"a"

=COUNTIFS(A3:A6,"*a*") Counts all cells that have text with "a" in it

Counts all cells A3:A6 that have the text


=COUNTIFS(A3:A6,"App
"Apple" in it and at the same time cell B3:B6
le",B3:B6,">20")
that have value greater than 20
Result Result

3 3

4 4

1 1
Data Used in Formula
1
5
7

#DIV/0!
9

Formula Result Commentary

=LARGE(A2:A4,1) 7 Returns the first largest number from the list (A2:A4)

Returns the second largest number from the list


=LARGE(A2:A4,2) 5
(A2:A4)
=LARGE(A2:A5,1) 7 LARGE function ignores blanks (or text)

=LARGE(A2:A7,1) #DIV/0! If there is an error in the list, LARGE returns an error

Student Score Top 3 scores


Alexander 247 N
Brian 210 1
Christian 270 2
Laura 230 3
Melissa 237
Neal 287
Peter 240
Rachael 280
Susan 252
Top 3 scores
Score 1 287
287 2 280
280 3 270
270 4 252
5 247
Data Used in Formula
1
1
7

#DIV/0!
9

Formula Result Commentary


Returns the first Smallest number from the list
=SMALL(A2:A4,1) 1
(A2:A4)
Returns the second Smallest number from the list
=SMALL(A2:A4,2) 1
(A2:A4)
=SMALL(A2:A5,1) 1 SMALL function ignores blanks (or text)

=SMALL(A2:A7,1) #DIV/0! If there is an error in the list, SMALL returns an error

Project Cost Lowest 3


Dart-Row $29,240 N
Fidget-Zen $29,240 1
Gain-Berry $43,610 2
Peak-Voice $58,860 3
Refresh-Energy $67,790 4
Scarce-Hog $70,890 5
Snow-Blast $77,040 6
Tip-Meet $93,590 7
Utmost-Fibble $98,190 8
Lowest 3
Cost
$29,240
$29,240
$43,610
$58,860
$67,790
$70,890
$77,040
$93,590
Data Used in Formula
1
3
3
6
3
Formula Result Commentary
Returns the rank of 1 from the list. Note that excel by
default takes ascending order rank. Also note than
=RANK.EQ(A2,A2:A5) 5
since there is tie, both the 3's get second rank, and 1
gets fourth rank

Unique
Name Sales Rank Rank
James Smith 9,000 4 4
John Johnson 6,750 7 7
Robet Williams 6,300 8 8
Michael Brown 9,000 4 5
William Jones 9,750 2 2
David Miller 9,750 2 3
Richard Davis 9,800 1 1
Charles Garcia 5,850 11 11
Joseph Rodriguez 5,550 13 13
Thomas Wilson 5,100 16 16
Mary Martinez 3,000 20 20
Patricia Anderson 6,000 10 10
Linda Taylor 6,300 8 9
Barbara Thomas 5,700 12 12
Elizabeth Hernandez 5,400 14 14
Jennifer Moore 3,750 19 19
Maria Martin 9,000 4 6
Susan Jackson 5,250 15 15
Lisa Thompson 4,800 17 17
Thompson Bill 4,000 18 18
1 4
1 7
1 8
2 5
1 2
2 3
1 1
1 11
1 13
1 16
1 20
1 10
2 9
1 12
1 14
1 19
3 6
1 15
1 17
1 18
Data Used in Formula
1
5
7

#DIV/0!
9

Formula Result Commentary

=MAX(A2:A4) 7 Returns the maximum value from the list (A2:A4)

=MAX(A2:A5) 7 MAX function ignores blanks (or text)

=MAX(A2:A7) #DIV/0! If there is an error in the list, MAX returns an error


Data Used in Formula
1
5
7

#DIV/0!
9

Formula Result Commentary

=MIN(A2:A4) 1 Returns the minimum value from the list (A2:A4)

=MIN(A2:A5) 1 MIN function ignores blanks (or text)

=MIN(A2:A7) #DIV/0! If there is an error in the list, MIN returns an error

You might also like