InterviewBit Academy is now Scaler!
InterviewBit Academy is now Scaler Academy!

Excel Column Number

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


    A -> 1
    B -> 2
    C -> 3
    Z -> 26
    AA -> 27
    AB -> 28 
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.
Start solving Excel Column Number on Interview Code Editor
Sign Up
to access hints and editorial solutions for Excel Column Number
Asked In:


Click here to start solving coding interview questions