Description
NOTE
  • The [logical_test] can be a number[s] or boolean[s].
Syntax
Copied!
=IF(logical_test, value_if_true, [value_if_false])
SAMPLE data
|     | A   | B      | C     |   D | E   |
|:---:|:----|:-------|:------|----:|:----|
|  1  |     |        |       |     |     |
|-----|-----|--------|-------|-----|-----|
|  2  |     |        |       |     |     |
|-----|-----|--------|-------|-----|-----|
|  3  |     | Orange | Pink  |   1 |     |
|-----|-----|--------|-------|-----|-----|
|  4  |     | Apple  | Red   |   2 |     |
|-----|-----|--------|-------|-----|-----|
|  5  |     | Lemon  | Green |   3 |     |
|-----|-----|--------|-------|-----|-----|
|  6  |     |        |       |     |     |
|-----|-----|--------|-------|-----|-----|
|  7  |     |        |       |     |     |
|-----|-----|--------|-------|-----|-----|
EXAMPLE 1
Copied!
=IF(ISNUMBER(B3:D5), "+", "-")
|     | A   | B   | C   |
|:---:|:----|:----|:----|
|  1  | -   | -   | +   |
|-----|-----|-----|-----|
|  2  | -   | -   | +   |
|-----|-----|-----|-----|
|  3  | -   | -   | +   |

Join our newsletter to stay up to date

Click the button below to sign up for our advanced platform. Get started now and see the benefits for yourself.

EN | VI