如何自动将整行从 Google sheet 复制到另一个

How to copy a whole row from a Google sheet to another automatically

我在 Google Sheet 中有一个列表,第一列的值为正值或负值。当我将值从负值更改为正值时,我希望整行自动变为复制到另一个 Google Sheets

你有什么想法吗?我怎么能这样做?

示例:google 张中的列表:

Positive NAME1 AAA DDD EEEE CCCC
Negative Name2 AAA DDD EEEE CCCC
Negative Name3 AAA DDD EEEE CCCC
Positive Name4 AAA DDD EEEE CCCC

新GoogleSheet中的新列表应该是这样的:

Positive NAME1 AAA DDD EEEE CCCC
Positive Name4 AAA DDD EEEE CCCC

假设第一个sheet是Sheet1;然后在第二个sheet,输入公式

=filter(Sheet1!A:F, Sheet1!A:A = "Positive")

这将产生预期的效果:只有 A 列中带有 "Positive" 的行将显示在第二个 sheet 上。

您可以更进一步,使用

从第二个 sheet 中删除多余的 "positive" 列
=filter(Sheet1!B:F, Sheet1!A:A = "Positive")