简体   繁体   English

Excel中区分大小写的IF公式

[英]Case sensitive IF formula in Excel

I have an excel formula that dells me if I have a duplicate record. 我有一个Excel公式,如果我有重复的记录,该公式会使我失望。

=IF(Cell1=Cell2,"Duplicate","Not")

My Problem is that i need the operation to be case aware 我的问题是我需要对操作进行区分大小写

For Example, My code would produce "Duplicate" for: 例如,我的代码将为以下内容产生“重复”:

Bird = bird
deKalb=Dekalb
aBcDeFg=ABCDEFG

I want it to return "Not" 我希望它返回“不”

you want exact(X, x) = (false) 您想要精确的(X,x)=(false)

"EXACT is case-sensitive but ignores formatting differences." “ EXACT区分大小写,但忽略格式差异。”

http://office.microsoft.com/en-us/excel-help/check-if-a-cell-contains-text-case-sensitive-HP010079177.aspx http://office.microsoft.com/zh-cn/excel-help/check-if-a-cell-contains-text-case-sensitive-HP010079177.aspx

so: 所以:

if(exact(cell1, cell2), "dup", "not")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM