Excel 将同一分类下的值依次填进分类格右边的格中

表格的第2列是分类,第3列是明细:

|---|------|---------|---------|
| | A | B | C |
| 1 | S.no | Account | Product |
| 2 | 1 | AAAQ | atAAG |
| 3 | 2 | BAAQ | bIAAW |
| 4 | 3 | BAAQ | kJAAW |
| 5 | 4 | CAAQ | aAAP |
| 6 | 5 | DAAQ | aAAX |
| 7 | 6 | DAAQ | bAAX |
| 8 | 7 | DAAQ | cAAX |

需要将同一分类下的值依次填入分类格右边的格中:

|---|------|---------|---------|-------|------|
| | | A | B | C | D |
| 1 | S.no | Account | Product | | |
| 2 | 1 | AAAQ | atAAG | | |
| 3 | 2 | BAAQ | bIAAW | kJAAW | |
| 4 | 4 | CAAQ | aAAP | | |
| 5 | 5 | DAAQ | aAAX | bAAX | cAAX |

使用 SPL XLL,输入公式:

复制代码
=spl("=E(?).group@o(#2).(#1|#2|~.(#3))",A1:C8)

E以表格形式读取片区。group@o 表示分组前不排序。#1 表示组内的第一成员的第一列,简写作 #1;~.(#3) 表示组内成员第 3 列组成的序列。

相关推荐
wtsolutions15 小时前
JSON to Excel Add-in - Seamless Integration Within Excel
json·excel
wtsolutions15 小时前
Getting Started with JSON to Excel Web App - Convert in Seconds
json·excel·web app
wtsolutions18 小时前
Using the JSON to Excel API - Programmatic Access for Developers
json·excel
qq_4351395719 小时前
EasyExcel(FastExcel)Excel导出功能 技术文档
excel
wtsolutions1 天前
Understanding JSON Formats - What JSON to Excel Supports
json·excel
wtsolutions1 天前
Advanced Features - Unlocking the Power of JSON to Excel Pro
linux·json·excel
fs哆哆1 天前
VB.NET和VBA教程-如何查找Excel数据区域边界
excel
小矮强1 天前
Excel中根据年月日提取月日,并按月日进行排序
excel
开开心心_Every1 天前
图片批量压缩工具:支持有损无损两种模式
python·游戏·微信·django·pdf·excel·语音识别
wtsolutions1 天前
Real-World Use Cases - How Organizations Use JSON to Excel
json·excel