ElyxAI
formulas

How to Use FIND Function

Excel 2016Excel 2019Excel 365Excel OnlineGoogle SheetsLibreOffice Calc

Learn to use the FIND function to locate the position of specific text within a cell. This function returns the starting position of a substring, enabling you to extract data, validate entries, and automate text searches. Essential for data cleaning, text parsing, and conditional logic in professional spreadsheets.

Why This Matters

The FIND function is critical for data extraction, text validation, and automating search operations across large datasets. It saves time when parsing addresses, extracting codes, or locating specific characters in messy data.

Prerequisites

  • Basic understanding of Excel formulas and cell references
  • Familiarity with text data in spreadsheets

Step-by-Step Instructions

1

Open your spreadsheet and select a cell

Click on an empty cell where you want the result to appear (e.g., C2). This cell will contain your FIND formula.

2

Type the FIND formula syntax

Enter =FIND(find_text, within_text, [start_num]). Replace find_text with the text to locate (in quotes), within_text with the cell reference, and start_num (optional) with the character position to begin searching.

3

Enter your search parameters

Example: =FIND("@", A2) searches for the @ symbol in cell A2. Use quotes around the text you're searching for; cell references need no quotes.

4

Press Enter to execute the formula

Excel will return the position number where the text is first found (e.g., 5 means the text starts at the 5th character). If not found, it displays #VALUE! error.

5

Copy the formula down to apply to multiple rows

Click the cell with your formula and drag the fill handle (small square at bottom-right) down to apply it to other rows. Or select the range and press Ctrl+D to fill down.

Alternative Methods

Use SEARCH function

SEARCH is similar to FIND but case-insensitive and supports wildcards. Use =SEARCH("text", A2) when you don't need exact case matching.

Combine with MID for text extraction

Nest FIND inside MID: =MID(A2, FIND("@", A2), 5) to extract 5 characters starting at the @ symbol's position.

Use in conditional logic with IF

Wrap with IF to handle errors: =IF(ISERROR(FIND("@", A2)), "Not found", FIND("@", A2)) returns custom text if search fails.

Tips & Tricks

  • FIND is case-sensitive; use SEARCH for case-insensitive searches.
  • The start_num parameter begins counting from 1, not 0.
  • Combine FIND with LEN to extract text after a specific character.
  • Use ISNUMBER(FIND()) to verify if text exists without displaying errors.

Pro Tips

  • Use AGGREGATE to skip errors when applying FIND across multiple cells with inconsistent data.
  • Combine FIND with SUBSTITUTE to replace text starting from a specific position dynamically.
  • Nest FIND inside MATCH to locate which row contains specific text across entire columns.
  • Use FIND with INDIRECT to search in dynamically named ranges or arrays.

Troubleshooting

Formula returns #VALUE! error

This occurs when the search text isn't found. Use IFERROR or ISNUMBER to handle missing values gracefully: =IFERROR(FIND("text", A2), "Not found").

FIND returns wrong position in data with line breaks

Line breaks count as characters. Use SUBSTITUTE to remove them first: =FIND("text", SUBSTITUTE(A2, CHAR(10), "")).

Case-sensitive search not working as expected

Ensure you're using FIND (case-sensitive), not SEARCH. FIND treats "ABC" differently from "abc".

Start_num parameter not advancing correctly in loops

Manually increment start_num or use nested FIND with MID to search beyond the first occurrence.

Related Excel Formulas

Frequently Asked Questions

What's the difference between FIND and SEARCH?
FIND is case-sensitive and doesn't support wildcards, while SEARCH is case-insensitive and accepts wildcards (? and *). Use FIND for exact matches and SEARCH for flexible searches.
Can I find the last occurrence of text, not just the first?
FIND only returns the first position. To find the last occurrence, use a combination of SUBSTITUTE and LEN: =LEN(A2)-LEN(SUBSTITUTE(A2,"text",""))+1 or nest FIND with RIGHT and MID functions.
How do I extract text after finding its position?
Combine FIND with MID or RIGHT: =MID(A2, FIND("@", A2)+1, 100) extracts 100 characters starting after the @ symbol. Adjust the length parameter as needed.
Why does FIND return an error with some cells?
FIND returns #VALUE! when the search text doesn't exist in the cell. Use IFERROR or ISNUMBER to manage these cases: =IFERROR(FIND("text", A2), 0).
Is FIND available in all Excel versions?
Yes, FIND is a legacy function available in all Excel versions including Excel 2016, 2019, and 365. It's also available in Google Sheets and LibreOffice Calc.

This was one task. ElyxAI handles hundreds.

Sign up