Parse variable expressions with Excel formulas

Parse variable expressions with Excel formulas

In PDM, a string is used to express the value of a set of variables of a part, such as: {variable 1=value 1; variable 2=value 2;} format, and the value of the variable is retrieved according to the name of the variable.

Use the following formula to solve by the following steps:
Locate the position of the variable: L1=find(var,exp)
Locate the position of the equal sign: L2=find(“=",exp,L1)
Locate the position of the semicolon: L3=find(";",exp,L2)
Intercept the value of the variable: =mid(var,L2+1, L3-L2-1)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324606948&siteId=291194637