SEARCH Function in Apple Numbers: Formula, Examples & Troubleshooting
Learn the SEARCH formula in Apple Numbers: locate a substring without case-sensitive matching, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
SEARCH finds the one-based starting position of text without considering case. The original formula =SEARCH("sHEET","Google Sheets") gives 8, and =SEARCH("-","INV-482") gives 4. Wildcards can change what is matched and where the match begins.
Availability and version history
- Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
- Availability: Currently documented in Apple’s Formulas and Functions Help 15.4 edition; this is not a Numbers app version or a final supported-version endpoint.
- Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
- Checked: October 14, 2026, against the official SEARCH reference. Official documentation and independent text checks; no native Numbers execution.
Apple syntax, starting position and wildcards
SEARCH(search-string, source-string, start-pos)
The first two arguments are strings. The optional numeric start defaults to 1 and must lie from 1 through the number of characters in the source. Apple’s SEARCH reference explicitly supports:
*for a variable-length character sequence.?for one character.~to make the following character literal rather than a wildcard.
The result is an absolute position in the original source, even when a later starting position is used. FIND is the case-sensitive alternative and has a different wildcard contract. Neither function validates the meaning of an identifier.
Keep the two original literal examples
Create SearchLiterals, with four columns and five rows including one header row. Enter the two original formulas in B2 and B3:
| Cell | Formula | Expected result |
|---|---|---|
| B2 | =SEARCH("sHEET","Google Sheets") |
8 |
| B3 | =SEARCH("-","INV-482") |
4 |
The six letters in Google occupy positions 1–6, the space is position 7, and Sheets begins at 8. In INV-482 the hyphen follows three letters. These are text-position results, not date values or percentages.
Make the inputs and starts visible
Create CaseSearch, with five columns and six rows, one header row. Use A for Source, B for Query, C for Start, D for Position and E for Extracted text. Enter these inputs in A2:C6 as text and numbers:
| Row | A — Source | B — Query | C — Start | Expected D |
|---|---|---|---|---|
| 2 | Google Sheets | sHEET | 1 | 8 |
| 3 | Google SHEETS | sheet | 1 | 8 |
| 4 | INV-482 | - | 1 | 4 |
| 5 | pre INV-482 post | inv | 1 | 5 |
| 6 | red-red-red | RED | 1 | 1 |
D2 =SEARCH(B2,A2,C2) filled through D6 gives the listed positions. In E2 enter =MID(A2,D2,LEN(B2)) and fill through E6. Expect Sheet, SHEET, -, INV, red. SEARCH ignores case when locating the substring, but MID preserves the characters actually present in the source.
Reproduce later matches and Apple’s wildcard examples
Create PatternCases, with four columns and nine rows. Put Source, Pattern, Start and Result in A1:D1. Enter the following A:C inputs and use =SEARCH(B2,A2,C2) in D2, filled through D8:
| Row | Source | Pattern | Start | Expected result |
|---|---|---|---|---|
| 2 | abracadabra | ra | 1 | 3 |
| 3 | abracadabra | ra | 5 | 10 |
| 4 | capslock | *lock | 1 | 1 |
| 5 | capslock | ?lock | 1 | 4 |
| 6 | capslock | l*k | 1 | 5 |
| 7 | Capslock on? No. | ~? | 1 | 12 |
| 8 | capslock | *lok | 1 | error |
All seven outcomes follow Apple’s examples. The leading asterisk in row 4 can include the letters before lock, so the result is 1 rather than lock’s own position 5. Row 5 includes the single character before lock. Row 7 locates a literal question mark, not an arbitrary single-character wildcard.
Apple labels row 8 as an error without specifying its exact displayed token. Keep that distinction rather than importing another spreadsheet’s error spelling. The page also demonstrates a REGEX search token, a separate pattern mechanism from these ordinary wildcard strings.
Advanced: locate a marker whose capitalization varies
Create TicketFields, with six columns and five rows. Enter these four source strings in A2:A5, with the spaces exactly as shown:
Ticket: AB-204 | Openticket: CD-007 | HoldTICKET: EF-310 | OpenRe: Ticket: GH-500 | Closed
Put these formulas in row 2 and fill B2:F2 through row 5:
B2: =SEARCH("ticket:",A2)
C2: =B2+LEN("ticket: ")
D2: =SEARCH(" | ",A2,C2)
E2: =D2-C2
F2: =MID(A2,C2,E2)
The marker positions B are 1,1,1,5; starts C are 9,9,9,13; separators D are 15,15,15,19. Every E is 6, and F contains AB-204, CD-007, EF-310, GH-500.
Copy the table as ChangedStatus and change only A2 to Ticket: AB-204 | Reopened. B2:F2 retain their original values because only the text after the separator changed. Missing markers, extra earlier markers or empty fields require separate validation; this example assumes one intended marker and a nonempty ID.
Troubleshooting and related checks
A start of 0 or beyond the source length is outside Apple’s documented range. If a wildcard result seems unexpectedly early, inspect what the entire pattern can match, including any prefix consumed by * or ?. Use a tilde when the punctuation itself is the target.
EXACT compares complete text with case sensitivity. LEN measures text length, while TRIM changes ordinary spacing. Cleaning inputs can change their positions, so keep raw text and transformed text in separate cells.
Platform and text boundaries
These examples use local references within the named Numbers table. English multi-argument formulas use commas; Apple’s syntax guidance specifies semicolons when the decimal separator is a comma. A one-argument formula such as LEN or TRIM has no argument separator to change.
The help edition does not establish identical Unicode, imported-value, numeric/date conversion or error behavior in every client and historical release. Keep identifiers as text when zeros, spaces or punctuation matter. A matching length or cleaned label is not proof of a valid or unique record.