Need formula help (multiple results check?)

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
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.

ABCDEFGHIJKLMNO
1Combin1n2n3n4n5MatchCombin1n2n3n4n5
21123455112345
32123464212367
43123474314567
54123564
65123574
76123675
87124564
98124574
109124674
1110125674
1211134564
1312134574
1413134674
1514135674
1615145675
1716234564
1817234574
1918234674
2019235674
2120245674
2221345674

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.

ABCDEFGHIJKLMNOPQ
1Combin1n2n3n4n5MatchCombin1n2n3n4n5Correct Match
21X2X2191X2X215
321221211211XXX3
43221X1103111122
54X1X21104
65212X292
7612211142
8711222113
9811111204
10911XXX135
1110X222X103
121112111173
131211X2X104
1413X2X2X104
1514XX222102
1615XXXX1143
17161121X133
18172121X102
191811112175
201911122144
2120X121X102
222121212113

Thank you in advance

Regards,
Kishan
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi, actually there is my error in the post#1 this is actually picture I am checking example 3 result of column O2:S4 one by one with my data in column B2:F22 in Column H, I, J...

Formula H2 =SUMPRODUCT(--($O$2:$S$2=$B2:$F2)) copied to down
Formula I2 =SUMPRODUCT(--($O$2:$S$2=$B3:$F3)) copied to down
Formula J2 =SUMPRODUCT(--($O$2:$S$2=$B4:$F4)) copied to down

Formula L2 =MAX(H2:J2)

I need single formula in column L which gives me the desire result as shows? I am not sure is it possible.

Example sheet

Combin1n2n3n4n5Result 1Result 2Result 3Max MatchResultn1n2n3n4n5
1X2X2151051X2X21
2122121133211XXX
3221X12112311112
4X1X214214
5212X20222
6122112122
7112221233
8111111244
911XXX1525
10X222X3103
11121112133
1211X2X2424
13X2X2X4204
14XX2222012
15XXXX13203
161121X0333
172121X0222
18111120255
19111221244
20X121X1222
21212120133

Regards,
Kishan
 
Upvote 0
May be if formula is not possible VBA solution will be ok for me
 
Upvote 0
Please is there any way to find a solution for post#2...single formua in column "L" or if there is no formula please help with VBA. Thank you

Regards,
Kishan
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top