Dan*_*lds 5 google-sheets google-apps-script right-to-left google-sheets-formula
我正在尝试使用从右到左的 Google 表格中的 Kharosthi 脚本。在 Google Sheets 中,脚本在单元格编辑模式下正确显示,但一旦确认,它会返回到从左到右。
转到文件 > 电子表格设置并将区域设置更改为 RTL 语言
\n\n最后一个选项是使用公式或脚本来反转字符串
\n\nfunction REVERSE(string) {\n\xc2\xa0\xc2\xa0if (typeof string != \'string\') {\n\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0return null;\n\xc2\xa0\xc2\xa0}\n\xc2\xa0\xc2\xa0return string.split(\'\').reverse().join(\'\');\n}\n
Run Code Online (Sandbox Code Playgroud)\n\n=REVERSE(A1)\n
Run Code Online (Sandbox Code Playgroud)\n\n或没有脚本:
\n\n=JOIN(, INDEX(MID(A2, LEN(A2)-ROW(INDIRECT("1:"&LEN(A2)))+1, 1)))\n
Run Code Online (Sandbox Code Playgroud)\n
归档时间: |
|
查看次数: |
5852 次 |
最近记录: |