我在使用Google表格的公式时遇到问题:
=ifna(IF($A14="TRP Drills",INDEX('Drills DD Skill by Skill'!$B$3:$B,match($D14,'Drills DD Skill by Skill'!$A$3:$A,0))*$F14," "),if($A14="DMT Drills",INDEX('DMT Drills DD Skill by Skill'!$B$3:$B,match($D14,'DMT Drills DD Skill by Skill'!$A3:$A,0))*$F14,""))
这适用于第一个If规则“ TRP钻头”,但是当我将A14更改为第二个If规则“ DMT钻头”时不起作用
任何人都可以看到任何不起作用的原因吗?
答案 0 :(得分:2)
infa()
中的第一个参数的取值不会为NA
,因为您返回的" "
取值为false时。
尝试以下操作:
=iferror(ifna(IF($A14="TRP Drills",INDEX('Drills DD Skill by Skill'!$B$3:$B,match($D14,'Drills DD Skill by Skill'!$A$3:$A,0))*$F14,na()),if($A14="DMT Drills",INDEX('DMT Drills DD Skill by Skill'!$B$3:$B,match($D14,'DMT Drills DD Skill by Skill'!$A3:$A,0))*$F14,"")),"")