

Using ‘Not Equal To’ with IF Function in Excel

Now that we’ve learned how the ‘not equal’ operator works, let’s see how to effectively combine it in other functions. Remember ‘Not Equal to’ operator in Excel is ‘case-insensitive’, which means even if the values are in different text cases, case differences will be ignored as shown below. It works the same way as it does with the number value. Let’s see how the ‘Not Equal to’ operator works with text values. Here, the formula in cell C6 returns FALSE because the value in cell A6 is equal to the value in cell B6. Let’s see how the operator works in Excel with some formulas and examples.Īs you can see below, the formula in cell C5 returns TRUE because the value in cell A5 is not equal to the value in cell B5. value_1 – the first value to be compared.How to Use the ‘Not Equal to’ Comparison Operator in Excel Now let’s see how we can use ‘Not Equal to’ in Excel. The Not Equal operator is often used along with other conditional functions such as IF, OR, SUMIF, COUNTIF functions to create formulas. If the values are NOT equal, it will return TRUE, else it will return FALSE. The is a comparison operator that compares two values.

It is also known as a Boolean operator because the resulting output of any calculation with this operator can only be either TRUE or FALSE. ‘Not equal to’ operator () is one of the six logical operators available in Microsoft Excel, which helps check if one value is not equal to another. It can also be combined with conditional functions to automate data calculations. For this reason, we need to place an “AND” link in the test parameter as well as another if-then request in the else parameter, because we want to make three results possible: 50% discount, 25% discount, and no discount.In Excel, the ‘not equal to’ operator checks if two values are not equal to each other. For this, we have two conditions: The last sale took place more than 30 days ago, and there are no more than 10 items in stock. In our example, it would be conceivable to give an even higher discount to goods that already have a reduced price if there are only a few of them left. If you want to differentiate between multiple conditions, though, a new IF function can occur instead of the “else_value,” which then performs another check. The one drawback of the IF function is that the test only knows two results: TRUE or FALSE. Of course, you can also include parameters for then and else. Otherwise the original value is retained. If this is the case, the “then_value” where you’ve placed a mathematical calculation occurs: a discount is given to the original value (in cell F2). IF checks whether the count is higher than 30. In this case, the DAYS function is part of the test: The current data is compared with the specified date (in F2) and the difference in the number of days is displayed.

=IF(A1>=100,”target achieved”,”target not achieved”) In practice, an Excel if-then statement can look like this: Otherwise, the else_value behaves in the same way as the then_value. If you don’t specify anything here, the function will return FALSE.
