Reverse lookup with 3 Match conditions

rex759

Well-known Member
Joined
Nov 8, 2004
Messages
610
Office Version
  1. 365
Platform
  1. Windows
Hello,
The formula pulls the header number correctly for the first “X” that appears in the columns (C:Q) if the Year in B12 matches in Column B.

I want to add another condition in column A, the Product ID to be included with matching the selected year. I tried just adding another Match function to the end but couldn’t get it to work. Any ideas?

Index Match, header reverser lookup.xlsx
ABCDEFGHIJKLMNOPQ
1123456789101112131415
2192018XXXXXXX
3192019XXXXXXX
4192021XXXXXXX
5192022XXXXXXX
6192023xXXXXXXX
7212023x
8
9
10x
11ProductYearWeek
121920235
13
Sheet1
Cell Formulas
RangeFormula
C12C12=INDEX($C$1:$Q$1,,MATCH(A10,INDEX(C2:Q7,MATCH(B12,B2:B7,0),),0))
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try:
Book2
ABCDEFGHIJKLMNOPQ
1123456789101112131415
2192018XXXXXXX
3192019XXXXXXX
4192021XXXXXXX
5192022XXXXXXX
6192023xXXXXXXX
7212023x
8
9
10x
11ProductYearWeek
121920235
Sheet1
Cell Formulas
RangeFormula
C12C12=INDEX($C$1:$Q$1,MATCH(A10,FILTER($C$2:$Q$7,($A$2:$A$7=A12)*($B$2:$B$7=B12)),0))
 
Upvote 0
Solution
Wow, that Filter Function is pretty cool! Will take a deep look into its abilities. Thank you very much
 
Upvote 0
You're welcome. Thanks for the feedback.
The attached link on FILTER function may be of interest.
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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