A, B, …, Z, then AA, AB, …, AZ, BA, …, ZZ, then AAA, and so on.
Given a column label label, return its position, counting from 1: A is 1, Z is 26, AA is 27.label='E' → 5
E is the fifth letter, so it is the fifth column.
label='BA' → 53
After A through Z come AA through AZ (columns 27 to 52), so BA is column 53.
label='ZZ' → 702
There are 26 one-letter and 26·26 = 676 two-letter labels, and ZZ is the last of them: 26 + 676 = 702.
label consists of uppercase English letterslabel='E'
5
Run checks the first 3 tests in your browser. Submit checks all 188 tests on the server, hidden ones included.