Tes untuk referensi
=ISREF(value)
| Parameter | Deskripsi |
|---|---|
value |
The value to check. |
ISREF returns TRUE when value is a reference and FALSE if not:
=ISREF(A1) // returns TRUE
=ISREF(A1:C1) // returns TRUE
=ISREF(Sheet1!A1) // returns TRUE
=ISREF("apple") // returns FALSE
=ISREF(100) // returns FALSE
=ISREF(ZZZ1) // returns FALSE
Some functions, like INDEX and OFFSET, can return a reference. As long as the reference is valid, ISREF returns TRUE:
=ISREF(INDEX(A:A,10)) // returns TRUE
=ISREF(OFFSET(A1,1,1)) // returns TRUE
To evaluate a reference as text (i.e. "A1"), use the INDIRECT function:
=ISREF(INDIRECT("A1")) // returns TRUE
=ISREF(INDIRECT("ZZZ1")) // returns FALSE