This is a JavaScript "port" of the following questions, which ask the same thing about C# and Python, respectively:
- How to convert a column number (e.g. 127) into an Excel column (e.g. AA)
- Convert a number to Excel’s base 26
How do you convert a numerical number to an Excel column name
in C#without using automation getting the value directly from Excel.Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc.