Not Equal To In Excel (2024)

What Is “Not Equal To” Sign In Excel?

The Not Equal to in Excel is a feature to compare two numerical values or two Text values. The Sign or Symbol for Not Equal to is <>”. The Not Equal to in Excel returns “True and False” as the output.

  • True denotes that the compared values are different or not equal.
  • False denotes that the compared values are the same or equal.

We do not have a pre-defined formula in Excel. However, we can manually write the function as “=value1<>value2”, where Value1 and Value2 are the Excel cell references or the numeric and text values. For example, the image below shows the numerical values in columns A and B. Here, we will compare the numbers in the columns using the Not Equal to in Excel.

Enter the formula =A2<>B2 in cell C2, press the “Enter” key, and drag the formula using the fill handle to cell C3.

The output in the example is TRUE in cell C2 and FALSE in cell C3, as shown below.

Not Equal To In Excel (1)
Table of contents
  • What Is “Not Equal To” Sign In Excel?
    • How Is The “Not Equal To” Sign Used In Excel?
      • #1 – Compare Two Numeric Values
      • #2 – Compare Two Text Values
      • #3 – Use Of IF Function With “Not Equal To” Condition
      • #4 – COUNTIF Function With “Not Equal To” Condition
      • #5 – SUMIF Function With “Not Equal To” Condition
    • Important Things To Note
    • Frequently Asked Questions
    • Download Template
    • Recommended Articles
Key Takeaways
  • The Not Equal to in Excel checks whether the values getting compared, numerical or text, are equal or not.
  • The function always requires two values to check. While comparing values, if one of the values is a blank cell, we will get the output as “True”. And if both the cells are blank, we get the output as “False”. These are a few scenarios of the Boolean default values.
  • We can use conditional functions such as the IF function, COUNTIF function, and the SUMIF function to get an alternate output instead of the default “True” or “False”.

The Symbol For “Not Equal To” in Excel

The Symbol for Not Equal to in Excel is “<>”. [The less than symbol “<” and the greater than symbol “>” facing each other].

Excel VBA – All in One Courses Bundle (35+ Hours of Video Tutorials)

If you want to learn Excel and VBA professionally, then​Excel VBA All in One Courses Bundle​(35+ hours) is the perfect solution. Whether you’re a beginner or an experienced user, this bundle covers it all – from Basic Excel to Advanced Excel, Macros, Power Query, and VBA.

How Is The “Not Equal To” Sign Used In Excel?

We can use the Not Equal to in Excel as follows:

  • Compare Two Numeric Values.
  • Compare Two Text Values.
  • Compare using the IF Function With a “Not Equal To” Condition.
  • Compare using the COUNTIF Function With a “Not Equal To” Condition.
  • Compare using the SUMIF Function With a “Not Equal To” Condition.

#1Compare Two Numeric Values

We will Compare Two Numeric Values using the Not Equal to in Excel.

In the following table, the data is,

  • Column A contains Value1.
  • Column B contains Value2.
  • Column C is for the Output.
Not Equal To In Excel (2)

The steps to Compare Two Numeric Values are as follows:

Step 1:Select cell C2 and enter the formula =A2<>B2.

Not Equal To In Excel (3)

Step 2: Press the “Enter” key. The result is “True”.

Not Equal To In Excel (4)

Step 3: Drag the formula from cell C2 to cell C5. The output is shown in the image below.

Not Equal To In Excel (5)

#2 – Compare Two Text Values

We will Compare Two Text Values using the Not Equal to in Excel.

In the following table, the data is,

  • Column A contains Text1.
  • Column B contains Text2.
  • Column C is for the Output.
Not Equal To In Excel (6)

The steps to Compare Two Text Values are as follows:

Step 1:Select cell C2 and enter the formula =A2<>B2.

Not Equal To In Excel (7)

Step 2: Press the “Enter” key. The result is “True”.

Not Equal To In Excel (8)

Step 3: Drag the formula from cell C2 to cell C5. The output is shown in the image below.

Not Equal To In Excel (9)

#3 – Use Of IF Function With “Not Equal To” Condition

We will compare values using the IF Excel function With “Not Equal To” Condition. The IF function permits us to get any desired output in place of the default “True or False”.

In the following table, the data is,

  • Column A contains the Fruits.
  • Column B contains the Status.
  • Column C for the output.

The steps to compare cells using the IF function are as follows:

Step 1: Select cell C2 and enter the formula =IF(B2<>“Order,” “Sale,” “Out of stock”).

Not Equal To In Excel (10)

Step 2: Press the “Enter” key. The result is “Out of Stock” w.r.t the IF function condition.

Not Equal To In Excel (11)

Step 3: Now, drag the formula from cell C2 to cell C5. The output is shown in the image below.

Not Equal To In Excel (12)

#4 COUNTIF Function With “Not Equal To” Condition

The COUNTIF function is from the COUNT function family in Excel, like the COUNTA and COUNTBLANK functions. It is a pre-defined function in Excel that counts all the cells in the range as specified by the conditions.

The formula of the COUNTIF function is:

=COUNTIF(range,criteria)

We will compare values using the COUNTIF Function With “Not Equal To” Condition.

In the following table, the Pokémon data is,

  • Column A shows the Name.
  • Column B contains the Type.
  • Column C contains the Total Status.
  • Columns E and F are for the COUNTIF
Not Equal To In Excel (13)

The steps to compare cells using the COUNTIF function are as follows:

Step 1: Select cell F2 and enter the formula =COUNTIF(B2:B7,“<>Fighter”).

Not Equal To In Excel (14)

Step 2: Press the “Enter” key. The result is ‘4’ w.r.t the COUNTIF function condition.

Not Equal To In Excel (15)

Therefore, the output is 4, which denotes that there are 4 Pokémon that are not the “Fighter” type.

#5 – SUMIF Function With “Not Equal To” Condition

The SUMIF excel function is from the SUM function family in Excel, like the SUM and SUMPRODUCT functions. It is a pre-defined function in Excel that adds all the cells in the range as specified by the conditions.

The formula of the SUMIF function is,

=SUMIF(range,criteria,[sum_range])

We will compare values using the SUMIF Function With “Not Equal To” Condition.

In the following table, the data is,

  • Column A shows the City.
  • Column B contains the Category.
  • Column C contains the Sates.
  • Columns E, F, and G are for the Output.
Not Equal To In Excel (16)

The steps to compare cells using the SUMIF function are as follows:

Step 1: Select cell G2 and enter the formula =SUMIF(C2:C7,“<>Snacks”).

Not Equal To In Excel (17)

Step 2: Press the “Enter” key. The result is ‘$1,18,10,894’ w.r.t the SUMIF function condition.

Not Equal To In Excel (18)

Important Things To Note

  • The mathematical sign or symbol for Not Equal to is , however, in Excel, we use “<>” symbol. [The less than symbol “<” and the greater than symbol “>” facing each other].
  • The Not Equal to in Excel is case-insensitive. So, whether the strings compared are uppercase, lowercase, or a combination of both, the function will return accurate results.
Not Equal To In Excel (19)
  • We can also compare a numeric value with a text value, as shown below. Again, the output will be “True”, implying that the two values are different.
Not Equal To In Excel (20)

Frequently Asked Questions

How do you write Not Equal To in Excel?

We write the Not Equal to in Excel as =value1<>value2 as we do not have an inbuilt function in Excel. [Value1 and Value2 are the cell references with numerical or text values].

What does “<>” mean in Excel?

The “<>” is the Not Equal to in Excel operator or symbol that detects whether the values match or not. If the values are the same, the output is “TRUE”, and if the values are different, the output is “False”.

How to write Not Equal To blank cells in Excel?

We will use the Not Equal to in Excel to compare with the blank cells.

In the following table, the data is,

1. Column A shows the Value.
2. Column B for the Output.

The steps to compare cells using Not Equal to in Excel are as follows:

Step 1: Select cell B2 and enter the formula =A2<>“”.

Not Equal To In Excel (21)

Step 2: Press the “Enter” key. The result is ‘True’.

Not Equal To In Excel (22)

Step 3: Drag the formula from cell B2 to cell B5. The output is shown in the image below.

Not Equal To In Excel (23)

Download Template

This article must help understand Not Equal To in Excel with its formula and examples. You can download the template here to use it instantly.

Not Equal to in ExcelDownload

Recommended Articles

This has been a guide to Not Equal To in Excel. Here we use the symbol, formulas along with examples and a downloadable excel template. You can learn more from the following articles –

  • Change Case In Excel
  • Date Format In Excel
  • Autofill In Excel
Not Equal To In Excel (2024)
Top Articles
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 6158

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.