我需要将Google表格的列索引转换为相应的字母值,例如,给定以下电子表格:
我需要执行此操作(显然不存在此函数,这只是一个示例):
getColumnLetterByIndex(4); // this should return "D"
getColumnLetterByIndex(1); // this should return "A"
getColumnLetterByIndex(6); // this should return "F"
现在,我不确定索引是从0
开始还是从1
开始,不过概念应该是清楚的。
我在gas文档中没有找到关于此事的任何信息.. 我瞎了吗?有什么想法吗?
谢谢