Reference the second row in named table for data validation

拥有回忆 提交于 2019-12-11 01:58:02

问题


I have a named table in excel called "FINAL". I would like to create the drop down list from the second row of the table. I know that we can use =FINAL[#Headers] to create a list from the headers, but I need to create it from the second row in the table. of course I need it to be dynamic and use the table name since the table is going to change.

THanks


回答1:


Step1:

Add named range myList with formula: =INDEX(FINAL[#Data],2,0)

Step2:

Select any cell and add data validation with Source: =myList

Result:




回答2:


I know you have found a solution, but I would recommend using the Indirect function instead of creating an unnecessary named range.

You can't reference a table directly by name within the data validation formulas, but you can within the Indirect function, such as:

=INDEX(INDIRECT("FINAL[#Data]"),2,0)

This would provide you with the same list but without the need for a named range.



来源:https://stackoverflow.com/questions/22635194/reference-the-second-row-in-named-table-for-data-validation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!