×

Operators in Excel

In MS Excel, operators are used to defining the operation you want to perform on the used elements or between variables. There are four types of operators: Arithmetic operators, Comparison operators, Text concatenation operators, and Reference operators. Comparison operators are most used after arithmetic operators while working in MS excel.

Let’s dive deep into the types of the comparison operator.

1. Equal sign

The "=" sign checks whether the two values are equal. Let’s consider the below-stated example.

Operators in Excel

STEP 1: Introduce two values in two cells

You have two values, namely a & b. you have to store that in a cell (also known as) memory space. Allocate them a cell name, namely A1 & B1.

STEP 2: Select a cell

Now you have to decide the operation to be performed and fix a cell to display the result. Let’s fix it as C1.

STEP 3: Enter the formula

  • Enter the formula as =A1=B1. Every operation always starts with the '=' sign.
  • Now, if the value compared is equal to each other, the result will be displayed as "TRUE", and if they are different, the result will be displayed as "FALSE".

2. IF FUNCTION

 Not only numerical values but both the text and numerical values can also be compared and checked for results.

Following is the illustration of the IF functions.

Operators in Excel
  • The above image shows that both the numerical value and the textual content can be checked in "IF “conditions.
  • The general format for the if the condition is "=IF(VALUE1=VALUE2, "Yes", "No")
  •  On the 3rd value, we took both the text and a numerical value such as "ABC" and 32, respectively.
  • In the 4th column, we took just the textual content as "red" and "red", which, when compared, is equal and gives the result YES.

3. LESS THAN OPERATOR

When used, the less than the operator gives the value "TRUE" if the first value is lesser than the second value.

Let’s look into the below picture to understand better.

Operators in Excel
  • As the value in cell A1 is lesser than B1, the result is TRUE or else it will be FALSE.
  • The complex comparisons can be made by AND operator. If in the given two values, you have to check both the value with a variable value, i.e. (your value that could be changed) AND operator is used.
  • The syntax for AND operator is =AND (value1<40, value2<30). Here the variables are 40 and 30, respectively. If both the conditions satisfy the result will be "TRUE", or else it will be "FALSE."
Operators in Excel
  • On the first Colum, the values are 67 and 23, respectively. Even though the condition (23 <40) is satisfied, the result would be FALSE because the other state failed. Both the conditions need to be TRUE for an AND operator.

4. GREATER THAN OPERATOR

This operator gives the value “TRUE “if the first value exceeds the second value.

Operators in Excel

In the above table, column two has 12 and 23, respectively. The outcome is FALSE because the condition =A2>B2 is not satisfied.

5. OR FUNCTION

The OR condition gives the value TRUE even if one condition is satisfied, and the result will be false if both conditions fail. The illustrated OR FUNCTION is given below.

Operators in Excel

In column 3rd, the values 12 and 13 both fail the condition "=OR (A3>20, B3>20), So the result is FALSE.

6. GREATER THAN OR EQUAL TO

The operator ">=" give output as TRUE if the first value is greater or equal to the second value. And otherwise, the work will be FALSE.

Operators in Excel

In the 3rd column, both the values are the same hence TRUE, whereas, in the 2nd column, the condition fails to give the output as FALSE.

7. COUNTIF FUNCTION

The countif function counts the number of cells on the given condition. Let’s take a condition of =COUNTIF (B1:B7,”>=5”)

On the given above condition, the cells are taken from B1 TO B7, and the condition is checked in between those cells.

Operators in Excel

The result is displayed in the B 8th cell as 3. The condition is satisfied by cells B1 and B2 B3, respectively.

8. LESS THAN OR EQUAL TO

  The less than or equal to function gives the value TRUE if the first value is less than or equal to the second value. The syntax used is “<=”.

Operators in Excel

Since the value A1 is lesser than B1, the result is TRUE.

SUMIF function in less than or equal to is illustrated below

Operators in Excel

The sum of the column from A1 TO A5, excluding A5, is 62.

9. NOT EQUAL TO

The not equal to operator gives the value TRUE if both the values are not similar.

Operators in Excel

The two values shouldn’t be equal. Hence the 2nd column has the same values the output is FALSE.

Using of IF function with not equal to operator

Operators in Excel

On the above workout the syntax used is =IF (A1<>B1,"1","2"). If the condition satisfies, it will print the first value "1", or else it will print “2”.

CONCLUSION

