您现在的位置: 首页 > 动态 > 文章正文动态
excel两列数据找相同(Excel中如何快速查找两列中相同的数据)
发布时间:2022-10-21 11:46 点击:次
【本文示例文件获取方法见文末】
技巧君分别介绍条件格式法和函数公式法两种方法来快速查找两列中的相同的数据
视频讲解更清晰哦
{!-- PGC_VIDEO:{"thumb_fingerprint": 16468145898969992846, "vid": "0efbc645008342f7903311b76eac1690", "vu": "0efbc645008342f7903311b76eac1690", "duration": 309, "thumb_height": 360, "thumb_neardup_id": -8599364396602270468, "neardup_id": 776505731739282236, "video_size": {"high": {"duration": 309.24, "h": 480, "subjective_score": 0, "w": 854, "file_size": 5587620}, "ultra": {"duration": 309.24, "h": 720, "subjective_score": 0, "w": 1280, "file_size": 8005522}, "normal": {"duration": 309.24, "h": 360, "subjective_score": 0, "w": 640, "file_size": 4667410}}, "vname": "u4e24u5217u6570u636eu5febu901fu627eu4e0du540c.mp4", "hash_id": 776505731739282236, "status": 0, "media_id": 1589658441132035, "thumb_width": 640, "external_covers": [{"mimetype": "webp", "source": "dynpost", "thumb_height": 360, "thumb_url": "7d1f001476c8b730fb7b", "thumb_width": 640}], "item_id": 6547651779931144712, "user_id": 86183836665, "thumb_url": "pgc-image/152449372269612e8da991b", "md5": "4b3467cde027e2bbf11cc4831f6c48eb", "vposter": "https://p3-sign.toutiaoimg.com/pgc-image/152449372269612e8da991b~noop.image?x-expires=1981528242&x-signature=MBtNJMpH30QvvsbRdawHLBez2E0%3D", "src_thumb_uri": "pgc-image/152449372269612e8da991b", "sp": "toutiao", "group_id": 6547651779931144712} --}
条件格式法
利用条件格式,只需2步就可以快速查找两列中相同的数据
第一步:选中两列数据
第二步:条件格式-突出显示单元格规则-重复值-[选择格式]
我们把这个问题延伸一下,如果我们要查找两列数据中的不同的数据该怎么办呢?
其实操作步骤差不多,只是将条件格式设置为唯一值:
条件格式-突出显示单元格规则-其他规则-仅对唯一值设置格式-[选择格式]
函数公式法
采用VLOOKUP函数来查找两列数据中的异同,能查找到的就是相同的数据,返回错误值的就是不同的数据:
公式:=VLOOKUP(E5,$C$5:$C$23,1,0)
VLOOKUP函数基础用法:
功能:根据首列的值,返回指定范围内对应序列对应的值。
语法:VLOOKUP(找什么,在哪找,带谁回来,[一模一样还是差不多就行])
第四个参数可以省略,若省略、1、TRUE表示模糊匹配,FALSE、0表示精确匹配
VLOOKUP函数基础应用视频讲解:
{!-- PGC_VIDEO:{"thumb_fingerprint": 10699255228390247950, "status": 0, "thumb_height": 360, "thumb_url": "pgc-image/1522514737247d7762a7238", "thumb_neardup_id": -376956613394994434, "neardup_id": 9109387493516626341, "vid": "771f9f2bbfa94826b50b6cc399f47826", "user_id": 86183836665, "sp": "toutiao", "vposter": "https://p3-sign.toutiaoimg.com/pgc-image/1522514737247d7762a7238~noop.image?x-expires=1981528242&x-signature=wdIjFs7lM04eub4w8sjB42tsqDs%3D", "external_covers": [{"mimetype": "webp", "source": "dynpost", "thumb_height": 360, "thumb_url": "74db00071bcb199c1d7f", "thumb_width": 640}], "thumb_width": 640, "item_id": 6539151463409517060, "vu": "771f9f2bbfa94826b50b6cc399f47826", "duration": 320, "media_id": 1589658441132035, "group_id": 6539151463409517060, "hash_id": 9109387493516626341, "vname": "VLOOKUP.mp4", "md5": "0fc8415c8ed2bd085b72f6282b424e84", "video_size": {"high": {"duration": 320.8, "h": 480, "subjective_score": 0, "w": 854, "file_size": 5383540}, "ultra": {"duration": 320.8, "h": 720, "subjective_score": 0, "w": 1280, "file_size": 7914423}, "normal": {"duration": 320.8, "h": 360, "subjective_score": 0, "w": 640, "file_size": 4499844}}} --}
示例文件获取
点击右上角红色按钮,关注EXCEL精选技巧,然后私信发送【比较两列数据】即可获取