我正在使用以下公式:
=IFERROR(INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))," ")
这个公式运行得很好,除了对于空白单元格,它返回“0”。我希望空白单元格返回为空白。
具体来说,这就是我所拥有的
表 1(标题为“已清理的帖子”)
Name Email Age Gender Task #1
Andrew [email protected] /cdn-cgi/l/email-protection 18 1 80
Jason [email protected] /cdn-cgi/l/email-protection 20 1 95
Judy [email protected] /cdn-cgi/l/email-protection 18 2 __
Jack [email protected] /cdn-cgi/l/email-protection 24 1 65
表 2(标题为“组合”)- 我得到的内容
Email Task#1
[email protected] /cdn-cgi/l/email-protection 80
[email protected] /cdn-cgi/l/email-protection 95
[email protected] /cdn-cgi/l/email-protection 0
[email protected] /cdn-cgi/l/email-protection 65
表 2(标题为“组合”)- 我想要什么
Email Task#1
[email protected] /cdn-cgi/l/email-protection 80
[email protected] /cdn-cgi/l/email-protection 95
[email protected] /cdn-cgi/l/email-protection __
[email protected] /cdn-cgi/l/email-protection 65
我需要做什么来调整这个公式?
您的公式返回什么样的值?如果它们是文本值,则将“空字符串”连接到您的值就足够了INDEX/MATCH
像这样的公式:
=IFERROR(INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))&"","")
这也适用于数字,只不过它将它们转换为文本,所以如果您不想这样做,您可以尝试这个版本:
=IFERROR(IF(INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))="","",INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))),"")
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)