I have this excel test.xlsx (9.4 KB)
and in cell I have this value “abc, def, xyz, mnp”.
I would calculate the position of “,”.
I used this formula: “myVariable.IndexOf(”,“).ToString” in for each but I calculate the same position, instead how could I calculate the other position of commas?
thank you for your solution, but I have seen that CommandIndexArr is an array, I would need to calculate the positions individually, for every time it enters in the for each, example: 1 time
myVariable = 3 2 time
myVariable = 8 3 time
myVariable = 13