✔ 最佳答案
C1:
=(SUMIF(A1:A13,">0")*200-COUNTIF(A1:A13,">0")*1000)/COUNTIF(A1:A13,">0")
C2:
=(SUMIF(A1:A13,"<0")*200-COUNTIF(A1:A13,"<0")*1000)/COUNTIF(A1:A13,"<0")
C3:
=ABS(C1/C2)
2012-09-25 11:25:02 補充:
EXCEL.分別取出〔>0或<0〕的〔總計〕及〔個數〕運算
<.准提部林.>
-------------------------------
■條件1:
(大於 0 的數值加總 X 200 減 挑選的個數 X 1000) / 挑選的個數
C1公式:
=(SUMIF(A1:A13,">0")*200-COUNTIF(A1:A13,">0")*1000)/COUNTIF(A1:A13,">0")
或
=SUMIF(A1:A13,">0")*200/COUNTIF(A1:A13,">0")-1000
■條件2:
(小於 0 的數值加總 X 200 減 挑選的個數 X 1000) / 挑選的個數
C2公式:
=(SUMIF(A1:A13,"<0")*200-COUNTIF(A1:A13,"<0")*1000)/COUNTIF(A1:A13,"<0")
或
=SUMIF(A1:A13,"<0")*200/COUNTIF(A1:A13,"<0")-1000
■條件3:
條件1算出的值/條件2算出的值取絕對值
C3公式:
=ABS(C1/C2)
或
=ABS((SUMIF(A1:A13,">0")*200/COUNTIF(A1:A13,">0")-1000)/
(SUMIF(A1:A13,"<0")*200/COUNTIF(A1:A13,"<0")-1000))
--------------------------------