There is no function that will do what you ask. It can be done using
VBA code. Are you interested in that type of a solution?
--
swatsp0p
------------------------------------------------------------------------
swatsp0p's Profile:
http://www.excelforum.com/member.php...o&userid=15101
View this thread:
http://www.excelforum.com/showthread...hreadid=467511