Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 当在单元格A中输入日期时如何自动定义在单元格B中输入的值_Google Sheets_Google Sheets Formula - Fatal编程技术网

Google sheets 当在单元格A中输入日期时如何自动定义在单元格B中输入的值

Google sheets 当在单元格A中输入日期时如何自动定义在单元格B中输入的值,google-sheets,google-sheets-formula,Google Sheets,Google Sheets Formula,我有谷歌表,我想当我在a列(单元格a)中输入一个值(日期),然后在单元格B中自动插入预定义值(125)。有什么办法吗?有配方吗? 我找到了此公式,但无法根据我的要求进行修改: =ArrayFormula(IF(A2:A81=paid),"paid",(NOW())) 这可能会有所帮助: =ArrayFormula(IF(year(A2:A)=2019,125,"?")) 但它只适用于今年(2019年)

我有谷歌表,我想当我在a列(单元格a)中输入一个值(日期),然后在单元格B中自动插入预定义值(125)。有什么办法吗?有配方吗? 我找到了此公式,但无法根据我的要求进行修改:

=ArrayFormula(IF(A2:A81=paid),"paid",(NOW()))

这可能会有所帮助:

=ArrayFormula(IF(year(A2:A)=2019,125,"?"))
但它只适用于今年(2019年)