从每 N 行找出需要数据拼成一行

Excel某表格不规范,每两行6列对应规范表格的一行3列,分别是:第1行第1列或第2行第1列(两者重复,取其一即可)、第2行第2列、第1行第3列。

|---|-------------|-------------------------|-----------|
| | A | B | C |
| 1 | John Doe | | Company A |
| 2 | John Doe | john.doe@example.com | |
| 3 | Jane Smith | | Company B |
| 4 | Jane Smith | jane.smith@example.com | |
| 5 | Alice Lee | | Company C |
| 6 | Alice Lee | alice.lee@example.com | |
| 7 | Bob Johnson | | Company D |
| 8 | Bob Johnson | bob.johnson@example.com | |

请拼出规范的表格。

|---|-------------|-------------------------|-----------|
| | E | F | G |
| 1 | John Doe | john.doe@example.com | Company A |
| 2 | Jane Smith | jane.smith@example.com | Company B |
| 3 | Alice Lee | alice.lee@example.com | Company C |
| 4 | Bob Johnson | bob.johnson@example.com | Company D |

使用 SPL XLL

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

函数 group 按规则对表格分组,符号 #是行号,符号 \ 表示除法取整数部分,~1(1) 表示当前组的第 1 行第 1 列。

免费下载试用

相关推荐
2501_940943917 分钟前
体系课\ Python Web全栈工程师
开发语言·前端·python
rafael(一只小鱼)15 分钟前
AI运维开发平台学习
java·开发语言
b***748817 分钟前
C++在系统中的内存对齐
开发语言·c++
散峰而望23 分钟前
C++数组(三)(算法竞赛)
开发语言·c++·算法·github
4***149036 分钟前
C++在系统中的编译优化
开发语言·c++
田姐姐tmner38 分钟前
Python切片
开发语言·python
oioihoii41 分钟前
C++程序执行起点不是main:颠覆你认知的真相
开发语言·c++
周杰伦fans1 小时前
C# 中的**享元工厂**模式
开发语言·数据库·c#
u***u6851 小时前
C++在系统中的异常处理
java·开发语言·c++
爱学测试的雨果1 小时前
收藏!软件测试面试题
开发语言·面试·职场和发展