[Excel] Cartesian product

Tatopolos Posted messages 25 Status Member -  
aldus Posted messages 2 Status Member -
Hello,

How can I obtain a Cartesian product of two tables or columns in Excel? For example:

TABLE 1
a
b
c

TABLE 2
1
2

RESULT
a 1
a 2
b 1
b 2
c 1
c 2

Thank you for your help
Configuration: Windows XP Firefox 3.0

2 answers

  1. Raymond PENTIER Posted messages 58216 Registration date   Status Contributor Last intervention   17 482
     
    I'm not sure if you want a concatenation (to join the two values "a" and "1" to get "a1") or a multiplication (= value of a x 1).
    In the second case, you need to use the matrix function PRODUCTMAT(matrix1;matrix2).
    In the first case, I don't have the solution.
    --
    Retirement is nice! Especially in the Caribbean... :-)
    Raymond
    0
    1. Tatopolos Posted messages 25 Status Member 1
       
      it is indeed a concatenation
      0