OOPS! It always helps to send a mail to you guys, I then think of something else and find my own solution.. Turns out that the arguments are reversed between ATAN2 in Excel and atan2 in RunRev Sorry to have wasted your time Kevin Stallibrass