Excel Column Number

Given a column title as appears in an Excel sheet, return its corresponding column number.

Example:

    A -> 1
    
    B -> 2
    
    C -> 3
    
    ...
    
    Z -> 26
    
    AA -> 27
    
    AB -> 28 
Interview Code Editor
Hints
  • Solution Approach
  • Complete Solution
11459 successful submissions.
Asked In:
  • Amazon
Click here to jump start your coding interview preparation