Hi,
Formula in H2 =MAX(MMULT(COUNTIF(C3:G3,L$3:P$5),{1;1;1;1;1})) copied to down, check multiple result are in column K:O (In this example there are 3 results) find matches with data are in column C:G....is working perfect.
Here below is an example sheet.
When I change the data as shown below the above formula give me the result as shown in column H2 which is not correct (correct result must be as shown in the column Q) please can someone take a look a provide me correct formula which can work with this data situation.
Thank you in advance
Regards,
Kishan
Formula in H2 =MAX(MMULT(COUNTIF(C3:G3,L$3:P$5),{1;1;1;1;1})) copied to down, check multiple result are in column K:O (In this example there are 3 results) find matches with data are in column C:G....is working perfect.
Here below is an example sheet.
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
1 | Combi | n1 | n2 | n3 | n4 | n5 | Match | Combi | n1 | n2 | n3 | n4 | n5 | ||
2 | 1 | 1 | 2 | 3 | 4 | 5 | 5 | 1 | 1 | 2 | 3 | 4 | 5 | ||
3 | 2 | 1 | 2 | 3 | 4 | 6 | 4 | 2 | 1 | 2 | 3 | 6 | 7 | ||
4 | 3 | 1 | 2 | 3 | 4 | 7 | 4 | 3 | 1 | 4 | 5 | 6 | 7 | ||
5 | 4 | 1 | 2 | 3 | 5 | 6 | 4 | ||||||||
6 | 5 | 1 | 2 | 3 | 5 | 7 | 4 | ||||||||
7 | 6 | 1 | 2 | 3 | 6 | 7 | 5 | ||||||||
8 | 7 | 1 | 2 | 4 | 5 | 6 | 4 | ||||||||
9 | 8 | 1 | 2 | 4 | 5 | 7 | 4 | ||||||||
10 | 9 | 1 | 2 | 4 | 6 | 7 | 4 | ||||||||
11 | 10 | 1 | 2 | 5 | 6 | 7 | 4 | ||||||||
12 | 11 | 1 | 3 | 4 | 5 | 6 | 4 | ||||||||
13 | 12 | 1 | 3 | 4 | 5 | 7 | 4 | ||||||||
14 | 13 | 1 | 3 | 4 | 6 | 7 | 4 | ||||||||
15 | 14 | 1 | 3 | 5 | 6 | 7 | 4 | ||||||||
16 | 15 | 1 | 4 | 5 | 6 | 7 | 5 | ||||||||
17 | 16 | 2 | 3 | 4 | 5 | 6 | 4 | ||||||||
18 | 17 | 2 | 3 | 4 | 5 | 7 | 4 | ||||||||
19 | 18 | 2 | 3 | 4 | 6 | 7 | 4 | ||||||||
20 | 19 | 2 | 3 | 5 | 6 | 7 | 4 | ||||||||
21 | 20 | 2 | 4 | 5 | 6 | 7 | 4 | ||||||||
22 | 21 | 3 | 4 | 5 | 6 | 7 | 4 |
When I change the data as shown below the above formula give me the result as shown in column H2 which is not correct (correct result must be as shown in the column Q) please can someone take a look a provide me correct formula which can work with this data situation.
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |
1 | Combi | n1 | n2 | n3 | n4 | n5 | Match | Combi | n1 | n2 | n3 | n4 | n5 | Correct Match | |||
2 | 1 | X | 2 | X | 2 | 1 | 9 | 1 | X | 2 | X | 2 | 1 | 5 | |||
3 | 2 | 1 | 2 | 2 | 1 | 2 | 11 | 2 | 1 | 1 | X | X | X | 3 | |||
4 | 3 | 2 | 2 | 1 | X | 1 | 10 | 3 | 1 | 1 | 1 | 1 | 2 | 2 | |||
5 | 4 | X | 1 | X | 2 | 1 | 10 | 4 | |||||||||
6 | 5 | 2 | 1 | 2 | X | 2 | 9 | 2 | |||||||||
7 | 6 | 1 | 2 | 2 | 1 | 1 | 14 | 2 | |||||||||
8 | 7 | 1 | 1 | 2 | 2 | 2 | 11 | 3 | |||||||||
9 | 8 | 1 | 1 | 1 | 1 | 1 | 20 | 4 | |||||||||
10 | 9 | 1 | 1 | X | X | X | 13 | 5 | |||||||||
11 | 10 | X | 2 | 2 | 2 | X | 10 | 3 | |||||||||
12 | 11 | 1 | 2 | 1 | 1 | 1 | 17 | 3 | |||||||||
13 | 12 | 1 | 1 | X | 2 | X | 10 | 4 | |||||||||
14 | 13 | X | 2 | X | 2 | X | 10 | 4 | |||||||||
15 | 14 | X | X | 2 | 2 | 2 | 10 | 2 | |||||||||
16 | 15 | X | X | X | X | 1 | 14 | 3 | |||||||||
17 | 16 | 1 | 1 | 2 | 1 | X | 13 | 3 | |||||||||
18 | 17 | 2 | 1 | 2 | 1 | X | 10 | 2 | |||||||||
19 | 18 | 1 | 1 | 1 | 1 | 2 | 17 | 5 | |||||||||
20 | 19 | 1 | 1 | 1 | 2 | 2 | 14 | 4 | |||||||||
21 | 20 | X | 1 | 2 | 1 | X | 10 | 2 | |||||||||
22 | 21 | 2 | 1 | 2 | 1 | 2 | 11 | 3 |
Thank you in advance
Regards,
Kishan