EXCEL中用什么函数比较两个单元格的字符是否一致,计大小写不计空格?

2025-01-03 23:02:27
推荐回答(3个)
回答1:

不计空格首先将单元格中的空格全去掉,再用if函数判断
if(SUBSTITUTE(单元格A," ","")=SUBSTITUTE(单元格B," ",""),"一致","不一致")

回答2:

=EXACT(SUBSTITUTE(A1," ",""),SUBSTITUTE(A2," ",""))
a1,a2为比较的单元格

回答3:

=if(a1=b1,"一致","不一致")