"Indirect" formula shows "invalid reference" error

What am I doing wrong in this formula, as it is showing me that "Formula contains invalid reference"?


Next question is, can I make an indirect reference to cells with "date" format?

MacBook Pro with Touch Bar

Posted on Dec 3, 2019 8:43 PM

Reply
4 replies

Dec 4, 2019 2:32 AM in response to Basriy

Indirect is used with a cell address, not a cell reference. Rather than clicking on the cell or range you want to refer to, you must manually type the address as a string, or use the ADDRESS function to construct the address for you.


In this case, because the cell you want indirect to refer to is in the same table, you need only specify column and row. For example, using the western Latin alphabet: =INDIRECT(“D2”). Note the quotation marks. These indicate a string. if it is a different table, use the format: =INDIRECT(“Table::D2”). If it is on a different sheet (but still in the same document) the format becomes =INDIRECT(“Sheet::Table::D2”) where both Sheet and Table are the names assigned to each.


To answer your second question, you can use INDIRECT to reference cells with any format. Though there are generally better ways to reference a cell than using INDIRECT. It has very specific uses, such as when you have a cell address written as a string in another cell. Normally, if you make changes such as add or remove rows, or rename sheets or tables, references to those cells will change automatically. With indirect, they will not change, resulting in errors. In some cases this may be what you want. But as this does not seem to be the case here, I would recommend using INDEX if you want some flexibility, or simply =D2 if you want to refer to a specific cell.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"Indirect" formula shows "invalid reference" error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.