0% found this document useful (0 votes)
4 views3 pages

The If Function Stud Notes

The document outlines the 'If function' used for logical testing in spreadsheets, detailing its syntax and components. It specifies that the function requires eleven components in a specific order and explains the use of comparison operators. Additionally, it provides guidelines for writing 'If functions' and includes an example for calculating entry fees based on gender.

Uploaded by

0.0rushelle0.0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

The If Function Stud Notes

The document outlines the 'If function' used for logical testing in spreadsheets, detailing its syntax and components. It specifies that the function requires eleven components in a specific order and explains the use of comparison operators. Additionally, it provides guidelines for writing 'If functions' and includes an example for calculating entry fees based on gender.

Uploaded by

0.0rushelle0.0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

The If Function

Objectives

• State the syntax of the “if” function.

• Name the eleven components of the “if function” in correct order. •

Determine when if functions are used.

• Use if functions to insert labels and values, as well as perform calculations.

If Function Class Notes

The “If function” is used when you need to perform a logical test on the
contents of a cell or group of cells to determine a result. The result produced is
based on a condition. If the condition is true, then the first value is produced, if
the condition is false, then the second value is produced. The following
comparison operators are used in the If function:
Operator Meaning
> Greater than
= Equal to
>= Greater than or equal
to
< Less than
<= Less than or equal to
<> Not equal to

Comparison operators are used to check the content stored in a cell against an
expected value. For example, to find out if a student is under 16 years old, we
would use the < operator.

The “If function” uses the following syntax:

1. Single Condition

= IF (Condition, value_if_true, value_if_false)

• IF – is the name of the function

• Condition – is the logical test and is any value or expression that can
evaluate to TRUE or FALSE. Conditions or values which are text should be
put in double quotation marks e.g. “Male”
• Value_if_true – is the value that is returned if the logical_test is TRUE. •
Value_if_false – is the value that is returned if the logical_test is FALSE
Components of If Function

Each if function MUST consist of all (11) eleven components in the order
given below:
1. =
2. If
3. Open bracket – (
4. Cell address to be tested
5. Comparison operators (e.g. >, <, =, <>, >=, <=) Condition (4 – 6) 6.
Value to be tested
7. Comma - ,
8. Value if condition is true
9. Comma - ,
10.Value if condition is false
11.Closed bracket - )

Things to note when writing If Functions

• The main parts of the if function must be separated by a comma. • Text

must be enclosed in quotation marks, example – “Resident” • Special


characters such as comma, dollar sign, and percentage symbol
must not be included when entering values in the if function. • The if
function must ALWAYS have a value_if_true and a value_if_false.
Where a value_if_false is not given, use a space for text and a zero for
numbers.

Example: Given the spreadsheet below and told that, boys pay $50 while girls
pay $75, write the function to insert the entry fee for the first student:
A B C

1 Name Gender Entry Fee

2 Daveta Female

3 Ryan Male

4 Alicia Female
5 Nigel Male

Answer

You might also like