Comparison functions in Excel - How to use comparison functions and examples using comparison functions
With a large amount of data, you want to check for duplicates by checking normally, it is really hard. In this article, I introduce you to the Comparison Functions in Excel, with practical examples to help you easily visualize.
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)
Pressing Enter results returns a False value, which means the two values do not match because of the first and lowercase letters:
Similarly copying the formula for the remaining values results:
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.
Step 2: Similar to the name of column 2, then the names of 2 data columns are displayed:
Step 3: Select the whole list 1 -> go to Home tab -> Conditional Formatting -> New Rule .
Step 4: A dialog box appears, select Use a formula to determine which cells to format:
Step 5: Enter the formula = COUNTIF (list2, C3) = 0 then click Format:
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:
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:
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)
As a result, you have compared 2 columns of data and can add notes for readers to easily visualize:
Above is an instruction on how to use EXACT function , application COUNTIF function to compare data in Excel. Good luck!
You should read it
- How to compare texts online
- Complete financial functions in Excel you should know
- 5 websites compare the speed and CPU performance from the most accurate Benchmark point
- Compare performance of iPhone 4S and iPhone 4
- Recursive function in Python
- How to fix the SUM function doesn't add up in Excel
- Matrix functions in Excel
- Exponential functions in Excel - Usage and examples
May be interested
- How to align in Word - Instructions on how to align in Word 2007, 2010, 2013, 2016how to align in word - instructions on how to align in word 2007, 2010, 2013, 2016. for each document there are general provisions on how and how to present text. the ministry of the interior has issued a circular on guidelines on techniques and techniques for presenting administrative documents no.
- Delete pages in Word - Instructions on how to delete pages in Worddelete pages in word - instructions on how to delete pages in word. you copy the document file on a web page, there are some extra pages you need to delete, or simply copying from the web will have some white pages exist in your data file.
- How to make a table of contents in Word 2010how to make a table of contents in word 2010. in graduation thesis, thesis ... indispensable for him. table of contents - helps people to grasp and move quickly to the position according to the number of pages in no time. the following article guides you how to make a table of contents in word 20
- How to create a frame in Word - Instructions on how to create a frame in Word 2007, 2010, 2013, 2016how to create frames in word - instructions on how to create frames in word 2007, 2010, 2013, 2016. creating frames in word is how to make your text more beautiful and more scientific. the following article introduces you in detail how to create frames in word
- How to create tables and tables in Word - Instructions on how to create tables and tables in Word 2007, 2010, 2013, 2016how to create tables and tables in word - instructions on how to create tables and tables in word 2007, 2010, 2013, 2016. tables help your data presented scientifically easier to see and understand than using text simple version to show off. in this article help the b
- How to split columns in Word - Instructions on dividing columns in Word 2007, 2010, 2013, 2016how to divide a column in word - instructions on how to divide a column in word 2007, 2010, 2013, 2016. in order for your text content to be presented scientifically beautifully and visually, dividing columns in the text is also a layout. popular version. the article below helps these