๐พcolumnName()
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
GAS โฉ Classes โฉ Range โฉ A1 notation โฉ columnName()
/**
* convert column index to column name (A1 Notation).
*
* @param {number} col - column number of cell. (A = 1)
* @returns {string}
*
* @example
*
* columnName(4) // "D"
* columnName(27) // "AA"
* columnName(26*26 + 26) // "ZZ"
๐็ฏไพ๏ผ
columnName(4), // "D"
columnName(27), // "AA"
columnName(26*26 + 26), // "ZZ"
columnName(26**2 + 2*26 + 3), // "ABC"