Uji nilai teks
=ISTEXT(value)
| Parameter | Deskripsi |
|---|---|
value |
The value to check. |
The ISTEXT function returns TRUE if value is text:
=ISTEXT("apple") // returns TRUE
=ISTEXT(100) // returns FALSE
If cell A1 contains the number 100, ISTEXT returns FALSE:
=ISTEXT(A1) // returns FALSE
If a cell contains a formula, ISTEXT checks the result of the formula:
=ISTEXT(10 &" apples") // returns TRUE
=ISTEXT(2+2) // returns FALSE
=ISTEXT(A1&B1) // returns TRUE
To count cells in a range that contain text, you can use the SUMPRODUCT function like this:
=SUMPRODUCT(--ISTEXT(range))