简体   繁体   English

在 Google 表格中的等号后使用通配符 - SUM IMPORTRANGE

[英]Use wild card after equal sign in Google sheets - SUM IMPORTRANGE

I m looking for solution how i can use wild card * in SUM IMPORTRANGE我正在寻找解决方案如何在 SUM IMPORTRANGE 中使用通配符 *

For Example:例如:

Searching by name: John* John Frank Carsen John John Oscar按姓名搜索:John* John Frank Carsen John John Oscar

and SUM of that ranges there values where John occurs和该范围的总和存在约翰出现的值

=ArrayFormula(SUM( ( IMPORTRANGE("URL1", "Data1:A3,A")="John*")*IMPORTRANGE("URL1": "Data1!B3:B") ))

Result No Found结果 未找到

If i use full name its working如果我使用全名它的工作

=ArrayFormula(SUM( ( IMPORTRANGE("URL1", "Data1:A3,A")="John Oscar")*IMPORTRANGE("URL1": "Data1!B3:B") ))

Result: Found结果:找到

so please help me所以请帮帮我

try:尝试:

=QUERY(IMPORTRANGE("URL1", "Data1!A3:B"), 
 "select sum(Col2) where Col1 matches 'John.*' label sum(Col2)''")

在此处输入图像描述

note that its case sensitive请注意,它区分大小写

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

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