Excel ISTEXT function


The Excel ISTEXT function checks if a value is text. This function is invaluable for validating data types within your spreadsheet, enabling you to distinguish between text and other data types such as numbers, logical values, or errors. ISTEXT is commonly used in data cleaning, conditional formatting, and complex formulas that require specific actions based on data type.
  • value: The value or cell reference you want to test for being text
Return value
  • TRUE if the specified value is text
  • FALSE if it is not text

How to use

ISTEXT is straightforward to use: simply provide the cell reference or value you wish to test. It can be particularly effective when combined with other functions, such as IF, to perform different actions based on whether a cell contains text.


Checking for Text in a Cell: To verify if a cell, such as A1, contains text.

If A1 contains any string of text, this returns TRUE, indicating that the cell holds text. If A1 contains a number, a logical value, an error, or is empty, it returns FALSE.
ISTEXT with Conditional Logic
Implementing Conditional Formatting Based on Text Presence: Using ISTEXT within an IF statement to display messages or execute calculations based on the type of data.
					=IF(ISTEXT(B1), "Text Entered", "Non-text Data")

This formula checks if B1 is text and returns “Text Entered” if true; otherwise, it says “Non-text Data”, helping users to quickly understand the nature of the data in B1.
ISTEXT for Data Validation
Validating Input Types in Data Collection: To ensure that inputs in a data collection form are textual.

Applying ISTEXT across a range can assist in scenarios where textual data entry is required, by identifying cells that do not contain text, thereby aiding in maintaining data consistency and validation.

Additional Notes

  • ISTEXT is crucial for data analysis and processing, especially in scenarios where operations or calculations are contingent on data being of the text type.
  • This function enhances spreadsheet integrity by enabling precise control over data inputs and ensuring that subsequent operations are performed on valid data types.

Related Functions

Excel ISERROR function

The Excel ISERROR function checks for any error value, returning TRUE if any is detected, essential for comprehensive error checking.

Excel ISERR function

The Excel ISERR function tests for any error except #N/A, returning TRUE if found, aiding in error management excluding #N/A.

Excel ISNUMBER function

The Excel ISNUMBER function verifies if a cell contains a number, returning TRUE or FALSE, key for data type validation.

Excel ISNA function

The Excel ISNA function tests for the #N/A error value, returning TRUE if found, important for handling missing data errors.

Excel ISLOGICAL function

The Excel ISLOGICAL function checks if a cell contains a logical value (TRUE or FALSE), crucial for logical operations validation.

Excel ISBLANK function

The Excel ISBLANK function checks if a cell is empty, returning TRUE or FALSE, ideal for conditional logic in formulas.

Content Navigation