While it should be located here, Glenn has a nice library of Excel Functions on his website that should have no problem doing what you want.

http://www.innotechcg.com/resources/resources.asp?ID=0:KixLib:xlLib.htm
_________________________
(... better days ahead)