> Write a function that, given a right argument which is a character scalar or non-empty vector representing a valid character Excel column identifier between A and XFD, returns the corresponding column number.
The inverse is fairly trivial of you generate all the possible column names, there are not that many. You can also then use that for the original problem. Bonus is that this technique works for array input directly. In a a production system you can precompute the column names, and if done, I think that might be the fastest solution.