Hi all,
I need the column number. I have the name of the column, but it might not always be in the same space.
I first decided to use a While loop which stops iterating when the column is found. "n" would be the column number, but it isn't working.
colFound = 0;
n=0;
While(colFound == 0,
n++;
colName = Column Name(n);
if(colName==Vd, colFound=1, );
);
I get this error: invalid argument in access or evaluation of 'Column Name' , Column Name/*###*/(n)
However, if I use this (this one time I know the actual number) it returns the column name I am looking for:
col = Column Name(38);
show(col);
From a post (column number) , I used msharp's suggestion, but still no luck on getting the column number, it just returns the column name?