Can the index match formula look for multiple criteria and then return the same criteria as the value?

jacquesB

New Member
Joined
Jan 4, 2016
Messages
44
Hi Guys

I am trying to write an index match formula that can return several values and look for several critieria. I believe that the best approach would be an array formula, but cannot get it fully right, so I thought that I would turn to this forum.

I want the formula in column M to return all the values from column J that are also present in column D.

Below in the example, I have typed in manually how it should preferably return the value.

Thank you!


Book1
BCDEFGHIJKLMNOPQRSTU
2
3
4Missing infoID ResponsiblePeterDan
5Type AType BType CPeterDanType AType BType CType AType BType C
6112019120191111681109964489111681201912019
72120211202121118521202112021
8625120231202362511201
9632121231212363211593
10670121241212467012421
11671121251212567110995
12672121351107667210996
1311701213611083117010997
1411891218211087118910999
1512141222411091121411005
1612491224911094124911058
1712501283911119448911593
1828491304511121667612421
1929111306211123667912463
2032381166611006695512659
2138841104110954721412775
22448911667110241095411185
2366761179044891099612136
2466791189466761099712182
256955119326679109996676
2672141194969551100611168
27111681197972141102411201
281118512014111681106012021
29112011106011185111216955
30115931201511201111237214
311242111562115931156212123
321246311616124211161612124
331265911623109951162312125
341277511624109961162412135
351279610996109971201412019
361279910997109991201512023
37128151099911005120166679
381401912016110581401912016
39
40
Ark1
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
maybe something like...

M6=IFERROR(INDEX($J$6:$J$38,SMALL(IF(ISNUMBER(MATCH($J$6:$J$38,$D$6:$D$38,0)),ROW($J$6:$J$38)-ROW($J$6)+1),ROWS($M$6:M6))),"") control shift enter


