[英]Return a blank cell if the cell is blank
I am currently using this formula:我目前正在使用这个公式:
=IF([@Vacaciones2]<>"",[@Vacaciones2],"")*IFERROR(VLOOKUP([@[Posicion + Nivel]],Table3[#All],2,FALSE),"") =IF([@Vacaciones2]<>"",[@Vacaciones2],"")*IFERROR(VLOOKUP([@[Posicion + Nivel]],Table3[#All],2,FALSE),"")
It is working fine if @Vacaciones2 has a value, however the problem is that if @Vacaciones2 = blank, then it should return me just a blank cell and not #VALUE!如果@Vacaciones2 有一个值,它工作正常,但问题是如果@Vacaciones2 = 空白,那么它应该只返回一个空白单元格而不是#VALUE!
What am I doing wrong????我究竟做错了什么????
Thanks a lot!非常感谢!
You are returning ""
when it is blank, then you try to multiply it by a number.当它为空白时,您将返回""
,然后尝试将其乘以一个数字。 ""*1
will cause the #VALUE
error. ""*1
将导致#VALUE
错误。
Instead move the full formula inside the IF:而是在 IF 中移动完整的公式:
=IFERROR(IF([@Vacaciones2]<>"",[@Vacaciones2]*VLOOKUP([@[Posicion + Nivel]],Table3[#All],2,FALSE),""),"")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.