Hi Joe,
Not only that but my formula takes twice as long to calculate.
From various posts I have seen where it seemed to me that people were
suggesting that fewer function calls were better, I jumped to the conclusion
that calculations were faster than function calls.
However, it would seem that in this case at least that is not true. In
calculating a whole column of your formula 1,000 times, the VBA Timer
returned an average of 0.064203 & 0.068414 seconds on two runs whereas mine,
with no function calls, took 0.135188 & 0.136234 seconds
Replacing raising to a power with multiplication improved my result to
0.077914 & 0.077797 seconds, so even then it did not beat your IF() formula,
(and of course gave wring results but I was only interested in calculation
times).
mmmmmm....... There's more to spreadsheets than meets the eye....
--
Regards
Sandy
In Perth, the ancient capital of Scotland
[email protected]
[email protected] with @tiscali.co.uk