# Excel Sheet Column Number (Leetcode 171)

Problem Link: <https://leetcode.com/problems/excel-sheet-column-number/>

```python
class Solution:
    def titleToNumber(self, columnTitle: str) -> int:
        ans=0
        n=len(columnTitle)
        
        for i in range(n-1,-1,-1):
            
            power=26**(n-1-i)
            
            # Similar to reminder method
            ans=ans+power*(ord(columnTitle[i])-64)
        return ans  
```
