IF Function in Google Sheets

Returns one value if a logical expression is TRUE and another if FALSE.

Syntax

IF(logical_expression, value_if_true, value_if_false)

Description

Returns one value if a logical expression is TRUE and another if FALSE.

Tips & Best Practices

Can be nested up to 7 levels. For multiple conditions, consider IFS or SWITCH.

Example

=IF(...)

The IF function belongs to the Logical category of Google Sheets functions.

[Advertisement โ€” Google AdSense]

Related Functions

Need Help with IF?

If you're struggling with IF or need a custom formula built for your business, our Google Sheets experts can help. Get a free quote โ†’

๐Ÿ’ฌ