K
kepleycm
Is it possible to search for multiple items in one cell separated by a comma? In cell C3 I have abbreviations such as JS, JR, JK and many more. I alsohave a table on Page2 with abbreviations and emails. I wish to search the items in C3 referencing the abbreviation table, and return their corresponding emails separated by a ";". I wish for it to look something like.... In cell C3 have the abbreviations JS, JR, JK and then D3 will automatically return their emails (e-mail address removed); (e-mail address removed); (e-mail address removed). Thanks for all your help, and time.
=VLOOKUP(TRIM(LEFT(SUBSTITUTE(D3,",",REPT(" ",20)),20)),$A$2:$B$7,2,FALSE)&","&VLOOKUP(TRIM(MID(SUBSTITUTE(D3,",",REPT(" ",20)),20,20)),$A$2:$B$7,2,FALSE)&","&VLOOKUP(TRIM(RIGHT(SUBSTITUTE(D3,",",REPT(" ",20)),20)),$A$2:$B$7,2,FALSE)
^ above is the code I have so far, but it will only let me do three entries, and I will have much more.
=VLOOKUP(TRIM(LEFT(SUBSTITUTE(D3,",",REPT(" ",20)),20)),$A$2:$B$7,2,FALSE)&","&VLOOKUP(TRIM(MID(SUBSTITUTE(D3,",",REPT(" ",20)),20,20)),$A$2:$B$7,2,FALSE)&","&VLOOKUP(TRIM(RIGHT(SUBSTITUTE(D3,",",REPT(" ",20)),20)),$A$2:$B$7,2,FALSE)
^ above is the code I have so far, but it will only let me do three entries, and I will have much more.