Checking function

ISTEXT

Is this text?

Purpose

Ask whether a value is text

Returns

TRUE if the value is text, FALSE for a number, a blank or a logical value

Syntax

=ISTEXT(text)

ArgumentRequiredWhat goes here
textRequiredThe cell to check, usually A2.

How to use ISTEXT

ISTEXT is ISNUMBER from the other side, and on an import it is often the more direct question: is there anything in this amount column that is text?

Applied down a column it finds the rows that will not add up, rather than telling you only that the total is wrong.

An empty cell is not text, so ISTEXT and ISBLANK are asking two different questions and a column can fail either.

Examples

Every result below is worked out by the same evaluator that marks your answers, on the sheet shown here.

Supplier import — raw.xlsxSheet1
A supplier export before anyone has cleaned it: padded names, a code buried in a reference, and amounts that arrived as text
ABCD
1ReferenceSupplier nameAmountPosted
2GL-6100-8801 brightwell paper 1500Y
3GL-6200-8802calder UTILITIES320y
4GL-6100-8803meridian freight ltd2750
5GL-6300-8804 ashgrove catering184Y
6GL-6200-8805THORNBURY print760
7GL-6100-8806Brightwell Paper1120Y
FormulaResult
=ISTEXT(C2)The amount is text. This is the row that will not total.TRUE
=ISTEXT(VALUE(C2))Once converted it is a number, so ISTEXT is FALSE.FALSE
=ISTEXT(D4)An empty cell is not text either. This is FALSE, and ISBLANK is the question that would have been TRUE.FALSE

Notes

  • ISTEXT is FALSE for an empty cell, so it cannot be used on its own to find gaps.
Practise ISTEXT in Unit 20

A reference tells you what it does. A unit makes you use it.