Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conditional Formatting Color Scales Examples in Excel
  • Randomize/ Shuffle List in Excel
  • How to Create Area Chart in Excel
  • How to create Checklist in Excel
  • How To Load Analysis ToolPak in Excel

References

  • Count rows that contain specific values in Excel
  • How to use Excel VLOOKUP Function
  • How to reference named range different sheet in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • How to get address of first cell in range in Excel

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation must begin with
  • Data validation must not exist in list
  • Excel Data validation allow weekday only
  • Excel Data validation specific characters only

How to Check If A Cell Contains Specific Text in Excel

by

To check if a cell contains specific text, you can use the ISNUMBER and the SEARCH function in Excel.

The ISNUMBER functions is used to check for a numeric value and the  SEARCH function returns the location of a substring in a string.

There’s no CONTAINS function in Excel.

1. To find the position of a substring in a text string, use the SEARCH function.

Explanation: “duck” found at position 10, “donkey” found at position 1, cell A4 does not contain the word “horse” and “goat” found at position 12.

2. Add the ISNUMBER function. The ISNUMBER function returns TRUE if a cell contains a number, and FALSE if not.

Explanation: cell A2 contains the word “duck”, cell A3 contains the word “donkey”, cell A4 does not contain the word “horse” and cell A5 contains the word “goat”.

3. You can also check if a cell contains specific text, without displaying the substring. Make sure to enclose the substring in double quotation marks.

4. To perform a case-sensitive search, replace the SEARCH function with the FIND function.

Explanation: the formula in cell C3 returns FALSE now. Cell A3 does not contain the word “donkey” but contains the word “Donkey”.

5. Add the IF function. The formula below (case-insensitive) returns “Found” if a cell contains specific text, and “Not Found” if not.

6. You can also use the IF and the COUNTIF function in Excel to check if a cell contains specific text. However, the COUNTIF function is always case-insensitive.

Explanation: the formula in cell C2 reduces to =IF(COUNTIF(A2,”*duck*”),”Found”,”Not Found”). An asterisk (*) matches a series of zero or more characters. Visit our page about the COUNTIF function to learn all you need to know about this powerful function.

Post navigation

Previous Post:

COSH function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Data validation require unique number

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Check multiple cells are equal in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Add business days to date in Excel
  • How to enter Today’s Date or Static Date and Time in Excel
  • TODAY function: Description, Usage, Syntax, Examples and Explanation
  • How to get year from date in Excel
  • How to get number of days, weeks, months or years between two dates in Excel

Grouping

  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel
  • Group times into 3 hour buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Group numbers at uneven intervals in Excel

General

  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Lock Cells in a Worksheet Excel
  • How to get random value from list or table in Excel
  • Subtotal by color in Excel
  • Freeze and Unfreeze Panes in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning