Here is an interesting problem for the OP. It is beyond my capabilities.

http://www.excelforum.com/excel-gene...from-27-a.html