請問如何使用EXCEL IF函數搜尋儲存格特定字串?
例如:如要搜尋A1儲存格中是否含有花、草、葉子、果實等其中一個字串,如果有則利用IF函數分辨為真,則在B1儲存格出現"植物",反之出現為"非植物",謝謝
回答 (3)
.
=IF(SUM(ISNUMBER(FIND({"花","草","葉子","果實"},A1))*1),,"非")&"植物"
或
=IF(SUM(ISERR(FIND({"花","草","葉子","果實"},A1))*1)=4,"非",)&"植物"
=IF(OR(ISNUMBER(FIND("花",A1)),ISNUMBER(FIND("草",A1)),ISNUMBER(FIND("葉子",A1)),ISNUMBER(FIND("果實",A1))),"植物","非植物")
收錄日期: 2021-04-28 16:27:44
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20160301223808AAvEKWh
檢視 Wayback Machine 備份