This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /MS Excel

How to Match Two Columns Microsoft Excel

Updated on:
May 12, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to compare and highlight matching values across two Excel columns.

Quick summary

Matching two columns in Microsoft Excel using Conditional Formatting and the COUNTIF formula lets you instantly highlight duplicate or matching values across datasets. This method visually flags matching cells with a color fill, making data comparison fast and error-free.


Steps

  1. Select the column you want to compare against the other dataset.
  2. Navigate to Home, then open Conditional Formatting and click New Rule.
  3. Choose the rule type "Use a formula to determine which cells to format."
  4. Enter the COUNTIF formula =COUNTIF($A:$A, C2)>0, adjusting the column references to match your data.
  5. Set your desired format — for example, change the fill color to blue — then click OK.
  6. Review the results: all matching cells will now be highlighted in blue for easy identification.

📌 Why this matters

Comparing two columns in Microsoft Excel is one of the most common data validation tasks for analysts, administrators, and business users. Using Conditional Formatting with a COUNTIF formula allows users to instantly identify matching or duplicate values across large datasets without manual lookup. This approach saves significant time during data audits, deduplication workflows, and cross-referencing tasks. Mastering this Excel technique reduces errors and improves data accuracy across reporting, reconciliation, and data cleaning projects.
Your product deserves an interactive demo
Start free
Similar Articles
MS Excel

How to Organize Dates by Week in Excel

Madhav Bhandari
Director of Marketing @ Storylane
MS Excel

How to Make Cells Fit Text Microsoft Excel

Madhav Bhandari
Director of Marketing @ Storylane
MS Excel

How to Make a Bar Graph in Microsoft Excel

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it