Data Validation List from Filtered Table

徘徊边缘 提交于 2019-12-24 18:33:44

问题


Below is the source data (sTable)

Name    Email    List
User1   u@em.co  No
User2   u@e.com  Yes
User3   t@em.co  No
User4   f@e.com  Yes
User5   w@e.com  Yes
User6   d@em.co  No
User7   i@e.com  Yes

The Destination table: (dTable)

SomeStuff    UserB        Otherstuff
Stufflkas    {dropDown}   MoreData
ect.....

Desired drop down list:

User2
User4
User5
User7

I am making an excel table that is going to have a data validation drop down (UserB column in dTable) to select data from another table (sTable) on another sheet in the same workbook. the only problem that i am having is that I would like the list of users to be filtered so that only users with "Yes" in the List column will show up on the drop down for the UserB column in the dTable.

I tried with an indirect, but i couldn't get the data to filter. Is there a way to filter this in the data validation formula? or is that even possible?


回答1:


Likely the best you could do is use an array formula in a separate location to pull out and consolidate the "Yes" users, and point your drop-down to that range.

If you want to exclude the blanks from the drop-down then create a defined name with a dynamic range: eg.

=OFFSET(Sheet1!$E$2,1,0,COUNTA(Sheet1!$E$3:$E$7)-COUNTBLANK(Sheet1!$E$3:$E$7),1)

Then use that name as the source for your validation list.



来源:https://stackoverflow.com/questions/48591048/data-validation-list-from-filtered-table

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