Excel Functions Tutorials
- Excel Tips
- Excel vs Access
- Excel Rows vs Columns
- Apple Numbers vs Excel
- 3D Reference in Excel
- Absolute Reference in Excel
- Mixed References in Excel
- Excel Reference to Another Sheet
- Array Formulas in Excel
- Arrays in Excel VBA
- Auto Numbering in Excel
- AutoFit in Excel
- AutoCorrect in Excel
- AutoSave in Excel
- AutoRecover in Excel
- Bullet Points in Excel
- Break Links in Excel
- Barcode in Excel
- Change Case in Excel
- CAGR Formula in Excel
- Calculate Age in Excel
- Calculate Percentage in Excel Formula
- Cell Reference in Excel
- Checklist in Excel
- Circular Reference in Excel
- Column Sort in Excel
- Column Lock in Excel
- Move Columns in Excel
- Custom List in Excel
- Consolidate in Excel
- Combine Cells in Excel
- Compare Two Columns in Excel
- Compare and Match Columns in Excel
- Compound Interest Formula in Excel
- Convert Columns to Rows in Excel
- Convert Date to Text in Excel
- Convert Numbers to Text in Excel
- Convert Text to Numbers in Excel
- Convert Excel to CSV
- Count Characters in Excel
- Count Rows in Excel
- Count Unique Values in Excel
- Countif not Blank in Excel
- Create Templates in Excel
- Family Tree in Excel Template
- Custom Number Format in Excel
- Delete Row Shortcut in Excel
- Divide in Excel Formula
- Drop Down List in Excel
- Dynamic Tables in Excel
- Dashboard in Excel
- KPI Dashboard in Excel
- Date to Text in Excel
- Date Format in Excel
- Database in Excel
- Delta Symbol in Excel
- $ Symbol in Excel
- Excel Column to Number
- Edit Drop-Down List in Excel
- Equations in Excel
- Exponents in Excel
- Excel Extensions
- Excel Translate
- Excel Not Responding
- Excel Find and Replace
- Find and Select in Excel
- Excel Subtraction Formula
- Excel Formula for Grade
- Excel as Calculator
- Excel Formula Not Working (Updating)
- Excel Table Styles & Formats
- Excel vs Google Sheets
- External Links in Excel
- Excel Alternate Row Color
- Excel Worksheet Tab
- Extract Number from String Excel
- Evaluate Formula in Excel
- Find Duplicates in Excel
- Finding Links in Excel
- Filter Shortcut in Excel
- Formatting in Excel
- Format Numbers to Millions & Thousands in Excel
- Format Phone Numbers in Excel
- Formula Errors in Excel
- Fractions in Excel
- Frequency Distribution in Excel
- Group in Excel
- Group Worksheets in Excel
- Group Columns in Excel
- Hide Formula in Excel
- Hiding a Column in Excel
- Highlight Every Other Row in Excel
- Highlight Duplicates in Excel
- How to Create a Formula in Excel?
- How to Create an Excel Spreadsheet?
- How to Add Text in Excel Formula?
- How to Create Dashboard in Excel?
- How to Copy Sheet in Excel?
- How to Delete Pivot Table?
- How to Calculate Percentage Increase in Excel?
- How to Multiply in Excel Formula?
- How to Unhide Columns in Excel?
- Insert Date in Excel
- Insert Calendar in Excel
- Import Data into Excel
- Insert Comment in Excel
- Insert Hyperlinks in Excel
- Insert Multiple Rows in Excel
- Insert Row Shortcut in Excel
- Insert New Worksheet in Excel
- Insert (Embed) an Object in Excel
- Insert Image in Excel Cell
- Insert Page Break in Excel
- Line Breaks in Excel
- Linear Interpolation in Excel
- Leading Zeros in Excel
- Last Day of the Month in Excel
- Logical Operators in Excel
- Lookup Table in Excel
- Mortgage Calculator in Excel
- Moving Average in Excel
- Not Equal to in Excel
- Numbering in Excel
- Name Manager in Excel
- Page Numbers in Excel
- Page Break in Excel
- Personal Budget Template in Excel
- Project Management Template in Excel
- Percentage Difference in Excel (Increase / Decrease)
- Pivot Table Calculated Field & Formula
- Pivot Table Sort
- Pivot Table From Multiple Sheets
- Print Comments in Excel
- Print Excel Gridlines
- Print in Excel
- Print Preview in Excel
- Print Area in Excel
- Print Titles in Excel
- Print Labels From Excel
- Project Timeline in Excel
- Protect Sheet in Excel
- Ratio in Excel Formula
- Random Numbers in Excel
- Randomize List in Excel
- Refresh Pivot Table in Excel
- Relative References in Excel
- Remove Blank Rows in Excel
- Remove Duplicates in Excel
- Remove Duplicates from Excel Column
- Remove Hyperlinks in Excel
- Remove Space in Excel
- Remove Leading Spaces in Excel
- Remove Watermark in Excel
- Row Limit in Excel
- Rows and Columns in Excel
- Rows to Columns in Excel
- Row Header in Excel
- Search in Excel
- Search For Text in Excel
- Share an Excel Workbook
- Shortcut to Merge Cells in Excel
- Show Formula in Excel
- Split Cells in Excel
- Separate Text in Excel
- Strikethrough in Excel
- Strikethrough Text in Excel
- Sum by Color in Excel
- Subscript in Excel
- Superscript in Excel
- Themes in Excel
- Timesheet Calculator in Excel
- Top 20 Keyboard Shortcuts in Excel
- Unmerge Cells in Excel
- Uppercase in Excel
- Word Count in Excel
- Word Cloud in Excel
- Watermark in Excel
- Weighted Average in Excel
- Wildcard in Excel
- Financial Functions in Excel (17+)
- Logical Functions in Excel (15+)
- TEXT Functions in Excel (29+)
- Lookup Reference in Excel (44+)
- Maths Functions in Excel (52+)
- Date and Time Function in Excel (22+)
- Statistical Function in Excel (50+)
- Information Functions in Excel (5+)
- Excel Charts (48+)
- Excel Tools (98+)
- VBA (162+)
Excel Compare Two Columns (Table of Contents)
- How to Compare Two Columns in Excel?
- Method #1 – Compare Using Simple Formulae
- Method #2 – Compare Using IF Formula
- Method #3 – Compare using EXACT Formula
- Method #4 – Using Conditional Formatting
How to Compare Two Columns in Excel?
How do you compare two columns in excel to find the deviation and differences in Excel? It is one of the most often used techniques in excel.
If you are drawing results it is very important to compare 2 columns in excel to see how these two columns differ from each other. It is almost an impossible task to scan through the entire data set and find the differences. Even if you rely on scanning through manually it won’t guarantee you 100% accuracy because of a human tendency to make mistakes.
Let us learn to Compare Two Columns in Excel with some examples.
Here we discuss the top 4 methods –
- Method #1 – Compare Using Simple Formulae
Method #2 – Compare Using IF Formula
Method #3 – Compare using EXACT Formula
Method #4 – Using Conditional Formatting
Method #1 – Compare Two Columns Data by Using Simple Formulae
We can compare 2 columns in excel by using one of the simple formulae. Assume you have two columns of data. The first column contains Log in Time and second column contains Log out Time.
From the above data, we need to compare who forgot to log out from their shift. If the Log in Time is equal to Log out Time then we can consider them as forgot to log out.
We can use a simple formula to do this task.
Step 1: Select the cell D2, then Open the equal sign and select the first cell as B2.
Step 2: Now again enter the equal sign after B2 and select the cell C2.
Step 3: Once you hit enter it will show either TRUE or FALSE. If the value in the cell B2 is equal to the value in the cell C2 it will show as TRUE or else it will show as FALSE.
Drag and drop the formula to remaining cells to get the results.
In the cells D5 and D9 we got the result as TRUE that means the value in the cell B5 is equal to C5.
Method #2 – Compare Two Columns Data in Excel by Using IF Formula and get the result as per our wish.
In the previous example, we got the results as TRUE or FALSE. But we need the results as Forgot to Punch out if the employee forgot to log out. We need the results as No Problem if the employee logs out.
We can get the result as per our wish by using IF function in excel.
Okay, now we got the results as we wanted. Let me break down the formula to understand it better.
=IF (B2=C2,”Forgot to Punch Out”, “No Problem”)
If condition tests whether the value in the cell B2 is equal to the value in the cell C2 if the result is TRUE it will return the result as “Forgot to Punch Out” and the result is FALSE it will return the result as “No Problem”.
Method #3 – Compare Two Columns in Excel with EXACT Formula
Take the same data for this example as well. I am going to apply an EXACT formula in excel to find the differences.
This formula also returns TRUE or FALSE as the result.
Note: The EXACT formula is case sensitive. Look at the below formula I have applied for text values.
In the cell C2, we got the result as FALSE even though the value in the cell A2 and B2 are same. Since there is upper case value in the cell B2 it will show the result as FALSE.
In the cell C3, we got the result as TRUE. Here the values in the cells A3 and B3 both are in the same case.
Method #4 – Compare Two Columns in Excel Using Conditional Formatting
In the previous examples, we have learned how to compare 2 columns in Excel and identify the same values.
In this example, I am going to explain to you how to highlight or compare 2 excel columns if there is duplicate data using Conditional Formatting
Take the same data from the above examples.
Step 1: Select the entire data and go to the Home tab > Conditional Formatting > New Rule.
Step 2: Once you click on New Rule it will open the below dialogue box. Select Use a formula to determine which cells to format.
Step 3: Apply the below formula is the formula section.
Step 4: Once the formula is applied click on Format > Go to Format. Select the color that you want to highlight and click on OK.
Step 5: It highlights the same matched values.
Okay, in this way we can compare 2 columns in excel and find the deviations.
Things to Remember
- There are several ways to compare 2 columns in excel. It depends on the data structure to apply which method is suitable.
- Try to identify the differences using IF condition. This would give the result as per our requirement.
- If you are using the EXACT formula you must keep in mind that it is a case-sensitive formula and highlight it as different if the data in the two cells are case sensitive.
- Method 1 is the easiest way to compare 2 column values in excel.
This has been a guide to compare Two Columns in Excel. Here we discuss top 4 methods to compare two columns in excel 1) Using Simple Formula, 2) IF formula, 3) Exact function and 4) Conditional Formatting along with practical examples and downloadable excel template. You may learn more about excel from the following articles –
- Excel Highlight Duplicates
- Freeze Columns Excel
- Group Columns Excel
- Examples of Pivot Table Sort
- Benefits of using the Drawing Tools in Excel
- Conditional Format in the Pivot Table
- Rows to Columns in Excel
- Conditional Formatting Based on another Cell Value
- Removing Duplicates in Excel
- Count Only Unique Values in Excel
- Split Panes in Excel
- Using Advanced Excel Filter