[英]Create a custom function for google sheets
I know it's possible to create a function in google sheets via the script editor, I used to be able to do it, now I'm struggling. 我知道可以通过脚本编辑器在Google表格中创建一个函数,我曾经能够做到这一点,现在我很挣扎。
These functions should be accessible through a cell, and be able to use a cell. 这些功能应该可以通过单元访问,并且能够使用单元。
How do I create a function, and how do I use it? 如何创建函数,以及如何使用它?
It's all described quite extensively in the docs: 在文档中对此进行了详尽的描述:
https://developers.google.com/apps-script/guides/sheets/functions https://developers.google.com/apps-script/guides/sheets/functions
To write a custom function: 编写自定义函数:
function DOUBLE(input) {
return input * 2;
}
Using a custom function: 使用自定义函数:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.