These are the various comparison operators in existence. Even though it appears complex when a function and operator are combined, understanding the essential functions of AND OR IF is sufficient to perform comparison operations. It is widely by large organization for calculation.


Related Topics

How to make use of the Excel Autofit in Excel

In Microsoft Excel, Autofit can be used to adjust and then fix the column and the respective row height to till the maximum limit until and unless it has the...

7 minutes read.

Excel MOD() Function

Excel MOD() Function The MOD() function in excel returns the remainder after a number is divided by a divisor Syntax MOD(number, divisor) Parameter Number(required)- This parameter represents the number which you want to divide. Divisor(required)- This parameter represents...

1 minute read.

Blank cells in Excel

Microsoft Excel is spreadsheet software designed by Microsoft in 1987. It is used to perform arithmetic calculations in various fields like statistical, engineering and financial. Many times, we export data...

4 minutes read.

How to import Microsoft Access data into the Microsoft Excel

Microsoft Access is primarily considered vital and the primary tool for individuals who want to create and manage the respective type of Database efficiently. This tutorial will discuss how to import...

5 minutes read.

Row Difference in Excel

Microsoft Excel is used for multiple purposes in various organizations. It is a combination of numeric values, alphabets etc. To calculate data, the user organizes the data according to their...

5 minutes read.

Excel DAYS() Function

The DAYS() function in excel returns the number of days that exist between two dates. Syntax DAYS (end_date, start_date) Parameter end_date (required)- This parameter represents the end date. start_date (required)- This parameter represents the start date. Category Date...

1 minute read.

How to Highlight Duplicates Words in the Microsoft Excel?

We can easily highlight the values that are duplicated in the selected dataset, whether it could be a column or a row from the particular table, with the help of...

6 minutes read.

What do you understand by Combination Chart in Microsoft Excel?

In Microsoft Excel, an individual has the Combo Chart option available, which can be effectively clubbed into two charts types, which are Column Clusters Chart, Line Chart to get the...

7 minutes read.

How to print titles in Excel

In Microsoft Excel, if a particular task is completed in the worksheet, the user wants to print the worksheet. While performing this job, the row and column headings will display...

3 minutes read.

Unique Values in Excel

The Unique function in Excel filters the list of unique values from the given data like range or array. The data presented is either number, text, date, time etc. This...

3 minutes read.

Decimals in Excel

Microsoft Excel is widely used for calculation purposes for various applications. The calculation consists of numbers which include whole numbers, decimals, integers etc. To perform quick calculations, the numbers should...

5 minutes read.

Absolute Value in Excel

What is Absolute Value in Excel? Microsoft Excel worksheet is a combination of numeric values and alphabets. The numeric value is either a positive value or a negative value. Sometimes the...

5 minutes read.

Excel MID() Function

The MID() function in excel is used to return a specific number of characters from a text string starting at the position you specify. One can change the start of the string, thus...

1 minute read.

Histogram in Excel

What is Histogram in Excel? “ A histogram is a graphical tool familiar for summarizing discrete or continuous data, where the data are measured on an interval scale.”  Karl Pearson described this...

5 minutes read.

Conditional Formatting in Excel

Conditional Formatting What are the conditional formats? Conditional Formatting is a tool that allows the user to format cells or range of cells based on the selected condition or given criteria. The formatting will...

4 minutes read.

Text to columns in Excel

Microsoft Excel is widely used in startups to large companies. The data are entered in required rows and columns, and sometimes the data entered in one cell needs to enter...

4 minutes read.

What if Analysis Data Table in Excel

What is What-If Analysis? Suppose you have a cell A15 which is formula driven i.e. has a formula and the formula is based on values in different cells (A1, A2, A3, A4), what-if...

4 minutes read.

Shortcut Keys in Excel

Shortcut Keys in Excel Shortcut keys in Excel are used to simplify the work and save time by pressing a few keys.  These keys are used for navigating and working with Excel spreadsheets quickly and easily. Basic Selection:...

9 minutes read.

Excel INT() Function

Excel INT() Function The INT() function in excel is used to round a number down to the nearest integer. It removes decimal points from any number value & return rounded down number value in...

1 minute read.

Calculating Age in Excel

Microsoft Excel provides separate functions for various mathematical operations. Nowadays, Microsoft Excel is widely used by large and various organizations. Using formulas one can calculate the statistical functions quickly and...

2 minutes read.