

The point is that Excel stores dates as numbers beginning with, which is stored as 1. However, if you try either =A1= or =A1="" you will get FALSE as the result. For example, if the cells A1 and A2 contain the date "", the formula =A1=A2 will return TRUE exactly as it should.

You might be surprised to know that the Equal to logical operator cannot compare dates as easily as numbers. Returns TRUE if a number in cell A1 is equal to the quotient of the division of B1 by 2, FALSE otherwise.Įxample 1. Returns TRUE if cells A1 contain the Boolean value TRUE, otherwise it returns FALSE. Returns TRUE if cells A1 contain the word "oranges", FALSE otherwise. Returns TRUE if the values in cells A1 and B1 are the same, FALSE otherwise. The Equal to logical operator (=) can be used to compare all data types - numbers, dates, text values, Booleans, as well as the results returned by other Excel formulas. Using "Equal to" logical operator in Excel But in fact, each logical operator has its own specificities and knowing them can help you harness the real power of Excel formulas. It may seem that the above table covers it all and there's nothing more to talk about. The screenshot below demonstrates the results returned by Equal to, Not equal to, Greater than and Less than logical operators: The formula returns TRUE if a value in cell A1 is less than or equal to the values in cell B1 FALSE otherwise. The formula returns TRUE if a value in cell A1 is greater than or equal to the values in cell B1 FALSE otherwise. The formula returns TRUE if a value in cell A1 is greater than a value in cell B1 otherwise it returns FALSE. The formula returns TRUE if a value in cell A1 is not equal to the value in cell B1 FALSE otherwise. The formula returns TRUE if a value in cell A1 is equal to the values in cell B1 FALSE otherwise. The following table explains what each of them does and illustrates the theory with formula examples.

Six logical operators are available in Excel. Logical operators are sometimes called Boolean operators because the result of the comparison in any given case can only be either TRUE or FALSE.
