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



