There is an issue with the first solution provided by David. While the code will work, the formula created is:
:Sequence/valueToDivideBy
Since "valueToDivideBy" is a scalar memory variable, that will go away once the JMP session is closed, or could change value during the course of the day's processing, the calculated value of "col" could become invalid or incorrect. The second version of the formula would be preferred. However, if you want to use the structure of the first solution, you could do a couple of things:
1. Change the Se Formula to:
col << Set Formula(Eval(Parse(":Sequence/"||char(valueToDivideBy)));
2. Convert the formula to static values once the formula has been applied. To do this, add the following line after the the col << Set Formula line
col << delete property("formula");
Jim