Checks whether a value is text
Syntax
ISTEXT(value)
- value—The value, typically within a cell, to check
Sample usage
IF(ISTEXT([Task Name]1), "This is text", "This is not text")
Usage notes
- This function is typically used inside of another function (e.g., IF, COUNTIF, or SUMIF)
Examples
This example references the following sheet information:
Clothing Item | Item Number | Transaction Total | Units Sold | |
---|---|---|---|---|
1 | Clothing Item T-Shirt | Item Number C001 | Transaction Total $1,170.00 | Units Sold 78 |
2 | Clothing Item Pants | Item Number C002 | Transaction Total $1,491.00 | Units Sold 42 |
3 | Clothing Item Jacket | Item Number C003 | Transaction Total $812.00 | Units Sold 217 |
Given the table above, here are some examples of using ISTEXT in a sheet:
Formula | Description | Result |
---|---|---|
Formula =SUMIF([Clothing Item]:[Clothing Item], ISTEXT(@cell), [Units Sold]:[Units Sold]) | Description Add the total of the values in the Units Sold column for rows where the value in the Clothing Item column is a text. All three rows meet the criteria. | Result 337 |
Formula =IF(ISTEXT([Clothing Item]2), [Clothing Item]2 + " is a text value", [Clothing Item]2 + " is not a text value") | Description If the value in row 2 of the Clothing Item column is a text, return the value in that cell followed by is a text value. If the value isn't a text, return the value in that cell followed by is not a text value text string. |
Result Pants is a text value |
Formula =COUNTIF([Clothing Item]3:[Units Sold]3, ISTEXT(@cell)) | Description Count the number of cells in row 3 that are text values. | Result 2 |
Still need help?
Use the Formula Handbook template to find more support resources, and view 100+ formulas, including a glossary of every function that you can practice working with in real time, and examples of commonly used and advanced formulas.
Find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.