It is unfortunate that Origin does not have a basic string search function for a column, so I have written it as follows:
function int sfind(string str, range cc)
{
int nRows = cc.nRows;
dataset tmp = data(1, nRows);
string str1$=lookup(str$, cc, tmp)$;
int nn = %(str1$);
return nn;
}
To use it, you have to define a range variable, like
range aa=col(1);
v1=sfind("abc",aa);
v1=;
CP