ISREF Function

Publication Date :

Blog Author :

Table Of Contents

arrow

What Is ISREF Function?

The ISREF function is an inbuilt Excel Information function. It accepts a value as input and returns TRUE if the specified value refers to a valid reference. Otherwise, the function returns FALSE.

Users can utilize the ISREF function while conditionally formatting cells containing values referring to cell references or ranges. The function also helps evaluate Excel data based on the cell references’ validity.

For example, the dataset below contains the built-in ISREF function input descriptions.

ISREF Intro Example

The aim is to apply the built-in ISREF function in the column B cells according to the input values specified in the corresponding column A cells to view the desired output.

ISREF Function Intro Example - Output

In the above Excel’s ISREF function example, we enter the ISREF() in each target cell in column B and the function input is based on the corresponding description in column A.

When the argument value supplied to the ISREF function refers to a valid cell reference or range, as in the case of the target cells B2 and B3, then the function returns TRUE.

Conversely, if Excel’s ISREF function accepts a value such as text or a number, as in the case of the target cells B4 and B5, the function returns FALSE.

Furthermore, if the ISREF() accepts a function or formula returning a valid reference, the function output will be TRUE. But, if the function argument value is a function or formula returning a value other than a valid reference, such as in the case of the target cell B6, the ISREF() returns FALSE.

  • The ISREF function accepts a value and returns TRUE if the specified value refers to a valid cell or range reference. Otherwise, the function returns logical FALSE.
  • Users can utilize the ISREF Excel function for checking cells containing valid references in massive datasets.
  • The ISREF Excel function accepts one mandatory argument, value.
  • The ISREF Excel function works well as a standalone function. However, sometimes, we must combine it with other related inbuilt functions, such as INDIRECT and IF, to achieve the correct output.

Syntax

The syntax of the ISREF function for both Mac and PC is the following:

ISREF Syntax

Where,

  • value: The value we aim to check if it refers to a valid reference using the ISREF function for both Mac and PC.

The ISREF function argument is compulsory, and it can be a value or expression.

How To Use ISREF Function In Excel?

We can apply the ISREF function in Excel using the following methods:

  1. Access the function from the Excel ribbon.
  2. Enter the function into the worksheet manually.

Method #1 – Access The Function From The Excel Ribbon

Choose a cell to show the output - The Formulas tab - The More Functions down arrow - The Information function group right arrow - ISREF.

ISREF Function - Method 1

The Function Arguments window will open. Here, we can enter the ISREF() argument value in the Value field.

ISREF Function - Method 1 - Function Argument

Finally, click OK in the Function Arguments window to obtain the ISREF() output as a logical value TRUE or FALSE in the chosen cell.

