Excel two columns of data comparison, find the first column difference second column of data (A-B)

Source: Internet
Author: User

Problems to be Solved:

Two columns of data, such as column A and column C, are used to find the data in column A that does not exist in Column C. For example, Xiao kangmin is the data in column A, but it does not exist in Column C, this is the result.

 

Figure 1

 

 

Method: Use the countif function.

1. in the new column, let column E be equal to the formula countif (C: C, A2). For example, if you drag this company to the entire column, column E will only show 1 or 0, 1 indicates that data in column A exists in Column C, and 0 indicates that data in column A exists in Column C.

 

 

2. f column, so that it is equal to If (E2 = 0, A2, ""), that is, when it is 0, it is the difference value. For example, see Figure 1 for the result.

 

 

 

 

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.