I\'m creating some client side functions for a mappable spreadsheet export feature.
I\'m using jQuery to manage the sort order of the columns, but each column is ord
This is a very easy way:
function numberToLetters(num) { let letters = '' while (num >= 0) { letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[num % 26] + letters num = Math.floor(num / 26) - 1 } return letters }