傳回在文字中找到指定字串第一次出現的位置 (不區分大小寫)。
使用範本
SEARCH("n",A2)
SEARCH("wood","How much wood can a woodchuck chuck",14)
語法
SEARCHB(搜尋, 搜尋文字, [開始])
搜尋過的對象
- The string to look for within搜尋文字
.搜尋文字
- The text to search for the first occurrence of搜尋過的對象
.starting_at
- [ OPTIONAL -1
by default ] - The character within搜尋文字
at which to start the search.
附註
- Ensure that
搜尋過的對象
和搜尋文字
are not supplied in reverse order, or the#VALUE!
error will likely be returned. 發生瀏覽後轉換之後,(DFA) Floodlight 銷售廣告代碼所傳送的arguments are supplied in a different order than other text functions such asSPLIT
andSUBSTITUTE
. - It's recommended to use a function such as
IFERROR
to check for cases when there aren't matches to the search.
另請參閱
SUBSTITUTE
: 以新文字取代字串中的現有文字。
SPLIT
: 以指定字元或字串分隔文字,並將分隔後的區段放入同一列的不同儲存格。
FIND
: 傳回在文字中找到指定字串第一次出現的位置 (區分大小寫)。
IFERROR
: 如果第一個引數不是錯誤值則傳回第一個引數,否則傳回第二個引數 (如果存在);如果第二個引數不存在,則傳回空值。