简体   繁体   中英

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.

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"

I created a Google Form that has a simple series of questions allowing for the team member to record the changes. 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.

A sample is below:

Here is the Forms updated document

这是表格

这是我需要更新的源文件

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.

Try the following in 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)

Column A is formatted as Plain Text

在此处输入图像描述

Form submissions (Sheet1 here)

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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