Lesson 58 of 92 · Free Excel Course
Excel · Excel function reference
Excel FIND Function: Syntax, Examples and Common Errors
How the Excel FIND function returns the position of text: syntax, case-sensitive contains tests, first names, second occurrences and #VALUE! fixes.
The FIND function tells you where one piece of text starts inside another. =FIND("@","sam@example.com") returns 4, because the @ is the 4th character. The answer is always a number counted from the first character, and if the text isn't there you get #VALUE!. FIND is case-sensitive (it treats "Pro" and "PRO" as different) and it doesn't use wildcards. On its own a position isn't very exciting, but feed it into LEFT or MID and you can pull out first names, codes and anything after a dash. FIND is available in Excel for Microsoft 365 (Windows and Mac), Excel for the web, Excel 2024, Excel 2021, Excel 2019 and Excel 2016.
Don't confuse it with Find & Replace (Ctrl+F, or Home > Editing > Find & Select > Find). That box jumps to matching cells on the sheet. The FIND function is a formula that works inside one cell and hands back a number.
Syntax
=FIND(find_text, within_text, [start_num])
- find_text (required): the text you're looking for, in quotes (
"-","PRO") or a cell reference. It's matched exactly, capitals included.?and*are treated as ordinary characters, not wildcards. If it is empty (""), FIND returns the start position, normally 1. - within_text (required): the text to look in, usually a cell such as A2. A number or date is searched as its stored value, not as it is formatted.
- start_num (optional): the character to start looking from. If you leave it out it is 1. It must be at least 1 and no larger than the length of within_text, or FIND returns #VALUE!. The result still counts from the first character, not from start_num.
Examples
Microsoft's example: case and start_num
This is the example from Microsoft's FIND help page. A2 holds the name Miriam McGovern.
| A | B | C | |
|---|---|---|---|
| 1 | Data | Formula | Result |
| 2 | Miriam McGovern | =FIND("M",A2) | 1 |
| 3 | =FIND("m",A2) | 6 | |
| 4 | =FIND("M",A2,3) | 8 |
The capital M is character 1. Searching for a small m skips it and finds the end of "Miriam" at 6. With start_num 3, FIND ignores the first two characters and finds the M of "McGovern" at 8. Notice it says 8, not 6: the count always starts from the beginning of the cell.
Does the cell contain this text? (case-sensitive)
FIND returns a number or an error, which is awkward for a yes/no question. Wrap it in ISNUMBER: any number becomes TRUE and the #VALUE! becomes FALSE. Here only products with "PRO" in capitals should count as the pro range.
| A | B | |
|---|---|---|
| 4 | Product | Has PRO? |
| 5 | PRO-220 Router | TRUE |
| 6 | Laptop Pro 14 | FALSE |
| 7 | Proton Cable | FALSE |
| 8 | Mouse PRO | TRUE |
Put it inside IF to show your own words: =IF(ISNUMBER(FIND("PRO",A5)),"Pro range","Standard"). The same test works as a conditional formatting rule (see conditional formatting).
First name and the text after a character
FIND tells LEFT and MID how far to go. The space is the dividing line in a full name.
| A | B | C | |
|---|---|---|---|
| 10 | Full name | First name | Last name |
| 11 | Dana Whitfield | Dana | Whitfield |
| 12 | Luis Ortega | Luis | Ortega |
| 13 | Priya Nair | Priya | Nair |
In "Dana Whitfield" the space is character 5, so FIND(" ",A11)-1 is 4 and LEFT takes 4 characters: Dana. For the last name, MID starts one character after the space. LEN(A11) is simply "plenty": when you ask MID for more characters than are left, Microsoft's MID page says it returns everything up to the end. Swap the space for any other character, such as ":" or "#", to take the text after that character instead.
The second occurrence: FIND inside FIND
To find the second dash, start the search one character after the first dash. These warehouse bin codes have the aisle between the first and second dashes.
| A | B | C | D | |
|---|---|---|---|---|
| 15 | Bin code | 1st dash | 2nd dash | Aisle |
| 16 | WH2-A14-07-B | 4 | 8 | A14 |
| 17 | WH10-C3-22-A | 5 | 8 | C3 |
| 18 | WH7-B210-05-C | 4 | 9 | B210 |
In one cell, without the helper column, the second dash is =FIND("-",A16,FIND("-",A16)+1). Nest it once more for the third. Because the codes have different lengths, a fixed MID would break; FIND adapts to each row.
Common errors
- #VALUE! because the case doesn't match. Microsoft's own example:
=FIND("gloves","Gloves (Youth)",1)is #VALUE!. If capitals shouldn't matter, use SEARCH instead. - #VALUE! because the text isn't there. A name with no space, such as "Cher", breaks the first-name formula. Catch it with IFERROR:
=IFERROR(LEFT(A2,FIND(" ",A2)-1),A2)returns the whole cell instead. See Excel errors and fixes. - #VALUE! from start_num. A start_num of 0 or below, or larger than the text's length, is an error. Microsoft's example
=FIND("s","Functions and formulas",25)fails because the text has only 22 characters. Check the length with LEN. - A date that won't match "/". A date cell holds a serial number (12/15/2026 is 46371), so
FIND("/",A2)is #VALUE!. SearchTEXT(A2,"m/d/yyyy")instead. - A blank search cell matches everything.
=FIND(D1,A2)returns 1 when D1 is empty, so ISNUMBER says TRUE for every row. Guard it:=IF(D1="",FALSE,ISNUMBER(FIND(D1,A2))). - An extra space or a missing letter. Leave off the
-1in the first-name formula and you get "Dana " with a trailing space; leave off the+1in MID and the result starts with the space.
Related functions
- Text functions: the full lesson on LEFT, MID, TRIM, SUBSTITUTE and TEXTBEFORE, which can replace some FIND formulas.
- SEARCH function: the same job without case sensitivity, plus wildcards.
- LEN function: counts characters, often paired with FIND and MID.
- EXACT function: a case-sensitive test of whether two whole cells match.
Try it yourself
Download the practice workbook. The Practice sheet has yellow cells for Microsoft's example, the case-sensitive PRO test, first and last names, and the second-dash aisle codes. The Answers sheet has the working formulas so you can check every result.
Frequently asked questions
What is the difference between FIND and SEARCH in Excel?
Both return the position of one piece of text inside another and take the same three arguments. FIND is case-sensitive and treats ? and * as ordinary characters. SEARCH ignores case and lets you use the wildcards ? and *. Use FIND when capitals matter, SEARCH when they don't.
How do I check if a cell contains certain text with FIND?
Wrap FIND in ISNUMBER: =ISNUMBER(FIND("PRO",A2)) returns TRUE when A2 contains PRO in capitals and FALSE when it doesn't, instead of a #VALUE! error. Put it inside IF to show your own words: =IF(ISNUMBER(FIND("PRO",A2)),"Yes","No").
Why does FIND return #VALUE! when the text is clearly there?
Usually the case doesn't match. FIND treats gloves and Gloves as different text, so =FIND("gloves","Gloves (Youth)") is #VALUE!. Use SEARCH if case shouldn't matter. A start_num of 0, or one larger than the length of the text, also gives #VALUE!.
How do I find the second occurrence of a character?
Start the second FIND one character after the first match: =FIND("-",A2,FIND("-",A2)+1). For a third match, nest it once more. If the character only appears once, the formula returns #VALUE!.
Is the FIND function the same as Ctrl+F?
No. Ctrl+F opens the Find and Replace box, which jumps to matching cells on the sheet. The FIND function is a formula that returns a number (the position of the text inside one cell), so you can use the result in other formulas.