title: MS Excel: number permutations
body: <p>I need to generate all possible combination of a set of numbers,
  I know it could be possible to generate this using any programing language.
  I was wondering in case it is possible to have a formula in MS Excel?</p>
  
  <p>eg. for a 3 digit number 123</p>
  
  <pre><code>ColA:ColB
  1   : 123 
  2   : 132 
  3   : 213 
  4   : 231 
  5   : 312 
  6   : 321 
  </code></pre>
  
  <p>The solution should be scaleable as I am expecting to use it for a 9-digit number.</p>
  
  <p>regards</p>