Download presentation
Presentation is loading. Please wait.
Published byAshlyn Cocklin Modified over 9 years ago
1
Computer Science & Engineering 2111 CONDITIONAL STATISTICAL FUNCTIONS 1 CSE 2111 Lecture Conditional Statistical Functions
2
COUNTIF FUNCTION Counts the number of items in a range that meet a specific criteria =COUNTIF(range, criteria) Range: A continuous range Criteria: Determines what cells to count 2 CSE 2111 Lecture Conditional Statistical Functions CriteriaCriteria SyntaxExample NumberType in number=COUNTIF(C1:C10,5) TextSurround text in quotes=COUNTIF(E1:E10,”USA”) Cell ReferenceType in cell reference=COUNTIF(G1:G10,A2) “Hard Coded” Boolean Expression Surround Boolean expression in quotes=COUNTIF( I1:I10,”>=5”) Cell Reference Boolean Expression Surround Boolean expression in quotes and type & before the cell reference =COUNTIF(K1:K10, “>=” &A5) Wild CardUse Asterisk=COUNTIF(M1:M10,”USA*”)
3
CSE 2111 Lecture Countif Examples3
4
4
5
5
6
SUMIF FUNCTION Sums the number of items in a range that meet a specific criteria =SUMIF(criteria_range, criteria,[sum_range]) Criteria_Range: A continuous range Criteria: Determines what cells to sum Sum_Range: If criteria is met, the computer will sum the corresponding entry in this range Same criteria syntax as COUNTIF If a sum_range argument is not used, the sum_range will be the same as the criteria_range 6CSE 2111 Sumif Averageif
7
7
8
8
9
COUNTIFS FUNCTION Counts the number of items in a range (using multiple criteria and multiple ranges) that meet a specific criteria All criterion must be true in order for the cell to be counted =COUNTIFS(criteria_range1, criteria1,[criteria_range2,criteria2], …) Criteria_range1: A continuous range Criteria1: Determines what cells to count Syntax rules the same as COUNTIF 9 CSE 2111 Lecture Countifs Syntax and Examples
10
10
11
SUMIFS FUNCTION Sums a range (using multiple criteria and multiple ranges) that meet a specific criteria All criterion must be true in order for the cell to be summed =SUMIFS(sum_range, criteria_range1,criteria1,[criteria_range2,criteria2], …) Sum_Range: Range to sum if criterion are met Criteria_Range1: Range of first criteria Criteria1: Criteria for range1 Criteria syntax rules the same as COUNTIF 11CSE 2111 Lecture Sumif(s)/Averageif(s)
12
12
13
AVERAGEIF and AVERAGEIFS FUNCTION =AVERAGEIF(criteria_range, criteria,[average_range]) Averages the number of items in a range that meet a specific criteria =AVERAGEIFS(average_range, criteria_range1,criteria1[criteria_range2,criteria2], …) Averages a range (using multiple criteria and multiple ranges) that meet a specific criteria All criterion must be true in order for the cell to be averaged. 13CSE 2111 Lecture Sumif(s)/Averageif(s)
14
LARGE and SMALL FUNCTION =LARGE(array, k) Returns the largest value in a range, based on the “k” argument Array: A continuous range k: The position (from the largest) in the array (range) =SMALL(array, k) Returns the smallest value in a range, based on the “k” argument Array: A continuous range k: The position (from the smallest) in the array (range) 14CSE 2111 Lecture Large & Small
15
15
16
RANK.EQ FUNCTION Returns the rank of a number in a list of numbers =RANK.EQ(number, ref, [order]) Number: The number whose rank you want to find Ref: The Array or range of values to rank Order: A number specifying how to rank the numbers – 0 or omitted: Ranks in descending order – 1: Ranks in ascending order 16CSE 2111 Lecture-Rank
17
17
18
SUMPRODUCT FUNCTION Multiplies corresponding components in the given arrays, and returns the sum of those products. =SUMPRODUCT(array1, [array2], [array3], …) array1: The first array argument whose components you want to multiply and then add The array arguments must be the same dimension Treats non-numeric cells as 0 18CSE 2111 Lecture SumProduct
19
19
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.