我有以下格式的数据,前两列是类别,其余是数据:
++++++++++++++++++++++++++
| AAA | xxxx | 4 | 5 | 6 |
++++++++++++++++++++++++++
| AAA | yyyy | 4 | 5 | 6 |
++++++++++++++++++++++++++
| BBB | xxxx | 2 | 3 | 9 |
++++++++++++++++++++++++++
| BBB | yyyy | 3 | 3 | 3 |
++++++++++++++++++++++++++
...
++++++++++++++++++++++++++
| NNN | xxxx | 7 | 4 | 4 |
++++++++++++++++++++++++++
| NNN | yyyy | 7 | 4 | 4 |
++++++++++++++++++++++++++
我想合并第一列的每组单元格,使数据看起来更整洁。集合中总会有两行(类别和两个子类别:
++++++++++++++++++++++++++
| | xxxx | 4 | 5 | 6 |
| AAA |+++++++++++++++++++
| | yyyy | 4 | 5 | 6 |
++++++++++++++++++++++++++
++++++++++++++++++++++++++
| | xxxx | 4 | 5 | 6 |
| BBB |+++++++++++++++++++
| | yyyy | 4 | 5 | 6 |
++++++++++++++++++++++++++
...
++++++++++++++++++++++++++
| | xxxx | 4 | 5 | 6 |
| NNN |+++++++++++++++++++
| | yyyy | 4 | 5 | 6 |
++++++++++++++++++++++++++
答案 0 :(得分:1)
解决了: