The Excel FIND function locates the position of a specific text string within another string, returning a number that represents its starting character position. It is case-sensitive and does not support wildcards. You need only a cell containing text and the substring you want to find. No add-ins or special settings are required.
What You'll Need
- A Microsoft Excel workbook (any version from 2007 onward)
- Text data in one or more cells (e.g., product names, email addresses, codes)
- The exact substring you wish to locate (e.g., "@gmail.com", "SKU-")
Step-by-Step
- Open your Excel workbook and ensure your text data is in a single column or row — for example, column A contains product codes like "ABC-123-XL" and "XYZ-456-SM".
- Click on an empty cell where you want the result to appear, such as cell B1.
- Type the formula:
=FIND("-",A1)if you are searching for a hyphen in cell A1. Replace "-" with any text you wish to locate, and A1 with the reference to your target cell. - Press Enter. Excel returns the position number — for "ABC-123-XL", the hyphen after "ABC" is at position 4.
- To search for text longer than one character, use the same syntax:
=FIND("XL",A1)returns 8 because "XL" starts at the 8th character in "ABC-123-XL". - Drag the fill handle (small square at bottom-right corner of the selected cell) down to apply the formula to other rows. Excel automatically updates the cell references (e.g., A2, A3, etc.).
- If you want to find the second occurrence of a character, combine FIND with SEARCH or use nested functions — but FIND alone only returns the first match.
- For case-insensitive searches, use SEARCH instead of FIND — but this guide covers FIND specifically for exact, case-sensitive matching.
Common Mistakes
- Using FIND on a cell that contains a number or error value: FIND only works on text. If A1 has the number 123, Excel returns a #VALUE! error. Convert numbers to text using TEXT function or format the cell as text before applying FIND.
- Typing the search text without quotes: =FIND(ABC,A1) will cause a #NAME? error because Excel interprets ABC as a named range or function, not text. Always wrap literal text in double quotes.
- Searching for text that doesn’t exist: If "XZ" is not in "ABC-123-XL", FIND returns #VALUE!. Always verify the substring exists before relying on the result.
- Forgetting case sensitivity: FIND treats uppercase and lowercase as different. Searching for "xl" in "XL" returns #VALUE!. Use SEARCH if case doesn’t matter.
- Using FIND on blank cells: A blank cell (empty string) returns #VALUE! if you search for any non-empty substring. Use IF or ISBLANK to handle blanks gracefully.
Tips
- Combine FIND with LEFT, RIGHT, or MID to extract parts of text. For example, to get everything before the first hyphen:
=LEFT(A1,FIND("-",A1)-1). This returns "ABC" from "ABC-123-XL". - Use IFERROR to handle errors gracefully:
=IFERROR(FIND("@",A1),"Not Found")returns "Not Found" instead of #VALUE! when the @ symbol is missing. - When searching for multiple substrings, nest FIND functions or use separate columns to isolate each result. For example, find the position of both "-" and "X" to determine where to split a code.
- Use FIND with conditional formatting to highlight cells containing specific text — apply a formula rule like
=ISNUMBER(FIND("SKU",A1))to highlight rows with SKU codes. - For long text strings, remember that FIND counts every character, including spaces and punctuation. "Hello World" has a space at position 6.
Troubleshooting
If FIND returns #VALUE!:
- Check that the cell you’re referencing contains text. If it’s numeric, convert it: use
=TEXT(A1,"0")to turn numbers into text strings. - Confirm the search string is spelled exactly as it appears — including spaces, hyphens, and capitalization. Copy and paste the substring directly from the source cell into the FIND formula to avoid typos.
- Verify the cell isn’t empty. Use
=IF(A1="","Empty",FIND("text",A1))to avoid errors on blank cells. - If you’re using a formula across multiple rows but getting #VALUE! in one, inspect that particular cell. It may contain an unexpected character like a non-breaking space (ASCII 160), which looks like a normal space but isn’t found by FIND. Use CLEAN(A1) or substitute with SUBSTITUTE(A1,CHAR(160)," ") to fix this.
- If the formula works in one cell but not another, compare cell formats. Right-click the cell > Format Cells > Text. Sometimes numbers stored as text cause confusion.
- Restart Excel if formulas behave erratically. Corrupted calculation caches can cause inconsistent results.
Frequently Asked Questions
Can FIND locate multiple occurrences of the same text?
No, FIND only returns the position of the first occurrence. To find the second, you must use a combination of FIND and SUBSTITUTE to replace the first instance, then search again.
Does FIND work with dates or numbers?
No. FIND only works with text. Numbers and dates stored as numbers return #VALUE! errors. Convert them to text using TEXT(value,"format") first.
What’s the difference between FIND and SEARCH?
FIND is case-sensitive and does not support wildcards. SEARCH is case-insensitive and allows wildcards like * and ?. Use SEARCH if you need flexibility; use FIND for precise, exact matches.
Can I use FIND to search across multiple cells at once?
No. FIND operates on one cell at a time. To search across multiple cells, you must apply the formula to each cell individually or use array formulas with helper columns.
Why does FIND return 1 when the text isn’t at the start?
This is impossible. If FIND returns 1, the searched text begins at the first character. Double-check your data — perhaps the text is actually at the start, or the cell contains invisible leading characters.
Is there a limit to how long the search text can be?
Excel’s FIND function can search for strings up to 255 characters long, matching the maximum text length allowed in a cell. If your search term exceeds this, break it into parts or use VBA.