先扩展后排序扩展后排序-https://help.fanruan.com/finereport/doc-view-897.html
在重新编号扩展后排序重新编号-https://help.fanruan.com/finereport/doc-view-2358.html
然后在序号单元格设置条件属性,假设只留前5个,就设置条件,当前值大于5,行高为0
可以参考https://bbs.fanruan.com/wenda/question/110899.html