Not equal symbols
| Symbol | Name | Unicode | HTML | LaTeX | Windows Alt code | Word (type, then Alt+X) |
|---|---|---|---|---|---|---|
| = | Equals sign | U+003D | == | = | Alt+61 | 003D |
| ≠ | Not equal to | U+2260 | ≠≠ | \neq or \ne | – | 2260 |
| ≉ | Not almost equal to | U+2249 | ≉≉ | \not\approx | – | 2249 |
| ≢ | Not identical to | U+2262 | ≢≢ | \not\equiv | – | 2262 |
What does ≠ mean?
The not equal sign (≠) says two values are different: 3 ≠ 4. It does not say which one is bigger – use > or < for that.
“Not equal” in software
| Where | Not equal operator |
|---|---|
| Excel, Google Sheets, SQL, VBA | <> e.g. =IF(A1<>"",…), WHERE status <> 'paid' |
| Python, C, C++, Java, PHP, SQL | != |
| JavaScript / TypeScript | !== (strict) or != |
| Bash | -ne for numbers, != for strings |
| R, Rust, Go, Swift, Kotlin | != |
| Lua / MATLAB | ~= |
How to type ≠
- Mac: Option+=
- Word / Outlook:
2260then Alt+X - Windows (any app): Win+. → Symbols → Math, or copy it above (≠ has no classic Alt code)
- Google Docs: Insert → Special characters → search “not equal”; to convert
!=as you type, add it under Tools → Preferences → Substitutions - Chromebook / Linux: Ctrl+Shift+U,
2260, Space - LaTeX:
\neqor\ne - HTML:
≠or≠
Frequently asked questions
How do I type the not equal sign?
Mac: Option+=. Word: 2260 then Alt+X. Google Docs: Insert → Special characters and search “not equal”. Windows: Win+. opens the symbol panel. Or copy ≠ from this page.
What is not equal to in Excel?
Excel uses <> as the not-equal operator, for example =COUNTIF(A:A,"<>0") or =IF(B2<>"Done","Open","").
Is there an Alt code for ≠?
Not in the classic Windows Alt code set. Use 2260 + Alt+X in Word or the Win+. symbol panel instead.
What is the Unicode for not equal?
≠ is U+2260, decimal 8800, HTML ≠.