Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Excel Solutions 2016.doc
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
813.06 Кб
Скачать

Similar tasks

Task 1.

Display 0.1 as 0.100

Solution

0.000

Task 2.

Display 0.1 as .1

Solution

To suppress insignificant zeroes, use hash (#) instead of zero.

#.#

Sum or count only certain values in a range

Tools: functions SUMIF, COUNTIF

Level: intermediate

Problem

You have a sequential list of grades for every student in your class. You need to compute average grades for every student that will be their final grades.

A

B

1

Student

Grade

2

Alisha

3

3

Becky

4

4

Cathleen

3

5

Becky

3

6

Alisha

2

7

Becky

3

8

Cathleen

4

9

Alisha

4

10

Cathleen

4

11

Alisha

3

Solution

A student's average grade is sum of her grades divided by number of her grades. We will use two conditional lookup functions SUMIF and COUNTIF in a single formula.

  1. (OPTIONAL) Select range A2:A11 and name it "students".

  2. (OPTIONAL) Select range B2:B11 and name it "grades".

  3. Active cell C1. Type "Alisha"

  4. Active cell C2. Enter function =SUMIF(students,C1,grades).

  5. Active cell C3. Enter function =COUNIF(students,C1).

  6. Active cell C4. Enter =C2/C3.

  7. Type in cells D1 "Becky" and E1 "Cathleen".

  8. Copy range C2:C4 to D2:E4.

A

B

C

D

E

1

Student

Grade

Alisha

Becky

Cathleen

2

Alisha

3

12

10

11

3

Becky

4

4

3

3

4

Cathleen

3

3.00

3.33

3.67

5

Becky

3

6

Alisha

2

7

Becky

3

8

Cathleen

4

9

Alisha

4

10

Cathleen

4

11

Alisha

3

You should get as a result the following table.

In practice, we could have just as well combined formulas in rows 2-4 in a single formula =SUMIF(students,C1,grades)/COUNTIF(students,C1).

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]