You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Google Sheets中按整列匹配值重复转置查询输出

问题描述

我需要在整列范围内,将与A列值匹配对应的B列值进行转置。

我测试了以下公式但无法正常工作:
=transpose(QUERY(A2:B,"select Col2 WHERE Col1 MATCHES '"&A2:A&"' "))

当前输出

Item 1Item 2Item 3Item 4Item 5
7A1A1A2A3
7A2
7A3
8b1
8b2
8b3
9c1
9c2
9c3
9c4

期望输出

Item 1Item 2Item 3Item 4Item 5Item 6
7A1A1A2A3
7A2b1b2b3
7A3c1c2c3c4
8b1
8b2
8b3
9c1
9c2
9c3
9c4

内容的提问来源于stack exchange,提问作者Lod

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 00:20:28