Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Comparison Functions in Excel - How to Use Comparison Functions and

Explore Comparison Functions in Excel - How to Use Comparison Functions and with a clear overview, practical guidance, key features with practical examples.

Table of Contents

This guide provides a practical overview of Comparison Functions in Excel - How to Use Comparison Functions and, including its main features, benefits, limitations, and important considerations.

Comparison Functions in Excel - How to Use Comparison Functions and screenshot

1. Use the Exact function to compare data

Description

The Exact function compares two text strings, returning True if the two strings match, and returning False if the two data strings are different. Note The Exact function is case-sensitive.

Syntax

EXACT (Text1, Text2)

Where: Text1, Text2 are two text strings to be compared, are two required parameters.

Attention

- The Exact function is case sensitive, but it does not distinguish format.

For example

Compare the corresponding data in rows between column 1 and column 2. In the cell to compare enter the formula: EXACT (D4, E4)

For example screenshot 2

Pressing Enter results returns a False value, which means the two values do not match because of the first and lowercase letters:

For example screenshot 3

Similarly copying the formula for the remaining values results:

For example screenshot 4

However, with this function, you cannot compare a value in column 1 with all the data in column 2 to find a duplicate. With this function you can only compare rows between themselves.

2. Use the Countif intermediate function to compare data

To overcome the situation in example 1, you can use the Countif function as an intermediary to compare the values in column 1 against the values in column 2.

Description of the Countif function

- Countif function counts the number of cells that meet certain conditions in the selected data range.

Syntax

COUNTIF (Range, Criteria)

Inside:

- Range: The data area containing the data to be counted, is a required parameter.

- Criteria: The condition used to count data, is a required parameter

For example

Compare data between 2 columns, highlight values not in column 1 but in column 2 and vice versa.

Step 1: Name the data columns:

Select the entire column 1 data into the address bar enter listname1 -> press Enter.

For example screenshot 5

Step 2: Similar to the name of column 2, then the names of 2 data columns are displayed:

For example screenshot 6

Step 3: Select the whole list 1 -> go to Home tab -> Conditional Formatting -> New Rule.

For example screenshot 7

Step 4: A dialog box appears, select Use a formula to determine which cells to format:

For example screenshot 8

Step 5: Enter the formula = COUNTIF (list2, C3) = 0 then click Format:

For example screenshot 9

Step 6: The Format Cells dialog box appears, click the Fill tab -> select the color marking the fruit is not in the list 2 -> click OK:

For example screenshot 10

Step 7: Next, click OK to close the resulting fruits dialog box in List 1, which is not in List 2, which is colored to distinguish:

For example screenshot 11

Step 8: Similar to the list 2 you do the same, but only differ from the formula: = COUNTIF (list2, F3) = 0 , it will color the cell with a value of 0 (not the same)

For example screenshot 12

As a result, you have compared 2 columns of data and can add notes for readers to easily visualize:

For example screenshot 13

Above is an instruction on how to use EXACT function , application COUNTIF function to compare data in Excel. Good luck!

FAQ

What should I know about Comparison Functions in Excel - How to Use Comparison Functions and?

Focus on the key features, requirements, limitations, and practical use cases explained in this guide.

How do I get the best results with Comparison Functions in Excel - How to Use Comparison Functions and?

Follow the recommended steps, use current software or information, confirm compatibility, and review settings before major changes.

Are there any risks or limitations?

Potential limitations depend on compatibility, data quality, cost, privacy, support, and how the product or method is used.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.