如果行中的其他单元格匹配值,则将单元格从单元格复制到另一个单元格 [英] Copy cell from on sheet to another, if other cell in row matches values

查看:309
本文介绍了如果行中的其他单元格匹配值,则将单元格从单元格复制到另一个单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要的是将一个或多个单元格从一个表单复制到另一个单元格,只有当同一行(不同列)中的另一个单元格在Google表格中具有/特定值时。

What I want, is to copy a cell(s) from one sheet to another, only if another cell in the same row (different column) have/has a particular value(s) in Google Sheets.

理想情况下,我希望这是活的;如果我在第一张表中添加一行并且标准匹配,则第二张表也会更新。以下是一个例子:

Ideally, I would like this to be live; if I add a row in the first sheet and the criterion matches, the second sheet will update too. Here's an example:

Sheet one

Column A | Column(s)…  | Column D
=================================
Hello    |             | Yes
World!   |             | Yes
Foo      |             | Maybe
Bar      |             |

Sheet two

Column A | Column(s)…  | Column D
=================================
Hello    |             |
World!   |             |
Foo      |             |
         |             |

所以在这个例子中,我的标准是如果列中的行单元格D 等于可能,那行中的单元格位于

So in this example, my criteria is that if the row's cell in Column D equals either Yes or Maybe, that row's cell in Column A is copied into the second sheet.

推荐答案

请尝试:

=query('Sheet one'!A:D,"Select A where D='Yes' or D='Maybe'") 

这篇关于如果行中的其他单元格匹配值,则将单元格从单元格复制到另一个单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