[Solved] Convert numbers to letters beyond the 26 character alphabet
I think you’re looking for something like this function colName(n) { var ordA = ‘a’.charCodeAt(0); var ordZ = ‘z’.charCodeAt(0); var len = ordZ – ordA + 1; var s = “”; while(n >= 0) { s = String.fromCharCode(n % len + ordA) + s; n = Math.floor(n / len) – 1; } return s; } … Read more