Help would be appreciated guys :)
I'm creating a ledger and I'm a little confused on the IF,THEN function. My dilemma goes as follows:
Function for Cell E1:
If cell A1 contains the word "BUY", then execute the formula: "B1 * C1"
OR
If cell A1 contains the word "SELL", then execute the formula: "(100 - B1) * C1"
Note: Cell A1 will contain ONLY one of two words, "BUY" or "SELL"
Any help would be appreciated, this is like Greek to me :/
尝试这个:
=IF(A1 = "BUY", B1 * C1, IF(A1 = "SELL", (100 - B1) * C1, ""))
在E1中尝试一下,
=if(b1="sell", 100 -b1, b1) * C1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.