
ISREF returns TRUE when a value is a valid reference. It returns FALSE when the value is not a reference.
This sounds simple, but the distinction matters. A real reference like A1 returns TRUE. A text string like "A1" returns FALSE, because it only looks like a reference.
Returns TRUE only when the argument is a valid cell or range reference.
TRUE means the argument is a reference. FALSE means it is not.
=ISREF(value)
You can test a direct reference, a range, or the result of a reference-returning function.
| Function | Main job | Useful distinction |
|---|---|---|
ISREF |
Checks whether something is a reference | A1 returns TRUE, but "A1" returns FALSE. |
INDIRECT |
Builds a reference from text | Useful when you want to turn a text address into a live reference first. |
ISTEXT |
Checks for text | Helpful when a value looks like an address but is really just text. |
TYPE |
Returns a type code for the value result | Useful when you care about value type rather than reference status. |
This function is most useful in formulas that build or pass references around. If you use INDIRECT, OFFSET, or named references, ISREF can help confirm that the result is actually a usable reference.
The key rule is that text does not count as a reference by itself. A string like "Sheet1!A1" only becomes a reference when another function turns it into one.
A real cell reference returns TRUE.
=ISREF(A1)
Check whether A1 is a valid reference. Formula: =ISREF(A1).
A text value that looks like a reference still returns FALSE.
=ISREF("A1") // Returns FALSE.
Check whether the text "A1" is itself a reference. Formula: =ISREF("A1").
Once text is converted into a real reference, ISREF returns TRUE.
=ISREF(INDIRECT("A1"))
Check whether INDIRECT("A1") returns a valid reference. Formula: =ISREF(INDIRECT("A1")).
Ranges count as references too.
=ISREF(A1:B10)
Check whether A1:B10 is a valid reference. Formula: =ISREF(A1:B10).
ISREF checks whether an argument is a valid reference.INDIRECT when references are built from text.Tell your friends about this post