二维数组
=
"["&
IF('#value'!I4>0, "["&'#value'!I4&","&'#value'!J4&","&'#value'!K4&"]","")
&
IF('#value'!L4>0, ",["&'#value'!L4&","&'#value'!M4&","&'#value'!N4&"]","")
&
IF('#value'!O4>0, ",["&'#value'!O4&","&'#value'!P4&","&'#value'!Q4&"]","")
&
IF('#value'!R4>0, ",["&'#value'!R4&","&'#value'!S4&","&'#value'!T4&"]","")
&
IF('#value'!U4>0, "|"&'#value'!U4&","&'#value'!V4&","&'#value'!W4&"]","")
&"]"
字典表
=
IF(OR('#Sheet2'!O4>0,'#Sheet2'!P4>0),"{","")
&
IF('#Sheet2'!O4>0,'#Sheet2'!O4,"")&IF(AND('#Sheet2'!O4>0,'#Sheet2'!P4>0),",","")&IF('#Sheet2'!P4>0,'#Sheet2'!P4,"")
&
IF(OR('#Sheet2'!O4>0,'#Sheet2'!P4>0),"}","")
定义变量
excel中的VBA定义变量几种类型与作用域-百度经验 (baidu.com)
网友评论