Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Statistical Functions-Lesson 03

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

Statistical Functions-Lesson 03

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

CIT221- Advanced Data Analysis

R.M.N.B.Rathnayake
Senior Lecturer in Computer Science

71 993 6 541
Statistical functions (83)

1
Statistical functions (83)

AVERAGE - Returns the average of its


arguments
• Syntax
• AVERAGE(number1, [number2],...)
• Eg =average(2,3,4,5,6,7,8) answer is 5
• Eg =average(2,3,4,5,6,7,8,9) answer is 5.5
MAX -Returns the maximum value in a
list of arguments
• Syntax: MAX(number1,number2,...)
• Eg =Max(2,3,4,5,9,21) answer is 21
MIN -Returns the minimum value in a
list of arguments
• Syntax: MIN(number1,number2,...)
• Eg =Min(2,3,4,5,9,21) answer is 2
COUNT- Counts how many numbers
are in the list of arguments
• Syntax: COUNT(value1, [value2],...)
• Eg =Count(2,3,a,b,4,5,9,21) answer is 6
COUNTIF -Counts the number of cells
within a range that meet the given
criteria
• Syntax: COUNTIF(range, criteria)
• Eg =countif(A1:A9,”a”) answer is 3
• Eg =COUNTIF(A1:A9,“4“) answer is 2
Eg.
Number Patten Number Patten
APP-0234-R APP-0334-R
APP-0235-G APP-0335-G
APP-0236-S APP-0336-S
AXX-0239-R AXX-0339-R
AXX-0240-S AXX-0340-S
BAP-0241-S BAP-0341-S
BAP-0242-G BAP-0342-G

Not contain Letter A =COUNTIF(A2:B16,"<>*A*")


First Letter Must be letter A =COUNTIF(A2:B16,"A*")

Third Position must have letter P =COUNTIF(A2:B16,"??P*")


Syntax
COUNTBLANK(range)
Range is the range from which you
want to count the blank cells.
Remark
Cells with formulas that return ""
(empty text) are also counted. Cells
with zero values are not counted.
SMALL -Returns the k-th smallest value
in a data set
• Syntax: SMALL(array,k)
• Array range of numerical.
• K is the position (from the smallest) in
the array or range of data to return.
• Eg . =SMALL(A1:A9,1) Answer is 2
• Eg . =SMALL(A1:A9,2) Answer is 3
• Eg . =SMALL(A1:A9,5) Answer is 5
Syntax
LARGE(array,k)
Array is the array or range of data for
which you want to determine the k-th
largest value.
K is the position (from the largest) in
the array or cell range of data to
return.
=LARGE(A2:B6,3) 3rd largest number in the
number list
=LARGE(A2:B6,7) 7th largest number in the
number list
MODE- Returns the most common
value in a data set
• Syntax: MODE(number1,number2,...)
• Eg =Mode(A1:A9) answer is 4
RANK- Returns the rank of a number in
a list of numbers
• Syntax: RANK(number,ref,order)

• If order is 0 (zero) or omitted - list sorted in


descending order.
• If order is any nonzero value -list sorted in
ascending order.
=RANK(C2,C$2:C$6,0)
Averageif
• The Excel AVERAGEIF function calculates the average of
numbers in a range that meet supplied criteria. AVERAGEIF
criteria can include logical operators (>,<,<>,=) and wildcards
(*,?) for partial matching.
Syntax
• =AVERAGEIF (range, criteria, [average_range])
Arguments
• range - One or more cells, including numbers or names, arrays,
or references.
• criteria - A number, expression, cell reference, or text.
• average_range - [optional] The cells to average. When omitted,
range is used.
• Write the averageif function to find the price average
– Price >200
– Bed room >2
– Bath room >1
• Write the averageif function to find the Bed room average
– Price >200
– Bed room >2
– Bath room >1
Averageifs
• The Excel AVERAGEIF function calculates the average of numbers in
a range that meet supplied criteria. AVERAGEIF criteria can include
logical operators (>,<,<>,=) and wildcards (*,?) for partial matching.
Syntax
=AVERAGEIFS (avg_rng, range1, criteria1, [range2], [criteria2], ...)
Arguments
• avg_rng - The range to average.
• range1 - The first range to evaulate.
• criteria1 - The criteria to use on range1.
• range2 - [optional] The second range to evaluate.
• criteria2 - [optional] The criteria to use on range2.
• Write the averageifs function to find the price average
– Price >200
– Bed room >2
– Bath room >1
• Write the averageifs function to find the Bed room average
– Price >200
– Bed room >2
– Bath room >1
Write the averageifs function to find the price
average of the followings
• Price>200
• 2 bed room
• 2 bed +avalable
• 2 bed +2 Bath
• 3 bed +2 Bath+Avalable
• K*+Bed>2+2 bath+Avalable
• Bed >=2+Bath=2+avalable
Thanks

You might also like