FormulaCraft

ISREF

ISREF tests whether its argument is a valid reference to a cell or range, returning TRUE if so and FALSE if it is a value, error, or text. It is particularly useful inside INDIRECT or dynamic reference formulas to guard against invalid sheet names or addresses that would otherwise produce a #REF! error.

Excel
=ISREF(A2)
Google Sheets
=ISREF(A2)

Verified example

Computed by a real spreadsheet engine on the sample data below.

InputIsRef?
A1TRUE
Sheet1!B2TRUE
HelloFALSE

=ISREF(A2)FALSE

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1Pass a cell reference or an expression that might be a reference to ISREF.
  2. 2It returns TRUE for valid references and FALSE for literal values or text strings.
  3. 3Useful with INDIRECT: =IF(ISREF(INDIRECT(A2)),INDIRECT(A2),"Invalid ref") prevents #REF! errors.

Need a version for your data?

Try: “Check whether a dynamically constructed cell address is a valid reference before using it

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: