What FIND does
FIND returns the position where one piece of text first appears inside another, counting characters from the left. =FIND("-",A2) returns 4 when A2 holds WEB-10482, because the dash is the fourth character. FIND matches capitals exactly, and when the text isn’t there it shows #VALUE!.
A position on its own is rarely the answer. It’s what LEFT, MID and RIGHT need when the part you want changes length from row to row, such as a first name that ends at the first space or a domain that starts after the @. FIND works out where to cut, so one formula fits every row.
SEARCH does the same job but ignores capitals and accepts wildcards. Use FIND when the capitals matter.
Syntax
find_textRequired- What to look for, in quotation marks, such as
"-"or"@", or a cell. Capitals must match, and*and?are ordinary characters here. within_textRequired- The text to search, usually a cell such as
A2. start_numOptional- The character to start searching from. Leave it out to start at the first. The answer still counts from the start of the text.
Example: split an order reference at the dash
Each order reference starts with the sales channel, and the channels have different lengths. B2 finds the dash, and C2 takes everything before it. Both formulas are filled down to row 4.
LEFT takes one character fewer than the position, so the dash itself stays out. Put together in one cell, the formula is =LEFT(A2,FIND("-",A2)-1).
Example: find a code written in capitals
Notes on an order mention a purchase order as PO. FIND looks for exactly PO, so the “po” inside Portland or Report doesn’t count. ISNUMBER turns the position into TRUE, and the #VALUE! of a note without PO into FALSE.
FIND vs SEARCH
Both return the position of the first match and take the same three arguments. They differ in how strictly they match.
| Feature | FIND | SEARCH |
|---|---|---|
| Capitals | Must match: “PO” doesn’t find “po” | Ignored: “po” finds “PO” |
Wildcards ? and * | Ordinary characters | ? is any one character, * any run of characters |
| Text not found | #VALUE! | #VALUE! |
Common mistakes
=FIND("urgent",A2)shows#VALUE!when A2 says “URGENT: call back”, because the capitals differ. Use SEARCH when capitals don’t matter.=LEFT(A2,FIND("-",A2))keeps the dash and returns WEB-. Take one character fewer:FIND("-",A2)-1.- A row without the character gives
#VALUE!, and so does every formula built on it. Test withISNUMBER(FIND(...)), or wrap the formula in IFERROR for those rows. =FIND("*",A2)looks for an actual asterisk. FIND has no wildcards, so for a pattern such as"INV-????"use SEARCH.- A start_num of 0, or one past the end of the text, also shows
#VALUE!.
Frequently asked questions
What is the difference between FIND and SEARCH in Excel?
FIND matches capitals exactly and treats ? and * as ordinary characters. SEARCH ignores capitals and uses ? and * as wildcards. Both return the position of the first match, or #VALUE! when there’s none.
How do I find the second occurrence of a character?
Start the search one character after the first match: =FIND("-",A2,FIND("-",A2)+1) returns 8 for UK-4471-B, where the second dash is. For the third or later copies, the SUBSTITUTE page shows a shorter way.
Why does FIND return #VALUE!?
The text isn’t in the cell as written: check the capitals, and look for a space or a different dash. A start_num of 0 or past the end of the text gives the same error.
How do I check if a cell contains certain text with FIND?
Put FIND inside ISNUMBER: =ISNUMBER(FIND("PO",A2)) returns TRUE when A2 contains PO in capitals. For any capitals, use =ISNUMBER(SEARCH("po",A2)).
Can FIND search from the right?
No, it always counts from the left. To find the last dash in Microsoft 365 or Excel 2024, =TEXTAFTER(A2,"-",-1) returns what follows it. In older versions, count the dashes with LEN and SUBSTITUTE and swap the last one for a character FIND can look for.