从其他选项卡中获取相关数据作为摘要中的其他选项卡

发布于 2025-01-31 19:25:53 字数 245 浏览 3 评论 0原文

想象一下有以下标签。我想在每个键(示例中的房间名称)中总结(例如AVG)。

我如何仅获得按键匹配的值? Vlookup仅找到一个条目。

Imagine having the following tabs. I want to summarize (let's say avg) in a second tab per each key (room name in the example).

enter image description here

How can I get only values matching by key? VLOOKUP finds only a single entry.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

久随 2025-02-07 19:25:53

尝试:

=QUERY({A:B}; 
 "select Col1,avg(Col2) 
  where Col2 is not null 
  group by Col1 
  label avg(Col2)''")

更新:

=QUERY({A:B};   
 "select Col1,avg(Col2)    
  where Col1 ='"&'2nd tab'!B1&"'    
  group by Col1    
  label avg(Col2)''")

try:

=QUERY({A:B}; 
 "select Col1,avg(Col2) 
  where Col2 is not null 
  group by Col1 
  label avg(Col2)''")

update:

=QUERY({A:B};   
 "select Col1,avg(Col2)    
  where Col1 ='"&'2nd tab'!B1&"'    
  group by Col1    
  label avg(Col2)''")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文