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)| Argument | What it means | |
|---|---|---|
value | Required | The 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Sales | ||
| 2 | East | 14690 | TRUE |
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?
| A | B | |
|---|---|---|
| 1 | Month sheet | Status |
| 2 | March | Sheet 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.
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.
| Language | Function name |
|---|---|
| Czech | JE.ODKAZ |
| Danish | ER.REFERENCE |
| Dutch | ISVERWIJZING |
| Finnish | ONVIITT |
| French | ESTREF |
| German | ISTBEZUG |
| Hungarian | HIVATKOZÁS |
| Italian | VAL.RIF |
| Norwegian (Bokmål) | ERREF |
| Polish | CZY.ADR |
| Portuguese (Brazil) | ÉREF |
| Portuguese (Portugal) | É.REF |
| Russian | ЕССЫЛКА |
| Spanish | ESREF |
| Swedish | ÄRREF |
| Turkish | EREFSE |