Hi, I'm trying to create a function, jim(p) which varies depending on whether the value of p is odd or even. I was trying to use th eIf function, but i cant work out a formula to work out if p is odd or even. Thanks, Dave __________________________________________________ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer