# Logical Operators in Excel: Not Equal, Greater Than or Equal
> Learn Excel's logical operators: how to type not equal, greater than or equal and less than or equal, and use them in IF, COUNTIF, text and dates.

- Web page: https://logicexcel.com/functions/logical-operators
- Language: en
- Also in: [Deutsch](https://logicexcel.com/de/functions/logical-operators.md), [Español](https://logicexcel.com/es/functions/logical-operators.md)
- Updated: 2026-11-03
- Practice this in the browser: https://logicexcel.com/practice/93

Excel's logical operators are `=`, `<>`, `>`, `<`, `>=` and `<=`. Each one compares two values and returns TRUE or FALSE. For not equal, type `=C2<>D2`. For greater than or equal to, type `=C2>=D2`. For less than or equal to, type `=C2<=D2`. In `>=` and `<=` the equals sign comes second.

This guide shows how to type each operator, how it treats text, blanks and dates, and how to use it in IF and COUNTIF.

## TL;DR

- The six comparison operators are `=` (equal), `<>` (not equal), `>`, `<`, `>=` and `<=`. Excel writes not equal as `<>`, never `!=`.
- In `>=` and `<=` the equals sign always goes second. Type them that way round every time.
- Text comparisons ignore capital letters. A number never equals the same digits stored as text.
- A blank cell equals both `""` and 0. Use `=""` to test for empty, and `=0` only when you mean zero.
- Inside COUNTIF, SUMIF and similar functions, the operator goes inside quotes: `">=50"`. To compare against a cell, join with `&`: `">="&D4`.
- Arithmetic and `&` run before comparisons. Use brackets when you are not sure.

## Table of Contents

- [Sample data for the operator examples](#sample-data-for-the-operator-examples)
- [Excel comparison operators and how to type them](#excel-comparison-operators-and-how-to-type-them)
- [Not equal in Excel: the less than, greater than sign](#not-equal-in-excel-the-less-than-greater-than-sign)
- [Greater than or equal to in Excel](#greater-than-or-equal-to-in-excel)
- [Less than or equal to in Excel](#less-than-or-equal-to-in-excel)
- [Equal to: text, capitals and numbers stored as text](#equal-to-text-capitals-and-numbers-stored-as-text)
- [Comparing blank cells](#comparing-blank-cells)
- [Comparing dates](#comparing-dates)
- [Logical operators inside IF with AND or OR](#logical-operators-inside-if-with-and-or-or)
- [Operators inside COUNTIF and SUMIF criteria](#operators-inside-countif-and-sumif-criteria)
- [The ampersand and the arithmetic operators](#the-ampersand-and-the-arithmetic-operators)
- [Order of operations](#order-of-operations)
- [Operators compared with functions](#operators-compared-with-functions)
- [Versions and ranges](#versions-and-ranges)
- [Operator errors and how to fix them](#operator-errors-and-how-to-fix-them)
- [What learners get wrong](#what-learners-get-wrong)
- [A worked job: the reorder check](#a-worked-job-the-reorder-check)
- [Practice the operators](#practice-the-operators)
- [FAQ](#faq)
- [Sources](#sources)

## Sample data for the operator examples

Every example uses one stock sheet from a small warehouse. Row 1 holds the headings and the stock lines sit in rows 2 to 8. Column C is the count on the shelf, column D is the level at which to reorder, and column F is the date of the last stock count. Some cells are empty on purpose.

| Row | A: SKU | B: Item | C: In stock | D: Reorder at | E: Supplier | F: Counted |
|---|---|---|---|---|---|---|
| 1 | SKU | Item | In stock | Reorder at | Supplier | Counted |
| 2 | S-101 | Cable ties | 480 | 200 | Norvik | 2026-10-28 |
| 3 | S-102 | Safety gloves | 35 | 50 | Norvik | 2026-10-15 |
| 4 | S-103 | Tape gun | 50 | 50 | Brightline | 2026-11-01 |
| 5 | S-104 | Pallet wrap | 0 | 20 | Brightline | 2026-09-30 |
| 6 | S-105 | Box cutters | 120 | 60 | NORVIK | 2026-10-20 |
| 7 | S-106 | Label rolls | 18 | 25 | (empty) | 2026-10-20 |
| 8 | S-107 | Bubble mailers | 260 | 100 | Brightline | (empty) |

Type each formula in an empty cell next to row 2 and fill it down. Row 4 is the key row: the stock count equals the reorder level exactly, which is where the choice between `>` and `>=` matters.

## Excel comparison operators and how to type them

A comparison has the shape `=value1 operator value2`. Excel works out the two values, compares them and shows TRUE or FALSE.

| Operator | Meaning | Example | Result on row 4 |
|---|---|---|---|
| `=` | Equal to | `=C4=D4` | TRUE |
| `<>` | Not equal to | `=C4<>D4` | FALSE |
| `>` | Greater than | `=C4>D4` | FALSE |
| `<` | Less than | `=C4<D4` | FALSE |
| `>=` | Greater than or equal to | `=C4>=D4` | TRUE |
| `<=` | Less than or equal to | `=C4<=D4` | TRUE |

Row 4 holds 50 in both columns. The first `=` in each example starts the formula, and the operator comes after it. So `=C4=D4` has two equals signs and that is correct.

On a US keyboard layout, `<` is Shift and the comma key, and `>` is Shift and the period key. Type the two characters of `>=`, `<=` and `<>` straight after each other with no space. The order is fixed: the angle bracket comes first and the equals sign second. Excel also does not accept `!=` or `==`, which other languages use, and the single characters `≥`, `≤` and `≠` from a symbol menu are text, not operators.

## Not equal in Excel: the less than, greater than sign

The symbol for not equal is not obvious. It is `<>`, a less-than sign followed by a greater-than sign, read as "less than or greater than".

`=C2<>D2`

Row 2 holds 480 and 200, so they differ and the result is TRUE. On row 4 the same formula gives FALSE, because both cells hold 50.

It works on text too. To flag every line that does not come from Brightline:

`=E2<>"Brightline"`

Rows 2 and 3 give TRUE and row 4 gives FALSE. The text goes in double quotes. The comparison ignores capitals, so a supplier typed as `BRIGHTLINE` is still equal to `"Brightline"`.

Put it inside IF to get words back:

`=IF(E2<>"Norvik","Other supplier","Norvik")`

Row 2 shows Norvik. Row 4 shows Other supplier. Row 6 holds NORVIK in capitals and still shows Norvik, because the comparison does not see the difference.

A not-equal test is also how you test for "not blank". `=F8<>""` gives FALSE, because F8 is empty. The blank section below explains why this works.

## Greater than or equal to in Excel

The `>=` operator is TRUE when the left value is bigger than or the same as the right value.

`=C2>=D2`

Row 2 (480 against 200) gives TRUE. Row 3 (35 against 50) gives FALSE. Row 4 (50 against 50) gives TRUE, because equal counts. The plain `>` gives FALSE on row 4:

`=C4>D4`

The difference between the two is the boundary. When someone says "at least 50", "50 or more" or "from 50 up", the rule includes 50 and needs `>=`. When they say "more than 50" or "over 50", the rule excludes 50 and needs `>`. Say the rule aloud in plain words, find the word that handles the exact boundary, then pick the symbol. Most wrong answers on threshold formulas are a boundary slip, not a syntax slip.

Here it is inside IF. Keep a line as fully stocked when the shelf count meets or beats the reorder level:

`=IF(C2>=D2,"Stocked","Low")`

Rows 2, 4, 6 and 8 show Stocked. Rows 3, 5 and 7 show Low. Row 4 shows Stocked because equal counts.

## Less than or equal to in Excel

The `<=` operator is TRUE when the left value is smaller than or the same as the right value. To write "less than or equal to" in Excel, type `<` and then `=`, in that order.

`=C4<=D4`

Row 4 gives TRUE. Reordering usually starts when the stock reaches the reorder level, not when it drops under it, so the right test here includes the boundary:

`=IF(C2<=D2,"Reorder","OK")`

Row 2 shows OK. Row 3 shows Reorder (35 is under 50). Row 4 shows Reorder, because 50 is equal to the level. Rows 5 and 7 show Reorder. Rows 6 and 8 show OK.

If you used `<` instead, row 4 would show OK and the tape gun would run out without a warning. Test your formula on a row that sits exactly on the boundary every time. It is the row most likely to prove you wrong.

## Equal to: text, capitals and numbers stored as text

The plain `=` test works on numbers, text and logical values.

`=E2="Norvik"`

Row 2 gives TRUE. Row 6 holds NORVIK and also gives TRUE, because Excel ignores case in comparisons. If the capitals must match, use EXACT:

`=EXACT(E6,"Norvik")`

That returns FALSE for row 6. EXACT is a function, not an operator, but it fills the one gap the `=` sign leaves.

A number is never equal to the same digits stored as text:

`=C4="50"`

C4 holds the number 50 and `"50"` in quotes is text, so the answer is FALSE. This trap shows up when numbers arrive from another system as text, and every comparison against them fails quietly. Look for the green triangle in the cell corner, or test with ISNUMBER.

The equals sign does not support wildcards. `=E2="Nor*"` looks for the literal asterisk and gives FALSE. For patterns, use COUNTIF or SEARCH. Our [wildcard characters guide](https://logicexcel.com/functions/wildcard-characters) covers them.

## Comparing blank cells

An empty cell behaves like both an empty string and a zero. Both of these are TRUE for E7:

`=E7=""`

`=E7=0`

That second result surprises people. A blank cell counts as 0 in a number comparison, so a formula such as `=E7<=0` is also TRUE. On a sheet where blank means "not entered", that silently treats missing data as zero.

Zero is not empty, though. C5 holds a real 0:

`=C5=""`

This gives FALSE, because C5 is a number. So to test "is this cell empty", use `=""`, and to test "is it zero", look at the value. To test "is it not empty", use `<>""`.

If a cell may hold either a blank or a zero and the difference matters, test the blank first, and test the value only after you have ruled blank out. The IF function guide shows that pattern in its [blank cells section](https://logicexcel.com/functions/if).

## Comparing dates

Excel stores a date as a serial number, so the number operators work on dates. Which stock lines were counted on or after 15 October 2026?

`=F2>=DATE(2026,10,15)`

Row 2 (28 October) gives TRUE. Row 3 was counted on exactly 15 October, so `>=` gives TRUE. Row 5 (30 September) gives FALSE. Build the date with DATE rather than typing it as text:

`=F2>"2026-10-15"`

That formula returns FALSE for row 2, which is clearly wrong. The text in quotes is not a date, and Excel ranks any text higher than any number, so no real date is ever greater than it. The same applies to `<`, which would return TRUE for every row.

Two date habits keep you safe. Build dates with DATE, or point at a cell that holds a real date. And expect blank date cells to count as zero, which is 0 January 1900 in Excel's calendar. Row 8 has no count date, so this gives TRUE:

`=F8<DATE(2026,10,1)`

An empty date looks "older than" any real date. Test for blank first if that would mislead a report. Our guide to [date functions](https://logicexcel.com/functions/date-functions) covers DATE, TODAY and the rest.

## Logical operators inside IF with AND or OR

An operator makes the test, and IF, AND and OR decide what to do with it. Two or more tests go inside AND or OR. A line needs reordering when it is at or below the level and it comes from Norvik:

`=IF(AND(C2<=D2,E2="Norvik"),"Order from Norvik","No order")`

Row 3 shows Order from Norvik (35 is under 50, and the supplier is Norvik). Row 4 shows No order, because the stock is at its level but the supplier is Brightline. Row 6 shows No order because the stock is fine.

With OR, one test is enough. Flag a line as urgent if it is out of stock or below three quarters of its level:

`=IF(OR(C2=0,C2<D2*0.75),"Urgent","Normal")`

Row 5 shows Urgent, because the stock is 0. Row 3 shows Urgent: 35 is under 37.5, which is three quarters of 50. Row 7 shows Urgent too, because 18 is under 18.75. Row 4 shows Normal, because 50 is not under 37.5. The [logical functions guide](https://logicexcel.com/functions/logical-functions) covers AND, OR, XOR and NOT in full, and the [IF function guide](https://logicexcel.com/functions/if) covers everything IF can do with these tests.

## Operators inside COUNTIF and SUMIF criteria

Functions like COUNTIF, SUMIF and AVERAGEIF take a criteria argument. To use an operator there, put it inside quotes, joined to the value:

`=COUNTIF(C2:C8,">=50")`

Four lines have 50 or more in stock (480, 50, 120 and 260), so the count is 4. The sum of those lines works the same way:

`=SUMIF(C2:C8,">=50")`

The result is 910. To compare against a cell instead of a typed number, close the quotes after the operator and join the cell with an ampersand:

`=COUNTIF(C2:C8,">="&D4)`

D4 holds 50, so Excel reads the criteria as `">=50"` and the count is again 4. Use `"<>"` for not equal:

`=COUNTIF(E2:E8,"<>Brightline")`

The result is 4: the two Norvik lines, the NORVIK line and the empty supplier cell. COUNTIF counts blanks when you ask for "not equal" to a word, which often catches people out. Add a second condition in COUNTIFS to exclude them.

Leave the quotes off and Excel refuses the formula. Writing `=COUNTIF(C2:C8,>=50)` fails because `>=50` is not a value or a reference. The operator is part of the criteria text, so it lives inside the quotes. See the [COUNTIF guide](https://logicexcel.com/functions/countif) and the [SUMIF guide](https://logicexcel.com/functions/sumif) for the full set of criteria rules.

## The ampersand and the arithmetic operators

Excel has two more operator families. They are not logical, but our Operators lesson includes the ampersand, and you will mix both families with comparisons constantly.

The ampersand joins text. It turns numbers into text as it goes:

`=B2&": "&C2`

Row 2 returns Cable ties: 480. Everything between double quotes is typed text, including the space after the colon. A common first mistake is to forget the ampersands around the quoted text.

Dates need care. Joined directly, a date shows its serial number:

`="Counted "&F2`

That returns Counted 46323, not a readable date. Wrap the date in TEXT to choose the format:

`="Counted "&TEXT(F2,"dd mmm yyyy")`

Row 2 returns Counted 28 Oct 2026.

The arithmetic operators are `+`, `-`, `*`, `/`, `^` and `%`. Take the gap between stock and reorder level:

`=C2-D2`

Row 2 gives 280, and row 3 gives -15. A division gives a ratio:

`=C2/D2`

Row 2 gives 2.4, so the shelf holds 2.4 times the reorder level. The percent sign turns a number into hundredths, so `=C2*10%` gives 48, which is 10% of the stock on row 2. Arithmetic on text fails. `=C2+E2` returns #VALUE! because E2 holds the word Norvik. Reference operators exist as well: the colon makes a range (`C2:C8`), the comma joins separate references (`C2,C8`) and a space picks the overlap of two ranges.

## Order of operations

When one formula holds several operators, Excel runs them in a fixed order. From first to last: the reference operators, negation, percent, exponent, then multiplication and division, then addition and subtraction, then `&`, and last the comparisons.

Two results of that rule are worth knowing. Arithmetic runs before a comparison, so the formula below doubles D2 first and compares afterwards:

`=C2>D2*2`

Row 2 reads 480 against 400 and gives TRUE. And `&` runs before a comparison, so this is TRUE for row 2:

`=B2&C2="Cable ties480"`

When you are unsure, add brackets. They cost nothing and show the reader which part runs first. Even a bracket you did not need is better than a result you cannot explain.

Negation is an odd one. Excel applies the minus sign before the exponent, so `=-2^2` returns 4, not -4. If you want -4, write `=-(2^2)`.

## Operators compared with functions

Some jobs can be done by an operator or a function. Pick the one that reads best.

| Task | Operator version | Function version | Prefer |
|---|---|---|---|
| Not equal | `=E2<>"Norvik"` | `=NOT(E2="Norvik")` | The operator, shorter |
| Both tests true | `=(C2>=D2)*(E2="Norvik")` | `=AND(C2>=D2,E2="Norvik")` | AND, clearer |
| Either test true | `=(C2>=D2)+(E2="Norvik")>0` | `=OR(C2>=D2,E2="Norvik")` | OR, clearer |
| Case-sensitive match | none | `=EXACT(E2,"Norvik")` | EXACT |
| Count with a rule | none | `=COUNTIF(C2:C8,">=50")` | COUNTIF |
| Join text | `=B2&C2` | `=CONCAT(B2,C2)` | `&` for short joins |

The operator versions of AND and OR use TRUE and FALSE as 1 and 0. That is useful inside SUMPRODUCT, where AND and OR do not work row by row. For ordinary sheets the functions read better. For joining text, see our [CONCAT guide](https://logicexcel.com/functions/concat) and [TEXTJOIN guide](https://logicexcel.com/functions/textjoin).

## Versions and ranges

All six comparison operators, the ampersand and the arithmetic operators exist in every version of Excel, in Excel for the web, and in Excel for Mac. They are the oldest part of the formula language.

One difference is worth knowing. In Microsoft 365, a comparison between two ranges returns a result for every row and spills the answers down the column:

`=C2:C8>=D2:D8`

This returns seven values: TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, TRUE. In older versions without dynamic arrays, the same formula returns a single value unless you enter it as an array formula with Ctrl+Shift+Enter. The [dynamic arrays guide](https://logicexcel.com/functions/dynamic-arrays-excel) explains spilling.

## Operator errors and how to fix them

| What you see | Cause | Fix |
|---|---|---|
| "There's a problem with this formula" | `!=` or `==` typed instead of a real operator | Use `<>` and `=` |
| #NAME? | Text compared without quotes, as in `=E2=Norvik` | Put quotes around text: `"Norvik"` |
| #VALUE! | Arithmetic on text, as in `=C2+E2` | Compare or join text, and keep arithmetic on numbers |
| #DIV/0! | A division by zero or a blank | Test the divisor first with IF |
| FALSE when it looks equal | Number stored as text, a trailing space, or a hidden character | Convert the text, wrap the cell in TRIM, check with ISNUMBER |
| Criteria refused in COUNTIF | Operator outside quotes | Write `">=50"` as one quoted string, or `">="&D4` |
| Date comparison wrong | Date typed in quotes as text | Use DATE() or a cell that holds a real date |

The unquoted-text mistake is easy to reproduce:

`=E2=Norvik`

Excel looks for a named range called Norvik, finds none, and returns #NAME?. With the quotes, `=E2="Norvik"` returns TRUE.

## What learners get wrong

Between 26 September and 3 November 2026, learners made 505 first attempts across our [Operators lesson](https://logicexcel.com/practice/93), and 84.6% were right. These are first checks of a screen in a page view, not people. A separate lesson, [True & False](https://logicexcel.com/practice/48), drew 1,383 first attempts, and 83.1% were right. Both show where a symbol and its meaning come apart.

The ampersand screen asks learners to type `=A2&": "&C2` to join an item name and its actual figure. Of 94 first attempts, 70.2% were right. The mistakes were small and specific. Two first attempts dropped the space inside the quotes, writing `=(A2&":"&C2)`, which leaves no space after the colon in the joined text. Two left out the first ampersand, so the quoted text sat against A2 and Excel refused the formula. Two added a stray quote after C2.

The not-equal screen asks for `=B4<>C4`, to check whether the Gizmo missed its target. Of 86 first attempts, 82.6% were right. The most common wrong answer, 5 first attempts, pointed at the wrong row: `=B2<>C4` compares the target in row 2 with the Gizmo's actual figure in row 4. The formula looks fine and returns a value, but the value answers a different question. If the row 2 target and the Gizmo's actual figure are both 45, that formula gives FALSE where the right one gives TRUE for a Gizmo that missed its target. Three more first attempts left out the leading equals sign and typed `B4<>C4`, which Excel stores as text.

The COUNTIF screen asks for `=COUNTIF(C2:C6,">50")`. It had 80 first attempts and 88.8% were right. The few wrong answers put the operator outside the quotes, as in `=COUNTIF(C2:C6,>"50")`, or left the quotes out altogether. In the criteria argument, the operator and the number sit inside one pair of quotes. The `>=` screen, `=C5>=B5` with 81 first attempts and 88.9% right, mostly drew typos and a missing equals sign.

The True & False lesson asks what a comparison evaluates to, and the mistakes there are about reading, not typing. On the screen "What would B2>B3 evaluate to?", 134 first attempts landed at 75.4%, and 29 said TRUE when the answer was FALSE. On "B2>=C4", 135 first attempts landed at 78.5%, and 24 said TRUE. The cure is to replace the cell names with their values before you decide. On the `<>` screen, 136 first attempts landed at 80.9%, and 19 said FALSE when the answer was TRUE. The symbol asks "are these different?", and an answer of FALSE fits a reading of `<>` the wrong way round. And on a plain `4>=1` screen, 19 of 140 first attempts said FALSE, even though 4 is greater than 1. The `>=` symbol includes the "or equal" part, and a greater value passes it too.

## A worked job: the reorder check

You need to turn the stock sheet into a short action list before the supplier cut-off. Build it in four steps.

1. **Flag what to reorder.** Include the boundary:

   `=IF(C2<=D2,"Reorder","OK")`

   Fill down. Rows 3, 4, 5 and 7 show Reorder. Rows 2, 6 and 8 show OK.

2. **Count the lines to reorder.** Use the same rule in a counting formula. COUNTIF cannot compare two columns directly, so count the flags from step 1 if they sit in column G, or use SUMPRODUCT:

   `=SUMPRODUCT(--(C2:C8<=D2:D8))`

   The answer is 4, the same as the four Reorder flags.

3. **Find the stale counts.** A count older than 15 October needs a recount, and an empty date also needs a look:

   `=IF(F2="","No count date",IF(F2<DATE(2026,10,15),"Recount","Fresh"))`

   Row 3 shows Fresh, because it was counted on 15 October exactly and `<` excludes that day. Row 5 shows Recount, and row 8 shows No count date. The blank test comes first because an empty date would otherwise pass as older than every real date.

4. **Write the action line.** Join the item and the number into a message people can paste into an email:

   `=B3&": "&C3&" left, reorder at "&D3`

   Row 3 returns Safety gloves: 35 left, reorder at 50.

Each step is one comparison operator and one decision. The rules sit in the formulas, so changing a reorder level changes every flag at once.

## Practice the operators

You learn operators by typing them, because the order of the two characters in `>=` is easy to know and easy to get backwards under pressure. Open [Practice Lesson 93](https://logicexcel.com/practice/93) and type the formula yourself. It includes the ampersand and operators inside COUNTIF too. Then open [True & False](https://logicexcel.com/practice/48) to build the habit of replacing cell names with values before you answer. For the next step, read the [IF function guide](https://logicexcel.com/functions/if).

## FAQ

### How do I write not equal to in Excel?

Type `<>`, a less-than sign followed by a greater-than sign. For example, `=C2<>D2` is TRUE when the two cells differ. For text, put the word in quotes: `=E2<>"Brightline"`. Excel does not use `!=`. Inside COUNTIF, the operator also goes in quotes: `"<>Brightline"`.

### How do I type greater than or equal to in Excel?

Type `>` and then `=`, with nothing between them: `=C2>=D2`. The order matters: angle bracket first, equals sign second. On a US keyboard, `>` is Shift and the period key. To use it in a counting formula, put it inside quotes, as in `=COUNTIF(C2:C8,">=50")`.

### How do I type less than or equal to in Excel?

Type `<` and then `=`: `=C2<=D2`. It returns TRUE when the left value is smaller than or the same as the right one. To compare against a cell inside COUNTIF, write `"<="&D4`. The symbol `≤` from a symbol menu does not work in formulas.

### What does "does not equal" mean in an IF formula?

It means the IF test passes when the two sides differ. Use `<>` in the first slot: `=IF(E2<>"Norvik","Other supplier","Norvik")` returns Other supplier for any cell that is not Norvik. Remember that Excel ignores capitals, so NORVIK counts as equal to Norvik.

### What are the logical operators in Excel?

The six comparison operators are `=`, `<>`, `>`, `<`, `>=` and `<=`. They return TRUE or FALSE. Excel also has the text operator `&`, the arithmetic operators `+`, `-`, `*`, `/`, `^` and `%`, and the reference operators colon, comma and space. AND, OR, NOT and XOR are logical functions, not operators.

### Why does my greater than formula return the wrong answer?

Check the boundary first: `>` excludes the equal case and `>=` includes it. Then check whether the cells hold numbers or text, because text ranks above every number. Finally look for dates typed in quotes. A quoted date is text, so a comparison against it gives the wrong answer for every real date.

### Can I use an operator inside COUNTIF?

Yes, as part of the criteria text in quotes. `=COUNTIF(C2:C8,">=50")` counts values of 50 or more. To compare with a cell, join it with an ampersand: `">="&D4`. Writing the operator outside the quotes makes Excel refuse the formula.

### Does Excel compare text without caring about capitals?

Yes. `="NORVIK"="norvik"` is TRUE. The comparison operators, COUNTIF and SUMIF all ignore case. When capitals matter, use the EXACT function, which returns TRUE only when the two texts match exactly, capital for capital.

## Sources

- [Calculation operators and precedence in Excel, Microsoft Support](https://support.microsoft.com/en-us/office/calculation-operators-and-precedence-in-excel-48be406d-4975-4d31-b2b8-7af9e0e2878a)
- [IF function, Microsoft Support](https://support.microsoft.com/en-us/office/if-function-69aed7c9-4e8a-4755-a9bc-aa8bbff73be2)
