Computer - Excel Logical Functions
Computer - Excel Logical Functions
EXCEL- LOGICAL
FUNCTIONS
Assoc. Prof. Dr. Seda Ersus
Dr. Burak Altınel
Dr. Burcu Öztürk Kerimoğlu
IF FUNCTION
The IF function, one of the logical functions in
excel, checks whether a condition is met and
returns one value if TRUE and another value if
FALSE.
Syntax: =IF (logical_test; [value_if_true];
[value_if_false])
logical_test (required) = the condition you want to
test.
value_if_true (required) = the value that you want
returned if the result of logical_test is TRUE.
value_if_false (optional) = the value that you want
returned if the result of logical_test is FALSE.
Examples:
➢ Cell D values:
If the value of cell
C1 is equal to 0,
the value is equal
to 1, otherwise it
is equal to 2.
=IF(C1=0;1;2)
➢ If the value of A2 is greater than B2, the number is over
the budget, otherwise it is ok.
=IF(A2>B2;"Over Budget";"OK")
=IF(C5<64;"F";IF(C5<73;"D";IF(C5<85;"C";IF(C5<95;"B";"A"))))