![](/img/trans.png)
[英]How to search for a range of cells in excel for a particular string and return the value of the cell that does not contain that string
[英]how to find cell that does not contain particular text and show it's value
我想通過檢查所選單元格F2:M2
不包含世界Not
並在N2
顯示該單元格的值來檢查哪個公式將起作用
任何建議表示贊賞。
數組公式(使用Ctrl + Shift + Enter輸入)將為您提供正確的標題
{=INDEX($F$1:$M$1, 0, MATCH(1, IF(LOWER(LEFT($F$2:$M$2, 3))<>"not", 1, 0), 0))}
我相信您的意思是N2,而不是N1。
您是說在F2:M2范圍內? 我想出的公式為此使用SEARCH()
以及其他一些函數,例如INDEX
, MATCH
和IFERROR
如下所示:
=INDEX(F2:M2,0,MATCH(0,IFERROR(SEARCH("*not*",F2:M2),0),0))
這是一個數組公式,因此,如果您使用Ctrl + Shift + Enter ,將可以正常使用
編輯:糟糕,不需要通配符:
=INDEX(F2:M2,0,MATCH(0,IFERROR(SEARCH("not",F2:M2),0),0))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.