Quick script to calculate spreadsheet-like column codes to decimals

Spreadsheet programs have column names with letters like A, B, C,
D, ..., X, Y, Z, AA, AB, AC, ... AZ, BA, etc. This scripts
calculates the actual column number starting from A = 1, B = 2,
Z = 26, AA = 27, etc.