so an "IF" is not an "IF".... especially if nested - good to know.
In fact I remember that I had a similar problem years ago in Excel - so that makes sense.
I'll update David Parker's "Shapesheet's fomulas A-Z" files accordingly - which is full of notes here and there
@vojo - I thought that the more cells are there the larger the file is and the more time a calculation needs. Ok, my sheets are reacting just in time even with 250 shapes on it.
=IF(User.Side=1,PNT(Width,IF(PNTY(User.LeaderEnd)<0,Height*0,IF(PNTY(User.LeaderEnd)>Height,Height,IF(AND(PNTX(User.LeaderEnd)<0,PNTY(User.LeaderEnd)<Height*0.5),Height*0,IF(AND(PNTX(User.LeaderEnd)<0,PNTY(User.LeaderEnd)>=Height*0.5),Height,Height*0.5+Width*0.5*(PNTY(User.LeaderEnd)-Height*0.5)/(PNTX(User.LeaderEnd)-Width*0.5)))))),IF(User.Side=2,PNT(IF(PNTX(User.LeaderEnd)<0,Width*0,IF(PNTX(User.LeaderEnd)>Width,Width,IF(AND(PNTY(User.LeaderEnd)<0,PNTX(User.LeaderEnd)<Width*0.5),Width*0,IF(AND(PNTY(User.LeaderEnd)<0,PNTX(User.LeaderEnd)>=Width*0.5),Width,Width*0.5+Height*0.5*(PNTX(User.LeaderEnd)-Width*0.5)/(PNTY(User.LeaderEnd)-Height*0.5))))),Height),IF(User.Side=3,PNT(Width*0,IF(PNTY(User.LeaderEnd)<0,Height*0,IF(PNTY(User.LeaderEnd)>Height,Height,IF(AND(PNTX(User.LeaderEnd)>Width,PNTY(User.LeaderEnd)<Height*0.5),Height*0,IF(AND(PNTX(User.LeaderEnd)>Width,PNTY(User.LeaderEnd)>=Height*0.5),Height,Height*0.5-Width*0.5*(PNTY(User.LeaderEnd)-Height*0.5)/(PNTX(User.LeaderEnd)-Width*0.5)))))),PNT(IF(PNTX(User.LeaderEnd)<0,Width*0,IF(PNTX(User.LeaderEnd)>Width,Width,IF(AND(PNTY(User.LeaderEnd)>Height,PNTX(User.LeaderEnd)<Width*0.5),Width*0,IF(AND(PNTY(User.LeaderEnd)>Height,PNTX(User.LeaderEnd)>=Width*0.5),Width,Width*0.5-Height*0.5*(PNTX(User.LeaderEnd)-Width*0.5)/(PNTY(User.LeaderEnd)-Height*0.5))))),Height*0))))
.
is a complex formula. Even if I couldn't do it without Excel I wouldn't at all.
But you're right! for debugging it's easier to check constructions like this.
The "xyz"- thing I had to solve at first anyway I found out. But thanks!