Information function

ISREF function

Returns TRUE if the argument is a valid cell reference and FALSE otherwise. Often used with INDIRECT to check that a sheet exists.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

ISREF(value)
ArgumentWhat it means
valueRequiredThe thing to test — a reference such as B2, a defined name, or a function that returns a reference such as INDIRECT or OFFSET.

Returns: TRUE if value is a reference; FALSE for values, text and errors.

How ISREF works

ISREF asks whether something points at cells, not what is in them. ISREF(B2) is TRUE even if B2 is empty, while ISREF("B2") is FALSE because that is only text that happens to look like an address. On its own that is rarely interesting, but combined with INDIRECT it becomes a practical safety check.

INDIRECT turns text into a reference — for example a sheet name typed in a cell. If the sheet does not exist (a typo, or a month whose sheet has not been created yet), INDIRECT returns #REF!, and ISREF returns FALSE. That lets a summary sheet show "not yet available" instead of a wall of errors.

Examples

1A cell reference versus text

D2fx=ISREF(B2)
ABCD
1RegionSales
2East14690TRUE

Result: TRUE

B2 is a real reference, so the result is TRUE. =ISREF("B2") would return FALSE because the quotes make it text.

2Does the month sheet exist?

B2fx=IF(ISREF(INDIRECT("'"&A2&"'!A1")), "Ready", "Sheet missing")
AB
1Month sheetStatus
2MarchSheet missing

Result: Sheet missing

Assuming the workbook has sheets for January and February only, INDIRECT cannot find 'March'!A1 and returns #REF!. ISREF returns FALSE, so the status reads Sheet missing. The quotes around the name allow sheet names with spaces.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Tips

  • INDIRECT is volatile (recalculates on every change), so large numbers of ISREF(INDIRECT(...)) checks can slow a workbook.
  • In Microsoft 365, to list the existing sheets instead of testing names one by one, see SHEET and SHEETS.

Google Sheets

ISREF also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

ISREF in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechJE.ODKAZ
DanishER.REFERENCE
DutchISVERWIJZING
FinnishONVIITT
FrenchESTREF
GermanISTBEZUG
HungarianHIVATKOZÁS
ItalianVAL.RIF
Norwegian (Bokmål)ERREF
PolishCZY.ADR
Portuguese (Brazil)ÉREF
Portuguese (Portugal)É.REF
RussianЕССЫЛКА
SpanishESREF
SwedishÄRREF
TurkishEREFSE