EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips Matching Columns in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (36+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

Matching Columns in Excel

By Madhuri ThakurMadhuri Thakur

matching columns in excel

Matching Columns in Excel (Table of Contents)

  • Introduction to Matching Columns in Excel
  • How to Match Columns in Excel?

Introduction to Matching Columns in Excel

Many a time in Excel, we have to compare two columns. There are different techniques for that. We can use functions like IF, COUNTIFS, Match, and conditional formatting. We can find the matching data in both the columns as well as the different ones.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

There are various examples of matching columns with different functions. Using any of them as per the requirement will give you matching data in two or more columns.

Comparing Two Columns Row by Row

This is one of the basic comparisons of data in two columns. In this, the data is compared row by row to find the matching and difference in data.

How to Match Columns in Excel?

Matching Columns in Excel is very simple and easy. Let’s understand how to use the Matching Columns in Excel with some examples.

You can download this Matching Columns Excel Template here – Matching Columns Excel Template

Example #1 – Comparing Cells in Two Columns

Let’s compare cells in two columns that are in the same row. Below we have a table with two columns that have some data, which can be the same or different. We can find out the similarity and the differences in data as shown below.

matching column in excel example 1-1

Now we will type =A2=B2 in cell C2.

matching column in excel example 1-2

After using the formula result shown below in cell C2.

matching column in excel example 1-3

And then drag it downwards to get the result.

matching column 1

Matching cells are giving “True” and different ones “False”.

Example #2 – Comparing Two Cells in the Same Row

Let’s compare two cells in the same row using the IF function.

matching column in excel example 2-1

Using our above data table, we can write the IF formula in cell C2.

matching column in excel example 2-2

After using the IF Formula, the result shown below.

matching column in excel example 2-4

Drag the same formula in cell C2 to cell C11.

matching column 2

The matching cells yielded a result as a match, and the unmatched are indicated as blank.

matching column in excel example 2-5

Another way to indicate cells can be done in the below manner. We will write the below formula in cell C2.

mismatch formula

This will indicate the matching cells as “Match”, and different cells as “Mismatch”.

matching column 3

We can also compare case sensitive data in two columns in the same row.

Example #3 – Finding the Case Sensitive Match

To go for a case sensitive match, we use the EXACT function. We have sample data to find case sensitive match.

matching example 3-1

In cell C2, we will write the formula as below.

matching example 3-2

After using the IF, the formula result is shown below.

matching example 3-3

Drag the same formula in cell C2 to cell C6.

matching column 4

After writing the formula in cell c2, drag it downwards to see the case sensitive match of cells in the same row.

Highlighting Row Difference in Two Columns

To highlight the cell in the second column that is different from the first in the below data table.

matching example 4-1

Select both the columns, then go to the “Find & Select” tab and then go to “Go to Special..”

matching example 4-2

Now select ‘Row differences.’

matching example 4-3

Press Enter Key. You will now see the unmatched cells highlighted.

matching example 4-4

Example #4 – Comparing More than 2 Different Columns

In this example, let’s compare more than 2 different columns for the match in the same row. In the below data table, we have to match all three columns in the same row and show the result in column D.

matching example 5-1

We will write the below formula in cell D3.

matching example 5-2

After using the formula, the result is shown below.

matching example 5-3

Drag the same formula in other cells.

match example 4

We can see that column A, B and C have the same data in row 3, 4,6,7 and 8, and so the result is “match” while the data is different in other rows.

Example #5 – Finding Matching Cells in the Same Row

Now we will find out the matching cells in the same row but only in 2 columns using the OR function.

matching example 6-1

Taking our previous data table, we will write the below formula using the OR function in cell D2.

matching example 6-2

Press Enter, then drag it downwards.

matching example 6-3

We can see that any two columns that have the same data are a match.

Example #6 – Compare Two Columns to Find Matches and Differences

We have data in two columns, and we want to find out all the text, strings, or numbers in column A but not in column B.

This way, we will compare the two columns and find out the matching value and the different ones. Below we have a sample data in which we will compare column A and column B to find the matching data.

matching example 7-1

To get the desired result, we will write this formula in cell C2.

 matching example 7-2

We will write the formula and press Enter, and then drag it downwards to see the result. In the below formula, we have used COUNTIF with IF. The COUNTIF formula searches A1, then A2, and so on in column B, and IF gives it a condition that if there will be 0, then it will return “No match”, and if the value returned by COUNTIF is 1, it will be a match.

matching example 7-3

In the above example, the COUNTIF function searched A1 in column B, then A2 in column B, then C1 in column B and so on till it finds the value in A, and so it returns “match”.

match example 7-4

We can also get the same result by using the Match function.

match example 7-5

Now drag it downwards.

match example 7-8

We get the same result with this formula as well.

Example #7 – Compare Two Columns and Highlight the Matches and Differences

We can compare and highlight the entries in column A that are found in Column B by using Conditional Formatting.

match examples 8-1

Select the column in which you want to highlight the cells. Then click Conditional Formatting Tab and then “use a formula to determine which cells to format”.

match examples 8-2

Click on OK.

match examples 8-3

Cells that are matching in both the columns are highlighted. In the same way, we can highlight the cells that are not matching.

Select the column in which you want the cells that are different from being highlighted.

match examples 8-4

Now click on OK.

match examples 8-5

All the cells of column 1 that are not found in column 2 are highlighted.

The above examples are some of the ways to compare two columns. Going through the above examples, we can find out the matches and differences in two or more columns.

Things to Remember About Matching Columns in Excel

  • We can compare the data in two or more columns that are in the same row.
  • Both the columns should be of the same size.
  • If any of the cells are left blank, the result will be blank.
  • This is a case sensitive thing. The same data in different cases will lead to an unmatched result. To compare case sensitive data and get a correct result use the exact function.

Recommended Articles

This is a guide to Matching Columns in Excel. Here we discuss How to use Matching Columns in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Compare Two Columns in Excel for Matches
  2. Excel Match Function
  3. COLUMNS Formula in Excel
  4. Excel Match Multiple Criteria
Popular Course in this category
MS Excel Training Bundle
  13 Online Courses |  100+ Hours |  Verifiable Certificates |  Lifetime Validity
4.5
Price

View Course

Related Courses

Excel Training (23 Courses, 9+ Projects)4.9
Excel Data Analysis Training (17 Courses, 8+ Projects)4.8
Excel for Finance Training (18 Courses, 7+ Projects)4.7
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download Matching Columns Excel Template

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Matching Columns Excel Template

EDUCBA

डाउनलोड Matching Columns Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more