Table of Contents
How to Compare Data on 2 Excel Columns: Countif Excel Function covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.
- How to combine Sumif and Vlookup functions in Excel
- How to automatically display names when entering code in Excel
- How to use Vlookup function in Excel
Instructions for Using Countif Excel Function
For example, we have a list of import items on Excel as below.

Step 1:
First, black out the data in column 1 (Summarize 1), remove the title and place your cursor in the Name Box above to write any unsigned name, write as shown and press Enter.

Step 2:
Continue to do the same with column 2 (Summary 2).

Step 3:
In the column between the two columns of data, click in the empty box above and then enter the formula = COUNTIF (danhsach2, A5) and press Enter. We will begin to compare the data of the list column1 with the name column column2, starting from cell A5 of list1.
Note that depending on the Excel version, we use the mark; or, in the formula. If you report an error when entering, please change it again.

Step 4:
The result will be 1 as shown below. That means there will be 1 Raw Fabric data that matches the column 2.

Scroll down below we will get the complete result, with the comparison of the data in column 1 with column 2. The number 1 will be the same value, such as the Fabric in column 1 and column 2. The number 0 is The value does not match, only Lace fabric in column 1 is not available in column 2.

Step 5:
Next click on the Name box and then click on the triangle icon and select list1.

Click on the Conditional Formatting item and then select New Rule. In the drop down list.

Step 6:
Display the new New Format Rule dialog box, click Use a formula to determine which cells to format.

In the box below we enter the formula = COUNTIF (danhsach2, A5) = 0. This means that you will find cells with a value of 0 in the list 1. Continue clicking the Format button.

In the Format Cells dialog box, click the Fill tab and select the color to identify, click OK.

In the Preview section we will see the highlighted text you selected, click OK.

The results of the values ??in column 1 not found in column 2 will be marked as shown.

Step 7:
With the second list, users also click on the Name box to select list 2. Then click on Conditional Formatting and select New Rule.
Next, enter the formula = COUNTIF (list1, C5) = 0 to find the value 0 in the second column. Select the color and click OK.

The result will be as shown below. The different data on both tables will be colored to make it easier for statistics and inventory.

So with COUNTIF function in Excel we will know the number of data is the same when comparing between 2 columns. Data that does not match will be marked in the document.
- 2 ways to separate column Full and Name in Excel
- How to insert watermark, logo sink into Excel
- Instructions for separating column content in Excel
I wish you all success!
FAQ
How does COUNTIF Excel function work?
How to Compare Data on 2 Excel Columns: Countif Excel Function covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.
What should you prepare before using this method?
How to combine Sumif and Vlookup functions in Excel How to automatically display names when entering code in Excel How to use Vlookup function in Excel Instructions for Using Countif Excel Function For example, we have a list of import items on Excel as below.
What should you do if the process does not work as expected?
Step 1: First, black out the data in column 1 (Summarize 1), remove the title and place your cursor in the Name Box above to write any unsigned name, write as shown and press Enter.
Reader Comments 0
Sign in with email or Google to join the discussion.