Do you do any sort of error checking? If I was going to publish this UDF, I'd probably check to make sure the inputs were valid, but I did no such checking on this one.

Brian