Emanuele175
Apr 27, 2023Copper Contributor
IIF formula not working...
I am struggling with something that should be simple:
In a custom Organization Field I need to put this formula:
iif(Csng([Lavoro])>0,(CSng([Costo]) / CSng([Lavoro]) * CSng([Lavoro Definitivo])),0)
[Lavoro] is like the standard field "Work" in English version
[Costo] is like the standard field "Cost" in English version
[Lavoro Definitivo] is a custom Organization field I created the tyoe of which is Cost.
The type of [Lavoro Definitivo] is Duration
It keeps telling me that the formula contains mistakes, but I really don't know what.
Without the IIf, the formula: (CSng([Costo]) / CSng([Lavoro]) * CSng([Lavoro Definitivo])) works fine.
The goal of it is to avoid the "#ERROR" in case [Lavoro]=0
Thank you