Feb 06 2022 09:49 PM
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 just cannot solve it as the data is hugh very title of various, can I based on the first 15 to 18 characters to match back to the legend to get the Cl column (answer) from the legend back?
Please help. Thank you
Attached file
Feb 07 2022 02:37 AM
=VLOOKUP("*"&LEFT(B2,15)&"*",CHOOSE({1,2},Legend!$C$2:$C$20,Legend!$B$2:$B$20),2,FALSE)
Do you want to return the contribution level? This could be possible with above formula. Enter the formula as arrayformula with ctrl+shift+enter if you don't work with Office365 or 2021.
Feb 07 2022 04:48 PM
Feb 07 2022 09:33 PM
hi, i m a excel learner and curious to know & discuss, i wonder why you used "*"& in lookup argument of vlookup rather than only left function? i tried with only left function & didn't recieve any results.
i would appreciate if you help me out of it.
Feb 08 2022 02:45 AM
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.
Feb 08 2022 04:58 AM
If you enter "*"&LEFT(B2,14)&"*" as search value VLOOKUP performs a partial match. For example the search value "Senior manager" would be found in the search array within the strings "Senior manager assistant" and "Executive Senior manager director".
Search value LEFT(B2,14) would mean that VLOOKUP performs an exact match. There would only be a search result if e.g. search value is "Senior manager" and the string "Senior manager" is found in the search array.
Feb 08 2022 06:51 PM