次搜尋

傳回在文字中找到指定字串第一次出現的位置 (不區分大小寫)。

使用範本

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 as SPLIT and SUBSTITUTE.
  • 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: 如果第一個引數不是錯誤值則傳回第一個引數,否則傳回第二個引數 (如果存在);如果第二個引數不存在,則傳回空值。

範例

true
造訪學習中心

您有在公司或學校使用 Google 文件等 Google 產品嗎?快來試試實用的秘訣、教學課程和範本,瞭解如何在不安裝 Office 的情況下處理 Office 檔案、建立動態專案計劃和小組日曆、自動整理收件匣及進行其他作業。

搜尋
清除搜尋內容
關閉搜尋
主選單
3104316417374570558
true
搜尋說明中心
true
true
true
true
true
35
false
false