Split a String by Comma and Get Desired Values for Each Substring

chuxin huo
2 min readJan 22, 2021

--

We have an Excel file as below:

id column and value column make a dictionary table. The task is to get values (corresponding multiple values) for ids (multiple ids). The expected result is as follows:

Directions:

1. Start esProc (Download esProc installation package and free DSK edition license HERE. You will be prompted to load the license file when you run esProc for the first time).

2. Open Excel and load add-in file ExcelRaq.xll through Option –> add-ins in Excel and click Go button on the dialog. The add-in file is located in [esProc installation directory \bin]. Related information is easy to get if you don’t know how to load the add-in.

3. Write script book2.dfx in esProc:

A1Split string parameter arg2 into a sequence by comma. The parameter is the second one passed in from the Excel file, which is a string made up of cells in D2:D8. You can define a parameter in esProc through Program->Parameter.

--

--

No responses yet