Incrementing alphabets

前端 未结 5 1907
轮回少年
轮回少年 2020-12-19 13:29

I am trying to create a function which will give me alphabet position when an index is passed. It will be same like how excel shows it\'s columns. A...Z, AA,AB.... I wrote t

5条回答
  •  独厮守ぢ
    2020-12-19 14:04

    See this question:
    Translate a column index into an Excel Column Name

    or this one:
    How to convert a column number (eg. 127) into an excel column (eg. AA)

    Though the first link has a correct answer right at the top and the 2nd has several that are not correct.

提交回复
热议问题