Articles with the tag:
Close
Changelog
Close
Articles with the tag:
Close
Try in the cloud
Try in the cloud

IF Function

The IF function is one of the logical functions. Is used to check the logical expression and return one value if it is TRUE, or another if it is FALSE.

Syntax

IF(logical_test, value_if_true, [value_if_false])

The IF function has the following arguments:

Argument Description
logical_test The condition that you want to test.
value_if_true The value to be returned if the result is TRUE.
value_if_false The value to be returned if the result is FALSE.

Notes

How to apply the IF function.

Examples

There are three arguments: logical_test = A1<100, value_if_true = 0, value_if_false = 1, where A1 is 12. This logical expression is TRUE. So the function returns 0.

IF Function: TRUE

If we change the A1 value from 12 to 112, the function returns 1:

IF Function: FALSE

Return to previous page
Try now for free Try and make your decision No need to install anything
to see all the features in action