Hi,

As far as permutations are concerned, take a look at following tip ...
http://www.j-walk.com/ss/excel/tips/tip46.htm

HTH
Carim