google-sheets - 组合数据后如何获得连接文本的查询?

标签 google-sheets concatenation google-sheets-formula

在这张表上,我一直在研究我需要调整到查询结果中的信息

=QUERY(Investors!A4:D, 
 "select B,C,sum(D) 
  where B is not null
  group by B,C
  label sum(D)''")

如何将当天到期的股票编号列在 D 列中?像这样:

 1. 10/7/2019   Grady Johnson   $100.12     PT-1013
 2. 11/15/2020  Bill Jones      $553.80     PT-1020, PT-1019
 3. 11/15/2020  Grady Johnson   $45.00      PT-1011
 4. 11/15/2020  Steve Robinson  $320.00     PT-1018, PT-1016
 5. 11/17/2020  Jim Luke        $1,057.20   PT-1009, PT-1008, PT-1007, PT-1006
 6. 11/22/2020  Jim Luke        $300.43     PT-1010

链接如下:Google Sheet

感谢任何帮助!

最佳答案

或将其粘贴到第 3 行并向下拖动:

=JOIN(", ", IFNA(FILTER(Investors!A$4:A, Investors!B$4:B&" "&Investors!C$4:C=A3&" "&B3)))

enter image description here

关于google-sheets - 组合数据后如何获得连接文本的查询?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64884421/

相关文章:

MYSQL 连接列而不分组

java - 如何在 Java 中连接两个字符串数组

excel - 基于 excel/google 表中的列和行的平均值

date - 谷歌表格中过去 7 天的平均值公式

google-api - 用于过滤列的 Google 电子表格功能

node.js - 如何使用 API v4 知道最近在 Google Sheet 中更新了哪些数据

arrays - 谷歌表格 : Array formula for fixed cell value

javascript - .text() 在删除 html 标签时连接不带空格的字符串

regex - 在 Google Sheets 中使用 RegEx 将 1 + 1h 转换为 2?

javascript - 从具有特定值的二维数组中的行返回值 - 在 Google 脚本中以 HTML 形式列出结果