# ISTEXT formula generator

> Describe what you need and get a ISTEXT formula for Excel and Google Sheets, run on real data before you copy it. Plus 3 tested ISTEXT examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/istext · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

ISTEXT returns TRUE when a value is text, including numbers that were stored as text and the empty text "" that some formulas return.

Describe the task at [ISTEXT formula generator](https://spreadsheetpractice.com/tools/formula-generator/istext) and get a ISTEXT formula for Excel and Google Sheets, tested on real data.

## Tested ISTEXT examples

### Use ISTEXT in an IF formula

`=IF(ISTEXT(B2),"Check qty",B2*C2)`

Excel. Result on the sample sheet: 6 rows (D2:D7). [See it and try it](https://spreadsheetpractice.com/formulas/istext-in-an-if-formula)

### Count numbers stored as text

`=SUMPRODUCT(ISTEXT(B2:B11)*ISNUMBER(--B2:B11))`

Excel. Result on the sample sheet: 3. [See it and try it](https://spreadsheetpractice.com/formulas/count-numbers-stored-as-text)

### Check if a cell is a number or text

`=IF(ISNUMBER(A2),"Number",IF(ISTEXT(A2),"Text","Blank"))`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/check-if-a-cell-is-a-number-or-text)

## Questions

### What does the ISTEXT formula generator do?

You describe the task in plain English, and it writes the formula, using ISTEXT where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does ISTEXT do?

ISTEXT returns TRUE when a value is text, including numbers that were stored as text and the empty text "" that some formulas return.

### Can I learn to write ISTEXT formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the ISTEXT function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
