Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Computing

With: Mr Mike

https://www.techiemike.com
Functions IF and COUNTIF
Date: 30 October 2023

LO: Understand how to use different functions in a spreadsheet.

Success criteria: Students can use IF and COUNTIF functions in a spreadsheet.

https://www.techiemike.com
The IF Function
The IF function is like asking a question, it is used to make choices.

IF ( Question, Do this if True, Do this if False ). There are three elements that
need to be included inside the brakets and they are separated by commas.

https://www.techiemike.com
The Three Elements
1. A question: this is a logical test or logical expression to which the answer can
be either True or False.

2. What is to happen or be displayed if the outcome of the logical test, or


‘condition', Is True.

3. What is to happen or be displayed if the outcome of the logical test, or


'condition', is False.

https://www.techiemike.com
The logical test
The logical test in an if function uses Boolean operators:

https://www.techiemike.com
Example
Here is an example of an IF function that tells you If a student has passed or
failed a test with a pass mark of 60.

https://www.techiemike.com
The COUNT IF function

The COUNT IF function counts the number of cells in a selected range that meet
a specific criterion.

It has the following structure:

The range selects the cells to be checked and the criterion is the condition that
determines which cells will be counted.

https://www.techiemike.com
Example
Here is an example of a COUNT IF function that counts how many students got a
B-:

https://www.techiemike.com
Activity Test Marks

Go to todays class, open the Test Marks document.

You need to create a MS Excel spreadsheet, before you do any work save the file
to your documents folder.

Use the correct formulae to carry out the calculations

Follow the instructions in the document.

https://www.techiemike.com
Pop Quiz
1. What is the structure for the IF function?
»
2. What is the structure for the COUNTIF function?
»
3. What is a Range?
» B2:D4
4. How do you write an absolute cell reference?
» $D$5

https://www.techiemike.com
Thank you.

In our next session, we will look at the COUNT and


COUNTA functions

https://www.techiemike.com

You might also like