4.4 行式数据排序 - 按表达式
将成绩表按数学、英语、体育三科的成绩总和逆序排序,数据如下:
Class | Name | Maths | English | PE |
---|---|---|---|---|
1 | Tom | 85 | 97 | 74 |
2 | John | 92 | 80 | 95 |
2 | Joan | 86 | 67 | 85 |
1 | Rocky | 95 | 95 | 75 |
2 | Ham | 92 | 75 | 53 |
1 | Kate | 83 | 99 | 50 |
1 | Rose | 95 | 62 | 81 |
2 | Nomy | 78 | 91 | 70 |
1 | Neil | 91 | 83 | 97 |
2 | Jack | |||
1 | Joe | 98 | 71 | 60 |
脚本:
A | |
---|---|
1 | =T(“score.xlsx”) |
2 | =A1.sort@z(Maths+English+PE) |
运行结果: