Pretty self-explanatory, but given 2D array indices (as CSV), how do I convert it to a spreadsheet cell coordinates? For example, "0, 0"
would output "A1"
, "3, 4"
would be "D5"
, etc.
Question posted in Javascript
A very good W3school tutorial can be found here.
A very good W3school tutorial can be found here.
2
Answers
SUGGESTION:
Try this:
Log results:
Reference:
https://developers.google.com/apps-script/reference/spreadsheet/range#geta1notation
Split and convert strings to number and use
String.fromCodePoint
:For >=26, see
Convert column index into corresponding column letter