Find the column number in Excel

Columns in an excel sheet are named A, B, C, D.....AA, AB etc. Given a column name as string, return the corresponding column number.

e.g. A -> 1, B -> 2, Z -> 26, AB -> 28

Note : Column names are given in all uppercases

Sample Input
Sample Output

Login to submit your solution

Fb dab53a1a64929320dc7425896aa73fd9e5512b6ab52e414ff5f3ebb5cecc73eb

Share Problem