Joseph
2008-07-16 12:19:52 UTC
各位好, 請問一個問題
假設
A 1~ A10 = a, b, c, a, a, a, d,
b, a, e
B1~B10 = open, close, temp, open, open, close, temp, open, close, close
C1~C10 = yes, yes, no, yes, no, yes, yes, yes,
no , yes
D1~D10 = 5, 100, 20, 30, 10, 300, 200, 5,
7, 9
我想統計 符合(A 欄= a & B 欄 = open & C 欄 = Yes ) 這幾個條件的 D 欄數字總和
以此條件為例 = 5+30 = 35
請問該如何使用函數或 VBA 方式來寫?
謝謝
假設
A 1~ A10 = a, b, c, a, a, a, d,
b, a, e
B1~B10 = open, close, temp, open, open, close, temp, open, close, close
C1~C10 = yes, yes, no, yes, no, yes, yes, yes,
no , yes
D1~D10 = 5, 100, 20, 30, 10, 300, 200, 5,
7, 9
我想統計 符合(A 欄= a & B 欄 = open & C 欄 = Yes ) 這幾個條件的 D 欄數字總和
以此條件為例 = 5+30 = 35
請問該如何使用函數或 VBA 方式來寫?
謝謝