search
HomeTopicsexcelHow to determine whether two columns of data correspond one to one in Excel

Method: 1. Enter the formula "IF(A2=B2,"Same","Different")" in cell C2, and then press the Enter key. 2. Select two columns of data and use the shortcut key "Ctrl G"; select "Positioning Conditions" - "Row Content Difference Cells" in the pop-up dialog box, and click "OK".

How to determine whether two columns of data correspond one to one in Excel

The operating environment of this tutorial: Windows 7 system, Microsoft Office Excel 2010 version, Dell G3 computer.

At work, we often need to compare whether two columns of data or text are the same. If it is relatively simple and relatively small, we can check one by one with the naked eye, or if they are all numbers, we can use subtraction. To check, the ones equal to 0 are definitely the same, but for more complex and large content, naked eye recognition is obviously not possible.

Compare whether the contents of cells An and Bn are the same

For example, compare whether the data in columns one and two in the figure below are the same. Note that the comparison here is the same row. Data in different columns, that is, whether A2 and B2 are the same, whether A3 and B3 are the same... and so on, regardless of whether the contents of other cells in columns A2 and B except B2 are the same.

How to determine whether two columns of data correspond one to one in Excel

Method 1: A2=B2

Operation method: Enter the formula in cell C2: =IF(A2=B2,"Same"," Different"), then press the Enter key to complete. The translation of the IF function formula is that if A2=B2, the output result is "the same", otherwise it is "different".

It should be noted here that quotation marks are required for both similarity and difference, and they must be quotation marks under the English input method, otherwise the formula will be invalid.

The specific operation steps are as follows:

How to determine whether two columns of data correspond one to one in Excel

Method 2: Positioning conditions (Ctrl G)

Operation method: Select two columns of data—Use Shortcut key Ctrl G—select positioning conditions in the pop-up dialog box—select cells with differences in row content—click OK. EXCE will automatically select different cells, and you can fill these cells with color for easy viewing.

The specific operation steps are as follows:

How to determine whether two columns of data correspond one to one in Excel

Method three: Ctrl

Operation method: Select two columns of data—use the shortcut key Ctrl, EXCE Different cells will be automatically selected, and these cells can be filled with color for easy viewing.

The specific operation steps are as follows:

How to determine whether two columns of data correspond one to one in Excel

It should be noted that the above three methods have no problem when comparing text and numerical values, but there is a The problem is that they do not distinguish between upper and lower case letters when comparing. Therefore, if the two columns of data being compared contain English letters, deviations will occur using the above three methods.

For example, the following situation:

How to determine whether two columns of data correspond one to one in Excel

The method introduced below can avoid this situation.

Method 4: EXACT

Operation method: Enter the formula in cell C2: =EXACT(A2,B2), and then press the Enter key to complete. If the output result is TRUE, then Same, FALSE means different, and then filter out FALSE to find the different ones.

The specific steps are as follows:

How to determine whether two columns of data correspond one to one in Excel

Related learning recommendations: excel tutorial

The above is the detailed content of How to determine whether two columns of data correspond one to one in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
一文教会你Excel折叠表格分类汇总功能一文教会你Excel折叠表格分类汇总功能May 12, 2022 am 11:58 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于折叠表格的相关问题,就是分类汇总的功能,这样查看数据会非常的方便,下面一起来看一下,希望对大家有帮助。

实用Excel技巧分享:计算年数差、月数差、周数差实用Excel技巧分享:计算年数差、月数差、周数差Apr 22, 2022 am 09:56 AM

在之前的文章《实用Excel技巧分享:利用 数据透视表 来汇总业绩》中,我们学习了下Excel数据透视表,了解了利用数据透视表来汇总业绩的方法。而今天我们来聊聊怎么计算时间差(年数差、月数差、周数差),希望对大家有所帮助!

实例总结Excel中AGGREGATE函数的八个用法实例总结Excel中AGGREGATE函数的八个用法May 17, 2022 am 11:37 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于AGGREGATE函数的相关内容,该函数用法与SUBTOTAL函数类似,但在功能上比SUBTOTAL函数更加强大,下面一起来看一下,希望对大家有帮助。

Word与Excel联动:表格借用Word进行分栏打印!Word与Excel联动:表格借用Word进行分栏打印!May 07, 2022 am 10:28 AM

在之前的文章《实用Word技巧分享:聊聊你没用过的“行号”功能》中,我们了解了Word中你肯定没用过的"行号”功能。今天继续实用Word技巧分享,看看Excel表格怎么借用Word进行分栏打印,快来收藏使用吧!

实例详解利用Excel制作倒计时牌实例详解利用Excel制作倒计时牌May 16, 2022 am 11:53 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于zenmm制作倒计时牌的相关内容,使用Excel中的日期函数结合按指定时间刷新的VBA代码,即可制作出倒计时牌,下面一起来看一下,希望对大家有帮助。

实用Excel技巧分享:合并单元格后实现筛选功能实用Excel技巧分享:合并单元格后实现筛选功能May 11, 2022 am 10:22 AM

在之前的文章《实用Excel技巧分享:原来“定位功能”这么有用!》中,我们了解了定位功能的妙用。而今天我们聊聊合并后的单元格如何实现筛选功能,分享一种复制粘贴和方法解决这个问题,另外还会给大家分享一种合并单元格的不错的替代方式。

Excel怎么查找总和为某个值的组合Excel怎么查找总和为某个值的组合May 18, 2022 am 11:25 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于如何使用函数寻找总和为某个值的组合的问题,下面一起来看一下,希望对大家有帮助。

图文详解Excel中XLOOKUP函数典型用法整理图文详解Excel中XLOOKUP函数典型用法整理Apr 21, 2022 am 11:46 AM

本篇文章给大家带来了关于Excel的相关知识,其中主要介绍了关于XLOOKUP函数的相关知识,包括了常规查询、逆向查询、返回多列、自动除错以及近似查找等内容,下面一起来看一下,希望对大家有帮助。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment