Forum Discussion
GLedesma26
Sep 22, 2022Copper Contributor
Match-Index with variable column
Hi there, I have had this challenge for a while that I am not able to overcome. I have a long database of articles to which I want to give a number. Each article (row) has a Category and a Subcat...
- Sep 23, 2022
GLedesma26 Entered this formula in E2 and copied it down. It seems to do what you need.
=INDEX($H$13:$H$15,MATCH(C3,INDEX($I$13:$K$15,,MATCH(B3,$I$12:$K$12,0)),0))File attached.
GLedesma26
Sep 23, 2022Copper Contributor
Hi HansVogelaar
https://docs.google.com/spreadsheets/d/1WEo43g1xBpRYPhPwu_SEKJQd4e3ryppfXbh6u0Pl-oI/edit#gid=0
Here I created a google sheet with an example of the case.
Of course, in reality, I will have many more categories and subcategories, and even some of them might have the same name and yet get a different number.
You should be able to make comments on the sheet. Thank you in advance!!!
Riny_van_Eekelen
Sep 23, 2022Platinum Contributor
GLedesma26 Entered this formula in E2 and copied it down. It seems to do what you need.
=INDEX($H$13:$H$15,MATCH(C3,INDEX($I$13:$K$15,,MATCH(B3,$I$12:$K$12,0)),0))File attached.