将数据表从基于列的数据转换为列表列标题的唯一表条目

发布于 2025-02-07 07:09:05 字数 248 浏览 3 评论 0原文

GoogleSheet新用户在这里。我正在尝试以最有效的方式来争吵一些数据。我已经通过查找公式和语句进行了这种转换,但必须相信查询功能或类似方法有更好的方法?任何指导都将不胜感激。图像显示了所需的转换 - 如果您可以提出如何更好地措辞这个问题,也将感激不尽。谢谢。

转换 - 从/到

googlesheet new user here. Am trying to wrangle to some data in the most efficient way possible. I have done this transformation already via a formula of lookups and if statements but have to believe there is a better way with a query function or similar? any guidance would be greatly appreciated. The image shows the transformation required - would also be grateful if you could suggest how this question could be better worded. Thank you.

Transformation - from/to

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

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

发布评论

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

评论(1

魄砕の薆 2025-02-14 07:09:05

使用:

=ARRAYFORMULA(REGEXREPLACE(QUERY(TRIM(SPLIT(FLATTEN(
 QUERY(QUERY(SPLIT(FLATTEN(A2:B13&"¤×"&A1:B1&","), "×"), 
 "select max(Col2) where Col2 is not null group by Col2 pivot Col1"),,9^9)), "¤")), 
 "where Col2 is not null", ), ",$", ))

“

use:

=ARRAYFORMULA(REGEXREPLACE(QUERY(TRIM(SPLIT(FLATTEN(
 QUERY(QUERY(SPLIT(FLATTEN(A2:B13&"¤×"&A1:B1&","), "×"), 
 "select max(Col2) where Col2 is not null group by Col2 pivot Col1"),,9^9)), "¤")), 
 "where Col2 is not null", ), ",
quot;, ))

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文