Apply index and Match to retrieve a value

mcva

New Member
Joined
Apr 20, 2020
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hi, I need some help with this problem. I have included a figure that describes the excel problem.
I really don't know how to start from. I have tried vlookup and hlookup but I think that this can't be done with these two functions.

I need to retrieve the values in column G (in blue), from table I30 to N30, considering two conditions:
1) The text in columns B and columns I must be the same (green with green)
2) the text in column C and in row J2 to N2 must be the same (oranje with orange)
Thank you so much,
 

Attachments

  • Exemplo-min.jpg
    Exemplo-min.jpg
    193.7 KB · Views: 6

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
How about?:

Excel Formula:
=FILTER(FILTER($J$3:$N$30, $I$3:$I$30 = B2), $J$2:$N$2 = C2)

Libro1
BCDEFGHIJKLMN
2Name01a1abcde
3Name01b29Name011295785113
4Name01c57Name022305886114
5Name01d85Name033315987115
6Name01e113Name044326088116
7Name02a2Name055336189117
8Name02b30Name066346290118
9Name02c58Name077356391119
10Name02d86Name088366492120
11Name02e114Name099376593121
12Name03a3Name1010386694122
13Name03b31Name1111396795123
14Name03c59Name1212406896124
15Name03d87Name1313416997125
16Name03e115Name1414427098126
17Name1515437199127
18Name16164472100128
19Name17174573101129
20Name18184674102130
21Name19194775103131
22Name20204876104132
23Name21214977105133
24Name22225078106134
25Name23235179107135
26Name24245280108136
27Name25255381109137
28Name26265482110138
29Name27275583111139
30Name28285684112140
Hoja1
Cell Formulas
RangeFormula
G2:G16G2=FILTER(FILTER($J$3:$N$30,$I$3:$I$30=B2),$J$2:$N$2=C2)
 
Upvote 0
Solution
Index/ match/ match should work:
Book1
ABCDEFGHIJKLMN
1DataccppuullvVLE
206/12/2023dd4blahabcde
307/12/2023fc3a12345
408/12/2023ie5b12345
509/12/2023la1c12345
610/12/2023qb2d12345
711/12/2023aad4e12345
8f12345
9g12345
10h12345
11i12345
12j12345
13k12345
14l12345
15m12345
16n12345
17o12345
18p12345
19q12345
20r12345
21s12345
22t12345
23u12345
24v12345
25w12345
26x12345
27y12345
28z12345
29aa12345
30bb12345
Sheet1
Cell Formulas
RangeFormula
G2:G7G2=INDEX($J$3:$N$30,MATCH(B2,$I$3:$I$30,0),MATCH(C2,$J$2:$N$2,0))
 
Upvote 0
Index/ match/ match should work:
Book1
ABCDEFGHIJKLMN
1DataccppuullvVLE
206/12/2023dd4blahabcde
307/12/2023fc3a12345
408/12/2023ie5b12345
509/12/2023la1c12345
610/12/2023qb2d12345
711/12/2023aad4e12345
8f12345
9g12345
10h12345
11i12345
12j12345
13k12345
14l12345
15m12345
16n12345
17o12345
18p12345
19q12345
20r12345
21s12345
22t12345
23u12345
24v12345
25w12345
26x12345
27y12345
28z12345
29aa12345
30bb12345
Sheet1
Cell Formulas
RangeFormula
G2:G7G2=INDEX($J$3:$N$30,MATCH(B2,$I$3:$I$30,0),MATCH(C2,$J$2:$N$2,0))
Thank you very much. Works fine
 
Upvote 0
Index/ match/ match should work:
Book1
ABCDEFGHIJKLMN
1DataccppuullvVLE
206/12/2023dd4blahabcde
307/12/2023fc3a12345
408/12/2023ie5b12345
509/12/2023la1c12345
610/12/2023qb2d12345
711/12/2023aad4e12345
8f12345
9g12345
10h12345
11i12345
12j12345
13k12345
14l12345
15m12345
16n12345
17o12345
18p12345
19q12345
20r12345
21s12345
22t12345
23u12345
24v12345
25w12345
26x12345
27y12345
28z12345
29aa12345
30bb12345
Sheet1
Cell Formulas
RangeFormula
G2:G7G2=INDEX($J$3:$N$30,MATCH(B2,$I$3:$I$30,0),MATCH(C2,$J$2:$N$2,0))
Thank you very much.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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