Introducing Spreadsheets-Boolean
Introducing Spreadsheets-Boolean
With: Mr Mike
https://www.techiemike.com
Functions IF and COUNTIF
Date: 30 October 2023
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.
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.
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
You need to create a MS Excel spreadsheet, before you do any work save the file
to your documents folder.
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.
https://www.techiemike.com