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

Data Analysis

  • How to Use Solver Tool in Excel
  • Understanding Anova in Excel
  • How to sum a total in multiple Excel tables
  • Excel Frequency Function Example
  • Excel Line Chart

References

  • How to use Excel MMULT Function
  • How to use Excel VLOOKUP Function
  • Excel Advanced Lookup using Index and Match Functions
  • Find closest match in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation must not contain
  • Excel Data validation no punctuation
  • Excel Data validation with conditional list
  • Excel Data validation must begin with

Excel Data validation must contain specific text

by

How to set criteria in Excel to accept specific text.

To allow only values that contain a specific text string, you can use data validation with a custom formula based on the FIND and ISNUMBER functions.

Formula

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

Explanation

In the example shown, the data validation applied to C5:C9 is:

=ISNUMBER(FIND("XST",C5))

Note: Data validation rules are triggered when a user adds or changes a cell value.

How this formula works

In this formula, the FIND function is configured to search for the text “XST” in cell C5. If found, FIND will return a numeric position (i.e. 2, 4, 5, etc.) to represent the starting point of the text in the cell. If the text is not found, FIND will return an error. For example, for cell C5, FIND will return 5, since “XST” starts at character 5.

The result returned by the FIND function is then evaluated by the ISNUMBER function. For any numeric result returned by FIND,  ISNUMBER will return TRUE and validation will succeed. When text isn’t found, FIND will return an error, ISNUMBER will return FALSE, and the input will fail validation.

Must not contain

To validate input only when a cell does not contain specific text, you can replace the ISNUMBER function with ISERROR like this:

=ISERROR(FIND("XST",C5))

This formula will return TRUE when “XST” is not found, and data validation will succeed.

Note: Cell references in data validation formulas are relative to the upper left cell in the range selected when the validation rule is defined, in this case C5.

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

  • IF with wildcards in Excel
  • How to use Excel OR Function
  • Nested IF function example in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to enter Today’s Date or Static Date and Time in Excel
  • Calculate number of hours between two times in Excel
  • How to get Weekdays, Working days between Two Dates in Excel
  • Convert Excel time to decimal minutes
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Categorize text with keywords in Excel
  • How to randomly assign data to groups in Excel
  • Map text to numbers in Excel
  • Running count group by n size in Excel
  • How to randomly assign people to groups in Excel

General

  • Automatically fill series of cells in Excel using AutoFill
  • Hide and Unhide Columns or Rows in Excel
  • How to test a range for numbers in Excel
  • Excel Default Templates
  • How to calculate percent sold in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning