Excel比较两列值 [英] Excel comparing two column value
本文介绍了Excel比较两列值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在excel表中有如下数据:
我的问题是如何编写一个函数,以便列c中的值将检查值是否存在于列a或不,如果存在,则返回是否否。例如,如果我在列C中输入A2,那么excel将在列D中返回Yes。
解决方案
匹配
返回#N / A
如果找不到匹配,最好检查错误:
$因此,D2的公式将是
= IF(ISNA(MATCH(C2,A:A,0 )),否,是)
I've a data as below in excel sheet:
My question is how to write a function that so that a value in column c would check whether the value exist in column a or not, if exist then return Yes else no. Example if I enter A2 in column C, then the excel will return Yes in column D.
解决方案
MATCH
returns #N/A
if it fails to find a match, better to check for the error:
So formula for D2 would be
=IF(ISNA(MATCH(C2,A:A,0)),"No","Yes")
这篇关于Excel比较两列值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文