Going Stellar

Home/Google Sheets reference

Google Sheets function · Text

FIND in Google Sheets: syntax and examples

FIND returns the position where one text first appears inside another, counted from 1. It tells upper and lower case apart, so it suits codes and exact tags.

Syntax

FIND(search_for, text_to_search, [starting_at])

Arguments

ArgumentTypeRequiredWhat it does
search_fortextyesThe text to look for. Matching is case-sensitive and wildcards are not supported.
text_to_searchtextyesThe text or the cell to look in.
starting_atnumbernoThe position to start from, counted from 1. Default is 1.

Examples

The examples use this table, starting in A1:

Text
invoice-2026-0042
Invoice 55
no number here
a-b-c-d
Hello World
=FIND("-", A2)

Result: 8

Position of the first hyphen in invoice-2026-0042.

Run in a Google Sheet (English US locale) on .

=FIND("-", A2, 9)

Result: 13

Start at character 9 to skip the first hyphen and land on the second.

Run in a Google Sheet (English US locale) on .

=FIND("World", A6)

Result: 7

Position of a word inside a sentence.

Run in a Google Sheet (English US locale) on .

=IFERROR(FIND("invoice", A3), 0)

Result: 0

The cell holds Invoice with a capital I, so the case-sensitive search fails and IFERROR returns 0.

Run in a Google Sheet (English US locale) on .

=MID(A2, FIND("-", A2) + 1, 4)

Result: 2026

FIND gives the start for MID: the four characters after the first hyphen.

Run in a Google Sheet (English US locale) on .

Common errors

  • FIND is case-sensitive. Looking for invoice in Invoice 55 returns #VALUE!. Use SEARCH when case should not matter.
  • No wildcards: ? and * are plain characters here, so FIND("-*", A2) fails on text that has no literal asterisk.
  • A text that is not found returns #VALUE!, not 0 or an empty cell. Wrap it in IFERROR when some rows may not match.
  • starting_at must be between 1 and the length of the text. 0 or a bigger number returns #VALUE!.

Compared with Excel

Same syntax in Excel. In both, FIND is case-sensitive and SEARCH is not.

Sources

  1. FIND (Docs Editors Help)

Markdown version · All functions