You are on page 1of 7

IDM 1020

Exercise 2 – IFs

Winter 2024

This document is based on work by Fang Chen (Fang.Chen@umanitoba.ca).


Do not reuse without permission.
Exercise Outline
This exercise is designed to be done during class time and used for practice outside of class time. It
contains the following sections:

• Section 1 – References. This section contains links to documentation that describes how Excel
functions relevant to this exercise. Ideally, you should review this content before class.
However, it can also be used as a reference after class.
• Section 2 – Follow along with videos. This section contains links to videos that you can follow
along with to practice using Excel functions. The data file for the exercise contains worksheets
with data that matches the videos.
• Section 3 – Homework. This section contains additional tasks that you might not have time to
complete during class time. These tasks have less structure, and you need to figure out how to
complete the required steps. An answer is provided so that you can determine whether you
completed the tasks correctly.

Topics Details
Formatting • Working with multiple worksheets

Functions • IF()
• COUNT(), COUNTIF(), COUNTIFS(),
COUNTBLANK(), COUNTA()
• SUMIF(), SUMIFS()
• AVERAGEIF(), AVERAGEIFS()

Charts • Pie chart


• Tree map chart
• Donut chart

File required for sections 2 and 3:

• IDM1020-Ex2-data.xlsx

1
Section 1 – References
This section contains links that describe how the functions in this exercise are used. You should review
this documentation before class to aid your understanding.

Excel Function Links


Worksheets Insert or delete a worksheet
https://support.microsoft.com/en-us/office/insert-or-delete-a-
worksheet-19d3d21e-a3b3-4e13-a422-d1f43f1faaf2

Move or copy worksheets or worksheet data


https://support.microsoft.com/en-us/office/move-or-copy-worksheets-
or-worksheet-data-47207967-bbb2-4e95-9b5c-3c174aa69328

IF() IF function
https://support.microsoft.com/en-us/office/if-function-69aed7c9-4e8a-
4755-a9bc-aa8bbff73be2

COUNT() COUNT function


https://support.microsoft.com/en-us/office/count-function-a59cd7fc-
b623-4d93-87a4-d23bf411294c

COUNTIF() COUNTIF function


https://support.microsoft.com/en-au/office/countif-function-
e0de10c6-f885-4e71-abb4-1f464816df34

COUNTIFS() COUNTIFS function


https://support.microsoft.com/en-us/office/countifs-function-
dda3dc6e-f74e-4aee-88bc-aa8c2a866842

COUNTBLANK() COUNTBLANK function


https://support.microsoft.com/en-us/office/countblank-function-
6a92d772-675c-4bee-b346-24af6bd3ac22

COUNTA() COUNTA function


https://support.microsoft.com/en-us/office/counta-function-7dc98875-
d5c1-46f1-9a82-53f3219e2509

Use COUNTA to count cells that aren't blank


https://support.microsoft.com/en-us/office/use-counta-to-count-cells-
that-aren-t-blank-a4fd3d22-4a47-4c3e-b2aa-40e6394315c7

SUMIF() SUMIF function


https://support.microsoft.com/en-us/office/sumif-function-169b8c99-
c05c-4483-a712-1697a653039b

SUMIFS() SUMIFS function


https://support.microsoft.com/en-us/office/sumifs-function-c9e748f5-
7ea7-455d-9406-611cebce642b

2
Excel Function Links
AVERAGEIF() AVERAGEIF function
https://support.microsoft.com/en-au/office/averageif-function-
faec8e2e-0dec-4308-af69-f5576d8ac642

AVERAGEIFS() AVERAGEIFS function


https://support.microsoft.com/en-au/office/averageifs-function-
48910c45-1fc0-4389-a028-f7c5c3001690

Table 1 - References

3
Section 2 – Follow along with videos
This section lists videos and a corresponding worksheet that you can use to follow along with the video.
Avoid the temptation to follow along with the video and only complete the steps. Your goal in this
section is not simply to complete the videos. Your goal is to understand the functionality being
demonstrated in the videos.

As you go through each video purposefully think about the task that is being performed. You are
encouraged to pause the videos and experiment within Excel to learn more about the functions being
demonstrated.

Topics Worksheet Video and instructions


Interface & *Create Working with multiple worksheets (about 4 minutes)
Format new* https://www.youtube.com/watch?v=qRShQc-v3LI

After you watch the YouTube video, complete the following tasks:
• Insert a new worksheet into the workbook.
• Change the name of the worksheet to: My-Worksheet
• Color the worksheet tab blue. (like the Expenses Summary
worksheet at 2:08)
• In cell A1, type your full name, set the font as Arial size 14.
• Move this worksheet to be the first worksheet in this
workbook.

IF() IF-1 5-Minute Excel Lesson 17 (IF) (about 5 minutes)


IF-2 https://www.youtube.com/watch?v=-MkissA-_ag

COUNTBLANK() Count 5-Minute Excel Lesson 18 (Count) (about 4 minutes)


COUNTA() https://youtu.be/Ha5JzWrFamE
COUNT()
COUNTIF()
COUNTIFS()

SUMIF() SumIFs 5-Minute Excel Lesson 20 (SumIF & SumIFs)


SUMIFS() (about 4 minutes)
https://youtu.be/9hHjLMP5QPA

AVERAGEIF() AverageIFs 5-Minute Excel Lesson 21 (AverageIF & AverageIFs) (about 4


AVERAGEIFS() minutes)
https://youtu.be/3t8ilTZ3AFs

Visualization 2D-Pie 5-Minute Excel Lesson 2 (2D Pie Charts)


(about 6 minutes)
https://youtu.be/oVbNnJAnFPQ

Visualization 3D-Pie 5-Minute Excel Lesson 3 (3D Pie Charts & Donut Charts)
Treemap (about 8 minutes)
Donut https://youtu.be/O62umV2snFY

Table 2 - YouTube videos

4
Section 2 – Homework
This section contains instructions for additional tasks to complete as practice. You might or might not
have time to complete these during class. It’s recommended that you complete these tasks outside of
class time if necessary. Each task provides some information that you can use to determine whether you
performed the tasks successfully.

Worksheet Instructions
HW1 This fish dataset consists of 148 records for several species of fish. Please see the
Appendix for the image for each species if you are curious.

Species - fish species name


Weight- fish weight in grams
Length – length in cm
Height – height in cm
Width – width in cm

From this data set, you need to answer the following questions:
• How many of each species were caught?
• What was the total weight caught for each species?
• What was the average weight of each species caught?
• How many of each species were under 30cm?
• The average weight of each species caught that were 30cm or larger?
• How many of each species were 1000 grams or larger?

Use the functions you learned in Section 1.

Answer check:

Why is there a DIV/0 error?

HW2-Donut A donut chart is great to illustrate the progress of something, assuming the target
is 100%. Completion of a project is considered 100%, so you can use the donut
chart to show its progress.

Please make up some data and make a donut chart out of that data. For example,
the sales progress for the Christmas season, progress of a fundraising event, or the
consumption of something like gas (Assuming full tank is 100%, you can use a
donut chart to show how much is left).

Answer check:
• Nothing to verify.

Table 3 - Homework list

5
Appendix: Fish Species
Learn your fish.

Fish Species Image


Bream

Roach

Whitefish

Perch

Pike

Smelt

Table 4 - Fish species *Not to scale

You might also like