Invalid Array Index (variable in index) Hello, I am using Mathcad Prime 10.0.0.0. On sheet 3 I am trying to call in column 2 (via data[i,2] in the first IF statement) which has a text name for the value. If the value equates to something in my IF statements, I want my program to calculate the H_f or Friction Head. I want the program to go down the array one at a time and at the end output the sum of all the individual friction heads added together, so I gave the array the indices of i,2 with i going from 0 (first value in the submatrix 'data') to p-1 (end of the rows in the main Matrix 'System'). I am not sure why I am receiving an error which states "This array index is invalid. The index must be an integer, not less than origin, and not greater than the last element.". Is there any chance you all may be able to assist? Can a variable not be in the Array index? If not, how do I go down my list? Should I have individual vectors (single column arrays) for each co