Sorry, but I tried to find the solution yesterday and today, when I found the answer you've already answered ...
This is the post:
http://en.smath.info/forum/yaf_postst2752_IF-function-error.aspx#post14902
I did the same you say, delete all documents in the folder and the problem was solved.
Again you save me Davide, you people, are awesome!