A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello Jessica,
I'm Ibhadighi and I'd happily help you with your question. In this forum, we are Microsoft consumers just like yourself.
When creating a dynamic dropdown list in Excel using the INDIRECT function, this error message usually means that the reference which INDIRECT is trying to evaluate doesn't correspond to a valid range or a named range. Here's how to troubleshoot and fix this:
- Ensure that the named ranges you've set up in Name Manager are correctly defined. The names should not have spaces, and the ranges should be correct.
- In the Data Validation settings, the Source field should refer to a named range or a valid range address. When using
INDIRECT, it should look something like this:=INDIRECT(A1)where A1 contains the name of the named range you want to refer to. - In a separate cell, test the
INDIRECTfunction by itself to see if it returns the correct range. For example, if you have=INDIRECT(A1)in the Source of your Data Validation and A1 contains the text "MyList", then typing=INDIRECT(A1)in another cell should return the values of the named range "MyList". - If the first dropdown list's selection is supposed to dynamically change the second dropdown list, make sure that the first dropdown's value corresponds exactly to the named ranges that are set up for the second dropdown.
- Any errors in the named ranges, such as #REF! errors, will cause
INDIRECTto fail. Ensure that all named ranges refer to existing, correct ranges. - Make sure that your
INDIRECTdoes not create a circular reference, where a cell refers back to itself either directly or indirectly.
If you've checked all of the above and the error persists, here's a simple checklist:
- Make sure the named range you're trying to use in
INDIRECTexists and is correctly spelled in the Data Validation source. - The cell you are referring to in
INDIRECTmust contain the exact name of the named range. For instance, if cell A1 contains "List1", there must be a named range exactly called "List1". - There should be no extra spaces or characters in the cell that might invalidate the reference.
I hope this helps.
Best Regards, Ibhadighi