简体   繁体   English

从 forms 更新 Google 表

[英]Update Google sheet from forms

I have data of client lookup information in a google sheet.我在谷歌表中有客户查找信息的数据。 This is tied to a Google Data Studio Viz to allow the team working with the data to see only the relevant information to each team member easily.这与 Google Data Studio Viz 相关联,使处理数据的团队可以轻松地仅查看每个团队成员的相关信息。

The only way this data is updated is when the team member asks questions to the client "Has you address changed, is the IP address the same, etc. etc"更新此数据的唯一方法是当团队成员向客户提问“您的地址是否已更改,IP 地址是否相同等”

I created a Google Form that has a simple series of questions allowing for the team member to record the changes.我创建了一个 Google 表单,其中包含一系列简单的问题,允许团队成员记录更改。 This is stored in the same workbook in another sheet.这存储在另一个工作表的同一工作簿中。 I want a formula/function that checks the unique ID (SiteID) for a match and then updates the cells where there is new data.我想要一个公式/函数来检查唯一 ID (SiteID) 是否匹配,然后更新有新数据的单元格。

A sample is below:示例如下:

Here is the Forms updated document这是 Forms 更新文档

这是表格

这是我需要更新的源文件

Here is the source document这是源文件

Another complication is at some times there is a whole new site added.另一个复杂因素是有时会添加一个全新的站点。 So a SiteID that is not present in the source, I would need these to be appended to the source.所以源中不存在的 SiteID,我需要将这些附加到源中。

Try the following in C2:在 C2 中尝试以下操作:

=ArrayFormula(if(A2:A="",,iferror(VLOOKUP(A2:A,sort({
   Sheet1!B2:D},
   row(Sheet1!B2:B),false),{2,3},false))))

Source document (Sheet2 here)源文件(此处为表 2)

Column A is formatted as Plain Text A 列被格式化为纯文本

在此处输入图像描述

Form submissions (Sheet1 here)表单提交(此处为 Sheet1)

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM