本帖最后由 小書生 于 2023-3-3 08:15 编辑
第一题
- SUM({-1;1}*DDB(SUMIF(B$1:AF$1,"<"&C$1:AF$1+{0;1},B$3),AG5,1,1)*C$2:AF$2/B$2:AE$2)
复制代码- =SUM({-1;1}*TEXT(SUMIF(B$1:AF$1,"<"&C$1:AF$1+{0;1},B$3)-AG5,"[<]!0")*C$2:AF$2/B$2:AE$2)
复制代码
第二题
- =SUM(TEXT(SUMIF(B$4:M$4,"<"&B$4:M$4+{0;1},B5)-P5,"[<]!0")*B$2:M$2*B$3:M$3*{-1;1})
复制代码- =SUM(DDB(SUMIF(B$4:M$4,"<"&B$4:M$4+{0;1},B5),P5,1,1)*B$2:M$2*B$3:M$3*{-1;1})
复制代码
第三题
- =SUM(DDB(B7,SUMIF($1:$1,">"&B$1:AG$1-{1;0},A$4),1,1)/IFNA(B$2:AG$2*B$3:AF$3,B$2*B$3/{1;2})*{-1;1})
复制代码- =SUM(TEXT(B7-SUMIF($1:$1,">"&B$1:AG$1-{1;0},A$4),"[<]!0")/IFNA(B$2:AG$2*B$3:AF$3,B$2*B$3/{1;2})*{-1;1})
复制代码
第四题
- =SUM(DDB(B20,SUMIF($2:$2,">"&A$2:AR$2-{1;0},A4),1,1)*IF(A$3:AR$3>0,B4:AS4,D4*{1;2})*C4:AT4*{-1;1})
复制代码- =SUM(TEXT(B20-SUMIF($2:$2,">"&A$2:AR$2-{1;0},A4),"[<]!0")*IF(A$3:AR$3>0,B4:AS4,D4*{1;2})*C4:AT4*{-1;1})
复制代码
就这样吧,笨方法!
|