if($flag = 1, if($a = 1, A3, -A3), if($b = 1, D3, -D3))
我在最左父格添加的 公式是这样写的 (文档中说这是只有两列时的写法)
有没有大神帮忙指导一下,多列动态排序时 switch 怎么写
https://help.fanruan.com/finereport/doc-view-1894.html
这事我借鉴的文档的链接,烦请大神指导
1.新建2个模板参数,a和asc,a默认值1,asc默认要排序的单元格,如A3
2.每个要排序的表头增加动态参数超链,动态参数如下:
a:
if($asc = if(col() <= 26, CONCATENATE(char(col() + 64), 3), CONCATENATE(char(int((col() - 1) / 26) + 64), char((col() - 1) % 26 + 65), 3)), if($a = 1, 0, 1), 1)
asc:
if(col() <= 26, CONCATENATE(char(col() + 64), 3), CONCATENATE(char(int((col() - 1) / 26) + 64), char((col() - 1) % 26 + 65), 3))
3.在最左的父格设置拓展后排序,升序,=if($a = 0, eval($asc), eval($asc) * -1)