Find Values Corresponding to Keys Stored in a Specific Cell
Problem description & analysis
Here is an Excel file Book1.xlsx:
A |
B |
|
1 |
Product |
Notice |
2 |
p1 |
n1 |
3 |
p2 |
n2 |
4 |
p3 |
n3 |
5 |
||
6 |
p1,p2 |
We are trying to find the Notice values corresponding to multiple Product values in cell A6. Below is the desired result:
A |
B |
|
1 |
Product |
Notice |
2 |
p1 |
n1 |
3 |
p2 |
n2 |
4 |
p3 |
n3 |
5 |
||
6 |
p1,p3 |
n1,n3 |
Solution & explanation
First, we load add-in ExcelRaq.xll, and then
Select cell B6 and enter the following formula: =esproc("=?1(?2.pos(?3.split@c())).concat@c()",B2:B4,A2:A4,A6) and press Enter to get results.
SPL Official Website 👉 https://www.scudata.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProc_Desktop/
SPL Learning Material 👉 https://c.scudata.com
Discord 👉 https://discord.gg/cFTcUNs7
Youtube 👉 https://www.youtube.com/@esProcDesktop
Linkedin Group 👉 https://www.linkedin.com/groups/14419406/