7
Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel: “=COUNTIF(range, criteria)” - adds one to a running count every time the criteria matches the value in the range output data worksheet Range of cells you want to evaluate criteria COUNTIF EECS 1520 -- Computer Use: Fundamentals

Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Embed Size (px)

Citation preview

Page 1: Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Glade Manual – Chapter 6

1

• “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition

- In Excel: “=COUNTIF(range, criteria)”

- adds one to a running count every time the criteria matches the value in the range

output data worksheet

Range of cells you want to evaluate

criteria COUNTIF

EECS 1520 -- Computer Use: Fundamentals

Page 2: Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Glade Manual – Chapter 6

2

• Recall: “LOOKUP” function:

- In Excel: “=LOOKUP(lookup_value, lookup_vector, result_vector)”- There are 3 items need to be referred to.

Original data Result

Lookup table worksheet

Length of lookup_vector = length of result_vector

output data worksheet

EECS 1520 -- Computer Use: Fundamentals

Page 3: Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Glade Manual – Chapter 6

3

• “SUMIF” function:

- “SUMIF” function returns the SUM of a number of cells if the criteria is met

- In Excel: “=SUMIF(range, criteria, sum_range)” - criteria is often text

output data worksheet

Range of cells you want to evaluate

Actual cells to sum

EECS 1520 -- Computer Use: Fundamentals

Page 4: Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Glade Manual – Chapter 6

4

• “MATCH” function: - An array is a row or column of numbers- “MATCH” function returns the position of an item in an array that matches a specified value

- In Excel: “=MATCH(lookup_value, lookup_vector, match_type)” - match_type = 0 for exact match

output data worksheet

EECS 1520 -- Computer Use: Fundamentals

Page 5: Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Glade Manual – Chapter 6

5

• “MATCH” function:

- Example:If the range C5:C10 contains the values: 5,8,9,10,12

Then the formula: MATCH (10,C5:C10,0) = 4

Because 10 is the fourth element in the array starting from the left

EECS 1520 -- Computer Use: Fundamentals

Page 6: Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Glade Manual – Chapter 6

6

• “VLOOKUP” function:

- “V” stands for vertical- “VLOOKUP” function returns a value in the same row from a column you specify

- In Excel: “=VLOOKUP(lookup_value, table_array, col_index_num)”

- col_index_num is the column number in table_array. It can be computed, using MATCH for example, and selects column that acts as the equivalent of the result_vector in LOOKUP

output data worksheet

EECS 1520 -- Computer Use: Fundamentals

Page 7: Glade Manual – Chapter 6 1 “COUNTIF” function: - “COUNTIF” function counts the number of cells within a range that meet the given condition - In Excel:

Glade Manual – Chapter 6

7

• “INDEX” function:

- returns the value in a specified cell within an array

- In Excel: “=INDEX(array, row_num, column_num)”

-array is a range of cells or an array constant-row_num an integer that selects the row in array-column_num an integer that selects the column in array

1

2

3

4

5

row_num

1 2 3 4 5column_num

6

EECS 1520 -- Computer Use: Fundamentals