Forum Discussion
bbsin
Feb 06, 2022Iron Contributor
URGENT need help - partial match to get answer excel
hi I have a data table and a legend table I need to partial match the title (first about 15 characters to the legend table title ) to get back the CL numbers. I try vlookup , index match.. I...
bbsin
Feb 07, 2022Iron Contributor
Hi OliverScheurich,
Thank you for your kind reply. Yes I want to return the CL. I try putting the formula to the sheet, it show NA? I might have done something not right.
My data is in one worksheet and the legend in other worksheet. There's one more column of information in the legend before the CL and Title.
May I know does CHOOSE({1,2} stands for?
Thank you
Thank you for your kind reply. Yes I want to return the CL. I try putting the formula to the sheet, it show NA? I might have done something not right.
My data is in one worksheet and the legend in other worksheet. There's one more column of information in the legend before the CL and Title.
May I know does CHOOSE({1,2} stands for?
Thank you
OliverScheurich
Feb 08, 2022Gold Contributor
Does this mean that contribution level is in column C and position is in column D of the Legend sheet?
You would need to adapt the formula according to the actual layout of your data.
=VLOOKUP("*"&LEFT(B2,14)&"*",CHOOSE({1,2},Legend!$D$2:$D$20,Legend!$C$2:$C$20),2,FALSE)
This formula works in the attached file. If you don't work with Office 365 or 2021 you have to enter the formula with ctrl+shift+enter.
In this example CHOOSE({1,2} allows within the VLOOKUP to search for the search value in range Legend!$D$2:$D$20 and to return the corresponding value from range Legend!$C$2:$C$20.