修改此查询公式以包含其他列

时间:2016-07-30 18:40:27

标签: google-sheets

=unique(ArrayFormula(regexreplace(query(query(regexreplace(uploadData!D:D,"\(|\)",""),"where not(Col1) matches '"&JOIN("|", regexreplace(filter(settingsDoNotInclude!A:A, len(settingsDoNotInclude!A:A)), "\(|\)",""))&"'"),"Select * where Col1 <>'' and Col1 <>'#VALUE!'"), "^(\d+)\s","($1) ")))

我有这个查询公式来过滤我们的通话记录(uploadData!D:D)并删除settingsDoNotInclude!A:A中列出的所有电话号码。不过,我希望将uploadData!H:HuploadData!I:IuploadData!M:M (Date, Time and Duration information)的数据包含在内。

这是指向表格的链接。 https://docs.google.com/spreadsheets/d/1T_TyzfUb7spZ9DSfuuY-CNkbH12FlOh5xxoCiw3kv58/edit#gid=0

电话号码是随机生成的,不是真实的。

1 个答案:

答案 0 :(得分:0)

尝试

=ArrayFormula( vlookup(filter(uploadData!D:D, isna(match(uploadData!D:D, settingsDoNotInclude!A2:A13, 0))), {uploadData!D:D, uploadData!A:M}, {5,9,10, 14}, 0))