FIND() and SEARCH() – Locate Text in Excel Cells

Suresh Nath
By -


 


Microsoft Excel is more than just rows and columns. One of its greatest strengths lies in its powerful formulas and functions. Among them, two frequently used functions for text analysis and data cleaning are FIND() and SEARCH(). Both help locate text within a cell, but they have differences that can impact your workflow.

In this blog, we’ll explore:

  • What are FIND() and SEARCH() functions

  • Syntax and parameters

  • Key differences

  • Practical examples

  • Common mistakes

  • When to use which function

Let’s dive into the world of text locating in Excel!


🔧 What is the FIND() Function?

FIND() is used to locate the starting position of one text string within another.

📌 Syntax:


FIND(find_text, within_text, [start_num])

Parameters:

  • find_text: The character or text you want to find.

  • within_text: The text string where you want to search.

  • start_num (optional): The character position to begin the search (default is 1).

Example:


=FIND("a", "Data Analysis")

Result: 2
Because the first "a" appears in the 2nd position.


🔧 What is the SEARCH() Function?

SEARCH() does the same job as FIND – locating a text string – but with more flexibility.

📌 Syntax:


SEARCH(find_text, within_text, [start_num])

Just like FIND, but the key difference is that SEARCH is case-insensitive, while FIND is case-sensitive.

Example:


=SEARCH("A", "Data Analysis")

Result: 2
It ignores the case and finds "a" or "A" the same way.


🆚 Key Differences Between FIND() and SEARCH()

FeatureFIND()SEARCH()
Case sensitivityCase-sensitiveCase-insensitive
Wildcards support❌ No✅ Yes
Error if not found✅ Yes✅ Yes
Default start11
Use with wildcards like *, ?❌ Not supported✅ Supported

🧪 Practical Examples

1. Find First Occurrence of a Word


=FIND("Excel", "Excel is powerful")

Returns 1 because "Excel" starts at the first character.

2. Case-Insensitive Search


=SEARCH("excel", "Excel is powerful")

Returns 1 – even though the case doesn’t match.

3. Finding Second Occurrence (Using Start Number)


=FIND("a", "Data Analysis", 3)

Returns 6 – the second "a" appears at position 6.


🌀 SEARCH() with Wildcards

Let’s say you want to find the position of the first word that starts with "An".


=SEARCH("An*", "Analysis and Analytics")

Result: 1 – because "Analysis" starts with "An".

Wildcards only work with SEARCH():

  • * matches any sequence of characters

  • ? matches any single character


🧱 Combining FIND/SEARCH with Other Functions

1. Extracting Text Using MID()

If you want to extract a portion of a string starting from a specific keyword:


=MID(A1, SEARCH("Email:", A1)+6, 20)

This pulls text starting after "Email:" (offset of +6) for 20 characters.


2. Find If Word Exists

Use ISNUMBER() with FIND or SEARCH to check existence:


=ISNUMBER(FIND("Excel", A1))

Returns TRUE if "Excel" is found, FALSE otherwise.


3. Get First Name from Full Name

Assuming A1 = "John Doe"


=LEFT(A1, FIND(" ", A1) - 1)

Returns "John"


🛑 Common Errors and How to Fix

ErrorCauseSolution
#VALUE!Text not foundUse IFERROR() or ISNUMBER()
#NAME?Incorrect function nameCheck spelling: it should be FIND, not find
Negative positionInvalid start numberUse start position ≥ 1

Example with IFERROR():


=IFERROR(FIND("Text", A1), "Not Found")

📈 Use Cases in Admin, MIS & Procurement Roles

These functions are incredibly useful in real-world business roles:

  1. Admin/HR – Extract first names from email fields.

  2. Procurement – Search for product codes or PO numbers within long notes.

  3. MIS Reporting – Clean and analyze large datasets where a particular keyword indicates the start of relevant data.

  4. Data Cleaning – Strip unnecessary prefixes or suffixes based on position.


⚖️ When to Use FIND() vs SEARCH()

ScenarioUse
You care about letter caseFIND()
You need flexible searchSEARCH()
You want to use wildcardsSEARCH()
Comparing sensitive keywordsFIND()

Excel FIND function Excel SEARCH formula Locate text in Excel Text functions in Excel FIND vs SEARCH in Excel Case-sensitive search in Excel Excel wildcards with SEARCH Excel MID and FIND Text extraction in Excel Excel formula for name extraction Excel data cleaning tips Excel for MIS reporting Microsoft Excel formulas Excel admin tips Excel string search