vlookup (or index match) using multiple criteria

vkorla

New Member
Joined
Dec 12, 2017
Messages
25
Hello!

Given 2 input values, one for "Age" and the other for "Raw", how can I return the corresponding correct value?

For example, for the "Age" of 21 (cell CB2), and "Raw" of 7 (CB3), the value I want returned is 23 (cell G9).

Is this possible using xlookup?

Thank you!
 

Attachments

  • Sample table.jpg
    Sample table.jpg
    107.2 KB · Views: 7

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
try
Book1
ABCDEFGHIJKLMNOPQR
1Age17181920212223242526272829
2Raw020202020202020202020202020Age21
3120202020202020202020202020Raw7
4220202020202020202020202020Result23
5320202020202020202020202020
6420202020202020202020202020
7521212121212121212121212121
8622222222222222222222222222
9723232323232323232323232323
10824242424242424242424242424
11925252525252525252525252525
121026262626262626262626262626
131127272727272727272727272727
141228282828282828282828282828
151329292929292929292929292929
161430303030303030303030303030
171531313131313131313131313131
Sheet5
Cell Formulas
RangeFormula
R4R4=INDEX($C$2:$O$17, MATCH(R3,B2:B17,0),MATCH(R2,C1:O1))
 
Upvote 1
Try:
varios 10ene2024.xlsm
ABCDEFGHIJKLMNOPBZCACB
1Age17181920212223242526272829
2Raw020293028202821252023272228Age21
3123293024222131283130262023Raw7
4223232529272128282631232325Result77
5323262924262124243123213120
6423262324262325212226302725
7524273021242926202631243126
8629302022272724282927242423
9725262127772325242723243128
10820212425252720203131302726
11921282020293021253026292221
121030262322303131263025312328
131122242729233126292628262120
141228282724212020222330262624
151326222121272122242830252223
161429222423252025202025283027
171520273025252628272522213188
Hoja5
Cell Formulas
RangeFormula
CB4CB4=INDEX(C2:O17,MATCH(CB3,B2:B17,0),MATCH(CB2,C1:O1,0))
 
Upvote 1
Solution
For the MATCH part I was doing match(CB3=B2:B17)*(CB2=C1:O1) ... for some weird reason.

For that it should be with the SumProduct function, but it works only with numbers in the array:
varios 10ene2024.xlsm
ABCDEFGHIJKLMNOPBZCACB
1Age17181920212223242526272829
2Raw020293028202821252023272228Age21
3123293024222131283130262023Raw7
4223232529272128282631232325Result77
5323262924262124243123213120
6423262324262325212226302725
7524273021242926202631243126
8629302022272724282927242423
9725262127772325242723243128
10820212425252720203131302726
11921282020293021253026292221
121030262322303131263025312328
131122242729233126292628262120
141228282724212020222330262624
151326222121272122242830252223
161429222423252025202025283027
171520273025252628272522213188
18
Hoja5
Cell Formulas
RangeFormula
CB4CB4=SUMPRODUCT((B2:B17=CB3)*(C1:O1=CB2)*(C2:O17))



🫡
 
Upvote 0
try
Book1
ABCDEFGHIJKLMNOPQR
1Age17181920212223242526272829
2Raw020202020202020202020202020Age21
3120202020202020202020202020Raw7
4220202020202020202020202020Result23
5320202020202020202020202020
6420202020202020202020202020
7521212121212121212121212121
8622222222222222222222222222
9723232323232323232323232323
10824242424242424242424242424
11925252525252525252525252525
121026262626262626262626262626
131127272727272727272727272727
141228282828282828282828282828
151329292929292929292929292929
161430303030303030303030303030
171531313131313131313131313131
Sheet5
Cell Formulas
RangeFormula
R4R4=INDEX($C$2:$O$17, MATCH(R3,B2:B17,0),MATCH(R2,C1:O1))
thank you @awoohaw
 
Upvote 0
You're welcome. My solution was nearly the same as @DanteAmor 's but I didn't go to the trouble of using the exact same column references as you requested, and I did miss a zero in the 2nd match function.

Best Wishes!
 
Upvote 1

Forum statistics

Threads
1,215,084
Messages
6,123,029
Members
449,092
Latest member
ikke

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