[Excel] Cartesian product
Tatopolos
Posted messages
25
Status
Membre
-
aldus Posted messages 2 Status Membre -
aldus Posted messages 2 Status Membre -
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
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 réponses
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
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
Tatopolos
Posted messages
25
Status
Membre
1
it is indeed a concatenation