請問在excel 如何設定 formula :
e.g.
A1 = L or S
B1 = 10000 (when A1 = S) or 9888 (when A1 = L)
C1 = S (when A1 = L) or L (when A1=S)
D1 = 9888 or 10000
E : formula needed (if A1=S, then B1-D1; and if A1=L, then D1-B1)
thanks.