Samgraphics
Board Regular
- Joined
- Jan 9, 2022
- Messages
- 61
- Office Version
- 2011
- Platform
- MacOS
Hi, I'm trying to create a pairwise/tripple-wise comparison table in Excel. I checked ChatGPT but the solution it gave me isn't working. Can anyone help me? I'm comparing the correlation analysis between numbers to determine if any pairs or sets of numbers tend to appear together more often and then highlight pairs with high correlation coefficients.
ChatGPT suggested
In Sheet1 enter my lotter data.
in a new sheet2, create a grid where rows and columns represent the numbers (1 to 35). start by listing numbers 1 to 35 down column A and across row 1.I will have numbers 1 to 35 in cells A2 to A36 and in cells B1 to AJ1.
Then in Sheet2 B2 enter this formula =SUMPRODUCT((Sheet1!$B$2:$F$100=$A2)*(Sheet1!$B$2:$F$100=B$1))
But this isn't working.
This is the data
This is the comparison table (I only copied part of it to reduce size.)
pleaes help.
Thank you
ChatGPT suggested
In Sheet1 enter my lotter data.
in a new sheet2, create a grid where rows and columns represent the numbers (1 to 35). start by listing numbers 1 to 35 down column A and across row 1.I will have numbers 1 to 35 in cells A2 to A36 and in cells B1 to AJ1.
Then in Sheet2 B2 enter this formula =SUMPRODUCT((Sheet1!$B$2:$F$100=$A2)*(Sheet1!$B$2:$F$100=B$1))
But this isn't working.
This is the data
LOTTERY ANALYSIS.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Draw # | P1 | P2 | P3 | P4 | P5 | B1 | B2 | ||
2 | 1 | 3 | 11 | 19 | 29 | 33 | 3 | 12 | ||
3 | 2 | 8 | 9 | 14 | 25 | 29 | 4 | 6 | ||
4 | 3 | 3 | 17 | 22 | 26 | 28 | 7 | 12 | ||
5 | 4 | 7 | 13 | 16 | 25 | 32 | 9 | 11 | ||
6 | 5 | 10 | 12 | 13 | 24 | 25 | 11 | 12 | ||
7 | 6 | 13 | 21 | 25 | 28 | 32 | 2 | 10 | ||
8 | 7 | 7 | 10 | 13 | 28 | 31 | 4 | 5 | ||
9 | 8 | 2 | 6 | 7 | 8 | 15 | 7 | 10 | ||
10 | 9 | 2 | 4 | 17 | 20 | 27 | 1 | 8 | ||
11 | 10 | 2 | 16 | 21 | 23 | 27 | 1 | 8 | ||
12 | 11 | 5 | 8 | 13 | 26 | 35 | 5 | 9 | ||
13 | 12 | 4 | 5 | 18 | 22 | 30 | 5 | 12 | ||
14 | 13 | 2 | 24 | 26 | 30 | 34 | 6 | 7 | ||
15 | 14 | 4 | 10 | 18 | 27 | 32 | 10 | 12 | ||
16 | 15 | 6 | 8 | 16 | 20 | 24 | 7 | 8 | ||
17 | 16 | 1 | 13 | 22 | 26 | 31 | 2 | 10 | ||
18 | 17 | 7 | 14 | 23 | 25 | 29 | 2 | 11 | ||
19 | 18 | 7 | 9 | 10 | 15 | 24 | 4 | 12 | ||
20 | 19 | 4 | 6 | 10 | 11 | 25 | 7 | 9 | ||
21 | 20 | 5 | 6 | 18 | 28 | 30 | 2 | 7 | ||
Sheet2 |
This is the comparison table (I only copied part of it to reduce size.)
LOTTERY ANALYSIS.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |||
2 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
3 | 2 | 0 | 4 | 0 | 0 | 0 | 0 | 0 | |||||
4 | 3 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | |||||
5 | 4 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | |||||
6 | 5 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | |||||
7 | 6 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | |||||
8 | 7 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | |||||
9 | 8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
10 | 9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
11 | 10 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
12 | 11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
13 | 12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
14 | 13 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
15 | 14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
16 | 15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
17 | 16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
18 | 17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
19 | 18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
20 | 19 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
21 | 20 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
22 | 21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
23 | 22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
24 | 23 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
25 | 24 | ||||||||||||
26 | 25 | ||||||||||||
27 | 26 | ||||||||||||
28 | 27 | ||||||||||||
29 | 28 | ||||||||||||
30 | 29 | ||||||||||||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:H24 | B2 | =SUMPRODUCT((Sheet2!$B$2:$F$100=B$1)*(Sheet2!$B$2:$F$100=$A2)) |
pleaes help.
Thank you