若我於A1打上文字A,在B1格打上公式=IF(A1="A","A" ,"0"),答案是A 若我於A1打上B,在B1格會出現0,若我想A1格打A或B,在B1格答案是A,或B,其他就出現0,我試過=IF(A1="A","A","0")&(A1="B","B","0"),不成功,請幫忙?

2016-07-14 6:16 am

回答 (2)

2016-07-14 1:32 pm
✔ 最佳答案
2 種寫法都可以:
1. if(or(a1="A",a1="B"), a1, 0) 比較簡單
2. if(a1="A",a1,if(a1="B",a1,0)) 比較可以多變
2016-07-23 6:14 am
若我於A1打上文字A,在B1格打上公式=IF(A1="A","A" ,"0"),答案是A 若我於A1打上B,在B1格會出現0,若我想A1格打A或B,在B1格答案是A,或B,其他就出現0,我試過=IF(A1="A","A","0")&(A1="B","B","0"),不成功,請幫忙?


收錄日期: 2021-04-18 15:14:49
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20160713221647AAFHGYS

檢視 Wayback Machine 備份