http://www.orkut.com/Main#CommMsgs.aspx?cmm=20758571&tid=5319969921363653272
As the formula I have written is in Excel 2007 and not supported by
earlier version of Excel I have attached a solution for older version
as well. Both solutions attached.
--
Thanks
Karthik Bhat
Microsoft MVP