You are on page 1of 21

FUNCTIONS IN EXCEL

Arguments and Formula

• By: MA. ELLEN L. ESTRELLADO


IF STATEMENT: LOGICAL STATEMENT
•  IF statement is defined as a function which
“checks whether a condition is met, returns
one value if True and another value if False”.
• IF, THEN, ELSE. If something is true, then do
this,  else/otherwise do that.

For example, if it’s raining, then close the


windows, else/otherwise leave the windows
open.
• Testing whether conditions are TRUE or FALSE
and making LOGICAL comparison between
expressions are common to many tasks.
• You can use the AND, OR, NOT, and IF
FUNCTIONS to create CONDITIONAL FORMULA.
Example: IF Function uses the ff. ARGUMENTS
Explanation of the above formula:

=IF(C4>74, "PASSED","FAILED")

=IF(C4<75, "FAILED","PASSED")
LOGICAL TEST:
3-D Reference
BASIC FORMULA IN MS EXCEL
LET’S TRY THIS!!
• Create a table : (Computation of grades (class
records and Grading sheets).
• Sheet1 (Class Record) sheet 2 (Grading Sheet)
• To transfer the data or final grade from class
record to grading sheet (use 3D Reference).
• Below is the example: take note of the
statement in the formula bar.
LET’S TRY THIS!!
The FORMULA:
• A. Enter this formula in cell
D2 =IF(C2<75,”FAILED”,”PASSED”).
This means if the score in C4 is less than
75, then enter the word ”FAILED” in cell
D4, else/otherwise enter the word”PASSED”.
Copy this formula from D4 through D23.
IF(C2>74,”PASSED”,”FAILED”).
(Note: Cell reference like C4 in the formula above is not constant)
LET’S TRY THIS!!
Convert scores to grades with nested IF statements
Convert scores to grades with nested IF statements

• Th example BELOW uses a “nested” IF statement to


convert the numerical Math scores to letter grades.
• The syntax for a nested IF statement is this: IF data is true,
then do this; IF data is true, then do this; IF data is true,
then do this; IF data is true, then do this; else/otherwise do
that. You can nest up to seven IF functions.
• A. Enter this formula in cell E2:=IF(C2>90,”WITH
HONOR”,IF(C2>74,”PASSED”,IF(C2<75,”FAILED”))), then
copy from CE4 to E23.
• Note: Every open, left parenthesis in a formula must have a
matching closed, right parenthesis. If your formula returns
an error, count your parentheses.
Try THIS!

Change your function to display the ff:


• Failed (when the grade is below 74)
• Passed (when the average is 75)
• Good (when the average is between 85 and
80)
• Very Good (when the average is between 90
and 86)
• Excellent (when the average is 91 up)
References:
• http://www.excel-exercise.com/function/cond
ition/if/
• http://www.pcworld.com/article/2971613/so
ftware-productivity/excel-logical-formulas
• Harnessing Computer 2nd Edition
Jemimah Inc.pp.89-105

You might also like