Professional Documents
Culture Documents
I.T in Engineering: Abdullahi - Sada@bazeuniversity - Edu.ng
I.T in Engineering: Abdullahi - Sada@bazeuniversity - Edu.ng
I.T in Engineering: Abdullahi - Sada@bazeuniversity - Edu.ng
I.T in
engineering
EEE308
GEC214 - Lecture 2 1
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
Microsoft excel
GEC214 - Lecture 2 2
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
Basic math
• Microsoft excel uses BODMAS when solving an equation.
𝑏+ 𝑏 2 −4𝑎𝑐
• This equation can be represented on excel as
2𝑎
GEC214 - Lecture 2 3
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
Logical Functions
• Microsoft Excel provides 4 logical functions to work with the logical
values. The functions are IF, AND, OR and NOT.
• You use these functions when you want to carry out more than one
comparison in your formula or test multiple conditions instead of just
one.
• As well as logical operators, Excel logical functions return either TRUE
or FALSE when their arguments are evaluated.
GEC214 - Lecture 2 4
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
GEC214 - Lecture 2 5
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
GEC214 - Lecture 2 6
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
IF
• The IF function checks whether a condition is met, and returns one
value if true and another value if false.
• Example:
AND
• The AND Function returns TRUE if all conditions are true and returns
FALSE if any of the conditions are false.
• Example:
• Explanation: the AND function returns TRUE if the first score is greater
than or equal to 60 and the second score is greater than or equal to 90,
else it returns FALSE.
GEC214 - Lecture 2 8
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
OR
• The OR function returns TRUE if any of the conditions are TRUE and
returns FALSE if all conditions are false.
• Example:
Not
• The NOT function changes TRUE to FALSE, and FALSE to TRUE.
• Example:
GEC214 - Lecture 2 10
By Abdullahi Yusuf Sada
Faculty of Engineering Electrical Engineering Department Baze University Abuja
Nested if
• The IF function in Excel can be nested, when you have multiple conditions to
meet. The FALSE value is being replaced by another IF function to make a
further test.
• Example:
• Explanation: if the score equals 1, the nested IF formula returns V.Bad, if the
score equals 2, the nested IF formula returns Bad, if the score equals 3, the
nested IF formula returns Good, if the score equals 4, the nested IF formula
returns V.Good, if the score equals 5, the nested IF formula returns Excellent,
else it returns Not Valid.
GEC214 - Lecture 2 11
By Abdullahi Yusuf Sada