My objective is to fill up the column R in the "main" tab with values from the column B in the "lun" tab in an excel workbook with some matching criteria (possibly vlookup/index etc).
e.g. I want to take the content of O2 cell ("main" tab) and then search it in the contents in column E (of "lun" tab). If matches (not necessary the exact match, as long as long as it contains the content of O2), I would like to return the value from the column B ("lun" tab) from that matching row and place it in R2 ("main" tab).
So, if works properly,
R2 ("main" tab) should contain the value from B377 ("lun" tab) [because E377 (lun tab) contains “naa.6006016040a02c00343a8d58eeeee011”, which is the content of O2(main tab)]
R3 ("main" tab) should contain the value from B306 (of "lun" tab) and so on.
I tried something like this, but it does not work.
=VLOOKUP("*"&O2&"*",lun!A:E,2,TRUE)
=INDEX(lun!B:B,MATCH(Q2,lun!E:E,0))
Not sure if I can use wildcard with index.
Any idea what should I try? I can't see a way to attach an excel sheet with the post, it could be handy.
e.g. I want to take the content of O2 cell ("main" tab) and then search it in the contents in column E (of "lun" tab). If matches (not necessary the exact match, as long as long as it contains the content of O2), I would like to return the value from the column B ("lun" tab) from that matching row and place it in R2 ("main" tab).
So, if works properly,
R2 ("main" tab) should contain the value from B377 ("lun" tab) [because E377 (lun tab) contains “naa.6006016040a02c00343a8d58eeeee011”, which is the content of O2(main tab)]
R3 ("main" tab) should contain the value from B306 (of "lun" tab) and so on.
I tried something like this, but it does not work.
=VLOOKUP("*"&O2&"*",lun!A:E,2,TRUE)
=INDEX(lun!B:B,MATCH(Q2,lun!E:E,0))
Not sure if I can use wildcard with index.
Any idea what should I try? I can't see a way to attach an excel sheet with the post, it could be handy.