How to refer to a column number by a variable