[TABLE="class: grid"]
<tbody>[TR]
[TD]Row\Col[/TD]
[TD]
A​
[/TD]
[TD]
B​
[/TD]
[TD]
C​
[/TD]
[TD]
D​
[/TD]
[TD]
E​
[/TD]
[TD]
F​
[/TD]
[TD]
G​
[/TD]
[TD]
H​
[/TD]
[TD]
I​
[/TD]
[TD]
J​
[/TD]
[TD]
K​
[/TD]
[TD]
L​
[/TD]
[TD]
M​
[/TD]
[TD]
N​
[/TD]
[TD]
O​
[/TD]
[TD]
P​
[/TD]
[TD]
Q​
[/TD]
[TD]
R​
[/TD]
[TD]
S​
[/TD]
[TD]
T​
[/TD]
[/TR]
[TR]
[TD]
4​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
Missing info
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
ID Responsible
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Peter[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Dan[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
5​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Type A[/TD]
[TD]Type B[/TD]
[TD]Type C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Peter[/TD]
[TD]Dan[/TD]
[TD][/TD]
[TD]Type A[/TD]
[TD]Type B[/TD]
[TD]Type C[/TD]
[TD][/TD]
[TD][/TD]
[TD]Type A[/TD]
[TD]Type B[/TD]
[TD]Type C[/TD]
[/TR]
[TR]
[TD]
6​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1
[/TD]
[TD]
12019
[/TD]
[TD]
12019
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1
[/TD]
[TD]
11168
[/TD]
[TD][/TD]
[TD]
1
[/TD]
[TD]
10996
[/TD]
[TD]
4489
[/TD]
[TD][/TD]
[TD][/TD]
[TD]
11168
[/TD]
[TD]
12019
[/TD]
[TD]
12019
[/TD]
[/TR]
[TR]
[TD]
7​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
2
[/TD]
[TD]
12021
[/TD]
[TD]
12021
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
2
[/TD]
[TD]
11185
[/TD]
[TD][/TD]
[TD]
2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12021
[/TD]
[TD]
12021
[/TD]
[/TR]
[TR]
[TD]
8​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
625
[/TD]
[TD]
12023
[/TD]
[TD]
12023
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
625
[/TD]
[TD]
11201
[/TD]
[TD][/TD]
[TD]
625
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
9​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
632
[/TD]
[TD]
12123
[/TD]
[TD]
12123
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
632
[/TD]
[TD]
11593
[/TD]
[TD][/TD]
[TD]
632
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
10​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
670
[/TD]
[TD]
12124
[/TD]
[TD]
12124
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
670
[/TD]
[TD]
12421
[/TD]
[TD][/TD]
[TD]
670
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
11​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
671
[/TD]
[TD]
12125
[/TD]
[TD]
12125
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
671
[/TD]
[TD]
10995
[/TD]
[TD][/TD]
[TD]
671
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
12​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
672
[/TD]
[TD]
12135
[/TD]
[TD]
11076
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
672
[/TD]
[TD]
10996
[/TD]
[TD][/TD]
[TD]
672
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
13​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1170
[/TD]
[TD]
12136
[/TD]
[TD]
11083
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1170
[/TD]
[TD]
10997
[/TD]
[TD][/TD]
[TD]
1170
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
14​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1189
[/TD]
[TD]
12182
[/TD]
[TD]
11087
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1189
[/TD]
[TD]
10999
[/TD]
[TD][/TD]
[TD]
1189
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
15​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1214
[/TD]
[TD]
12224
[/TD]
[TD]
11091
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1214
[/TD]
[TD]
11005
[/TD]
[TD][/TD]
[TD]
1214
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
16​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1249
[/TD]
[TD]
12249
[/TD]
[TD]
11094
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1249
[/TD]
[TD]
11058
[/TD]
[TD][/TD]
[TD]
1249
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
17​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
1250
[/TD]
[TD]
12839
[/TD]
[TD]
11119
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
4489
[/TD]
[TD]
11593
[/TD]
[TD][/TD]
[TD]
4489
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
18​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
2849
[/TD]
[TD]
13045
[/TD]
[TD]
11121
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
6676
[/TD]
[TD]
12421
[/TD]
[TD][/TD]
[TD]
6676
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
19​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
2911
[/TD]
[TD]
13062
[/TD]
[TD]
11123
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
6679
[/TD]
[TD]
12463
[/TD]
[TD][/TD]
[TD]
6679
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
20​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
3238
[/TD]
[TD]
11666
[/TD]
[TD]
11006
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
6955
[/TD]
[TD]
12659
[/TD]
[TD][/TD]
[TD]
6955
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
21​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
3884
[/TD]
[TD]
11041
[/TD]
[TD]
10954
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
7214
[/TD]
[TD]
12775
[/TD]
[TD][/TD]
[TD]
7214
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
22​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
4489
[/TD]
[TD]
11667
[/TD]
[TD]
11024
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
10954
[/TD]
[TD]
11185
[/TD]
[TD][/TD]
[TD]
14019
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
23​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
6676
[/TD]
[TD]
11790
[/TD]
[TD]
4489
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
10996
[/TD]
[TD]
12136
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
24​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
6679
[/TD]
[TD]
11894
[/TD]
[TD]
6676
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
10997
[/TD]
[TD]
12182
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
25​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
6955
[/TD]
[TD]
11932
[/TD]
[TD]
6679
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
10999
[/TD]
[TD]
6676
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
26​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
7214
[/TD]
[TD]
11949
[/TD]
[TD]
6955
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11006
[/TD]
[TD]
11168
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
27​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11168
[/TD]
[TD]
11979
[/TD]
[TD]
7214
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11024
[/TD]
[TD]
11201
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
28​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11185
[/TD]
[TD]
12014
[/TD]
[TD]
11168
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11060
[/TD]
[TD]
12021
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
29​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11201
[/TD]
[TD]
11060
[/TD]
[TD]
11185
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11121
[/TD]
[TD]
6955
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
30​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11593
[/TD]
[TD]
12015
[/TD]
[TD]
11201
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11123
[/TD]
[TD]
7214
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
31​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12421
[/TD]
[TD]
11562
[/TD]
[TD]
11593
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11562
[/TD]
[TD]
12123
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
32​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12463
[/TD]
[TD]
11616
[/TD]
[TD]
12421
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11616
[/TD]
[TD]
12124
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
33​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12659
[/TD]
[TD]
11623
[/TD]
[TD]
10995
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11623
[/TD]
[TD]
12125
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
34​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12775
[/TD]
[TD]
11624
[/TD]
[TD]
10996
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
11624
[/TD]
[TD]
12135
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
35​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12796
[/TD]
[TD]
10996
[/TD]
[TD]
10997
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12014
[/TD]
[TD]
12019
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
36​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12799
[/TD]
[TD]
10997
[/TD]
[TD]
10999
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12015
[/TD]
[TD]
12023
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
37​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12815
[/TD]
[TD]
10999
[/TD]
[TD]
11005
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
12016
[/TD]
[TD]
6679
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
38​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
14019
[/TD]
[TD]
12016
[/TD]
[TD]
11058
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
14019
[/TD]
[TD]
12016
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hey Weazel.

Thanks for the answer! It only returns 671 from D11 and it does it all the way when I drag it down the column.
 
Upvote 0
Wait! I managed to fix it. Last row formula should be rows rather than row.

Thank you so much. You have saved me for hours of work!
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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