Decisions with IF · About 4 minutes
TRUE and FALSE comparisons
A comparison asks the sheet a yes-or-no question. The answer is always TRUE or FALSE.
=B2>=40 reads as "is B2 40 or more?". The signs are > (more than), < (less than), >= (or more), <= (or less), = (the same as) and <> (not the same as).
You can compare a cell with a number, or two cells with each other: =C2>B2 asks "is C2 bigger than B2?".
Exercise 1 of 4 · Worked example
In D2, check whether Priya passed Test 1 (40 or more). Type =B2>=40 and press Enter.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Test 1 | Test 2 | Passed Test 1? |
| 2 | Priya | 72 | 81 | (answer cell) |
| 3 | Arjun | 38 | 45 | |
| 4 | Meena | 40 | 36 | |
| 5 | Ravi | 55 | 55 | |
| 6 | Farhan | 29 | 41 |
Questions people ask
How do I type "not equal to" in Excel?
Type a less-than sign and then a greater-than sign: <>. =B2<>"Paid" is TRUE when B2 says anything else.
What does >= mean in Excel?
Greater than or equal to. =B2>=50 is TRUE for 50 and anything above it.
Why does my formula show TRUE or FALSE instead of a value?
A comparison on its own only answers yes or no. To show your own words or numbers, put it inside IF.
Is Excel's = comparison case-sensitive?
No. ="apple"="APPLE" is TRUE. Use EXACT when case matters.
How do I check if two cells are equal?
Type =A2=B2. It shows TRUE when they match and FALSE when they don't.
How do I compare two columns row by row?
=A2=B2 gives TRUE when the two cells match and FALSE when they don't. Fill it down to check every row.