Method #2 - Enter The Function Into The Worksheet Manually

  1. Select a target cell to display the output.
  2. Type =ISREF( in the cell.
  3. Enter the argument as a value or formula and close the brackets.
  4. Press Enter to view the ISREF() output in the target cell.

Examples

Check out the following ISREF function examples to utilize the function effectively.

Example #1

The source dataset contains the ISREF function input descriptions in column A.

ISREF Function - Example 1

The task is to apply the ISREF function in the column B cells, with the argument values being according to the corresponding input descriptions in column A.

Then, the steps are as follows:

Step 1: Choose cell B2, enter the ISREF(), and press Enter.

=ISREF(K132)

ISREF-Function-Example-1-Step-1

The ISREF() input is a cell reference K132. So, the function checks if the input value is a valid cell reference, which is true in this case. Hence, it returns TRUE as the output.

Step 2: Choose cell B3, enter the ISREF(), and press Enter.

=ISREF(YZB11)

ISREF Function - Example 1 - Step 2

The ISREF() input is a cell reference YZB11. The formula evaluates the cell reference to the #NAME? error value since the specified cell reference is invalid. So, the function checks if the error value is a valid cell reference, which is not true. Hence, it returns FALSE as the output.

Step 3: Choose cell B4, enter the ISREF(), and press Enter.

=ISREF(Sample_Data)

ISREF Function - Example 1 - Step 3

The ISREF() input is a named range, Sample_Data, in the worksheet Sheet2. The formula evaluates the named range to the corresponding cell range in Sheet2. Thus, the function checks if the input value refers to a valid range reference, which is true in this case. Hence, it returns TRUE as the output.

Step 4: Choose cell B5, enter the ISREF(), and press Enter.

=ISREF(Sheet2!#REF!)

ISREF Function - Example 1 - Step 4

The ISREF() input value is a reference to a deleted cell in the worksheet Sheet2, which the formula evaluates to the #REF! error value. So, the function checks if the error value is a valid cell reference, which is not true. Hence, it returns FALSE as the output.

Step 5: Choose cell B6, enter the ISREF(), and press Enter.

=ISREF(10+55)

ISREF Function - Example 1 - Step 5

First, the addition formula adds two numbers, 10 and 55, and returns the sum as 65. Next, the ISREF() checks if the addition formula output is a valid reference or a value that refers to a reference. But since the addition formula output is a number, the ISREF() output is FALSE.

Step 6: Choose cell B7, enter the ISREF(), and press Enter.

=ISREF(INDEX(J:J,23))

ISREF Function - Example 1 - Step 6

First, the Excel INDEX function returns the absolute reference to the cell at the intersection of column J and row 23, $J$23. Next, the ISREF() accepts the INDEX() output as the argument value. So, the function checks if the input value refers to a valid reference, which is true in this case. Hence, it returns TRUE as the output.

Example #2 - Using ISREF With INDIRECT

We can use the ISREF function with the INDIRECT Excel function, as explained below.

Column B in the source dataset shows the descriptions, explaining how to supply the INDIRECT() as the argument value to the ISREF() in each corresponding column C target cell.

ISREF Function - Example 2

Let us see the formulas to apply in each column C target cell to obtain the required outcome.

Step 1: Choose cell C2, enter the ISREF() containing the INDIRECT(), and press Enter.

=ISREF(INDIRECT("d50"))

ISREF Function - Example 2 - Step 1

First, the INDIRECT() returns the absolute reference to the specified cell D50, $D$50. Next, the ISREF() checks if the INDIRECT() output is a valid reference, which is true in this case. Hence, the ISREF() output is TRUE.

Step 2: Choose cell C3, enter the ISREF() containing the INDIRECT(), and press Enter.

=ISREF(INDIRECT("Sheet2!"&"E10"))

ISREF Function - Example 2 - Step 2

First, the INDIRECT() returns the absolute reference to the specified cell E10 in the worksheet Sheet2, Sheet2!$E$10. Next, the ISREF() checks if the INDIRECT() output is a valid cell reference, which is true in this case. Hence, the ISREF() returns TRUE.

Step 3: Choose cell C4, enter the ISREF() containing the INDIRECT(), and press Enter.

=ISREF(INDIRECT(A4))

ISREF Function - Example 2 - Step 3

First, the INDIRECT() accepts the cell reference A4 as the input. Next, the formula evaluates the INDIRECT() input value to the cell A4 value, "XET25". After that, the INDIRECT() returns the absolute reference, $XET$25, based on the input "XET25". Next, the ISREF() checks if the INDIRECT() output is a valid cell reference, which is true in this case. Hence, the ISREF() returns TRUE.

Example #3 - Using ISREF With OFFSET

We can use the ISREF function with the OFFSET Excel function, as explained below.

Column A in the source dataset shows the descriptions, explaining how to supply the OFFSET() as the argument value to the ISREF() in each corresponding column B target cell.

ISREF Function - Example 2

Let us see the formulas to apply in each column B target cell to obtain the required outcome.

Step 1: Choose cell B2, enter the ISREF() containing the OFFSET(), and press Enter.

=ISREF(OFFSET(C23,5,10))

Example 3 - Step 1

First, the OFFSET() returns the absolute reference to cell M28, which is 5 rows and 10 columns from the reference point cell C23, $M$28. Next, the ISREF() checks if the OFFSET() output is a valid reference, which is true in this case. Hence, the ISREF() output is TRUE.

Step 2: Choose cell B3, enter the ISREF() containing the OFFSET(), and press Enter.

=ISREF(OFFSET(XFD1048576,0,1))

Example 3 - Step 2

First, the OFFSET() is expected to return the absolute reference to the cell, which is in the same row as the reference point cell XFD1048576 but in the next column on its right. However, since the reference point is the last cell in a worksheet, the OFFSET() returns the #REF! error. Next, the ISREF() checks if the OFFSET() output is a valid reference, which is not true in this case. Hence, the ISREF() output is FALSE.

Step 3: Choose cell B4, enter the ISREF() containing the OFFSET(), and press Enter.

=ISREF(OFFSET(S60,-2,-4))

ISREF Function - Example 3 - Step 3

First, the OFFSET() returns the absolute reference to cell O58, which is 2 rows and 4 columns before the reference point cell S60, $O$58. Next, the ISREF() checks if the OFFSET() output is a valid reference, which is true in this case. Hence, the ISREF() output is TRUE.

Important Things To Note

  • Ensure the ISREF function argument value is a valid value or an error-free formula. Otherwise, the function may return an incorrect output.
  • The ISREF Excel function checks for a cell or range reference, not a cell value.
  • The ISREF Excel function does not return an error value such as #NAME? and #REF!, except when the function name is incorrect. Its output is always a logical TRUE or FALSE.

Frequently Asked Questions (FAQs)

1. What are some related formulae that can be used with the ISREF function?

Some of the related formulae that can be used with the ISREF function are INDIRECT, IF, COUNTIF, ISNUMBER, and ISTEXT.
For example, the source dataset lists employees, their designations and the appraisal status data.

source dataset lists employees

The task is to create named ranges based on the top row of the source dataset. Next, we must check the validity of each named range specified in cell F1 and display the output in cell F2.

Step 1: Choose the cell range A1:C11. Next, press Ctrl + Shift + F3 to open the Create Names from Selection window, and check the Top row check box.

Create Names from Selection

After that, click OK.

The above step will name the ranges containing the data cells underneath based on the top row in the chosen range.

Step 2: Choose cell F1 and enter a named range’s name, specified in the top row of the source dataset, say, Employee.

Next, choose cell F2, enter the ISREF()-based IF(), and press Enter.
=IF(ISREF(INDIRECT(F1)),"Valid","Invalid")

choose cell F2, enter the ISREF

The IF() condition is the ISREF() containing the INDIRECT().

First, the INDIRECT() accepts the cell F1 text value, "Employee", as the input. It checks whether the text in cell F1 is a valid reference or not. Since the text value is a valid reference, the function returns an absolute reference to the corresponding cell range, $A$1:$A$11.

Next, the ISREF() accepts the INDIRECT() output as the input value. Since the input is a valid range reference, the ISREF() output is TRUE. So, the IF() condition holds and returns the TRUE value, Valid, as the required named range validity.

Next, we can update the remaining named ranges in cell F1, one at a time, to check their validity using the formula in cell F2, as depicted below.

formula in cell F2

Named Range Validity

On the other hand, consider we enter a named range in cell F1, which we did not define using the source dataset in Step 1.

Then, the cell F2 formula output is Invalid.

cell F2 formula output is Invalid

In this case, the INDIRECT() accepts the cell F1 text value as input. However, it does not find a reference to it since the specified named range is not in the source dataset range we used to define the named ranges in Step 1. So, the INDIRECT() returns the #REF! error value.

Next, the ISREF() accepts the INDIRECT() output as its argument value. Since the ISREF() input is not a reference, the function returns logical FALSE. Thus, the IF() condition does not hold, and it returns the FALSE value, Invalid, as the specified named range’s validity.

2. What are the common mistakes made in using ISREF function?

The common mistakes made in using ISREF function are as follows:

• Expecting the function to check for a cell value instead of a valid reference.
• Assume the input value in a cell, which we aim to check, is a text representation of a reference, but we do not use the ISREF() with the INDIRECT(). Then, the formula output will be incorrect.

3. What is the Isref function in VBA?

The Isref function in VBA is not available as a built-in method. However, we can write user-defined VBA codes to achieve the ISREF() output in VBA.

Download Template

This article must be helpful to understand the ISREF Function, with its formula and examples. You can download the template here to use it instantly.