Example 1 – Reference from a Cell Value:


Formula evaluates value of a reference in cell A5. =INDIRECT(“B”&A5) evaluates to “=B5”. Cell B5 contains the value: 62. The INDIRECT function evaluates the reference in cell A5 as 5, and returns value in cell B5 which is 62. —————————————————————————————————— Example 3 – Reference to a Named Range:



The Table 4 is a snapshot from the worksheet named “Sheet1”. Formula evaluates value of a reference in cell A6. =INDIRECT(A6&”!”&”B6″) evaluates to: =Sheet1!B6. Cell B6 contains the value 101. The INDIRECT function evaluates the reference in cell A6 as Sheet1, and returns value in cell B6 (in Sheet1 viz. =Sheet1!B6) which is 101. ——————————————————————————————————————————- Example 5 – Reference To a Different Workbook:

The INDIRECT function can create linked references to other workbooks, but will return a #REF! error if that workbook is closed. The table is a snapshot from the workbook named “Workbook1.xls” and worksheet named “Sheet1”. Formula evaluates values of references in cells A7 and A6. =INDIRECT(“[“&A7&”]”&A6&”!”&”B7″) evaluates to: =[Workbook1.xls]Sheet1!B7. Cell B7 contains the value: 99. The INDIRECT function evaluates the reference in cell A7 as: Workbook1.xls, and in cell A6 as: Sheet1, and returns value in cell B7 (viz. =[Workbook1.xls]Sheet1!B7) which is 99.