简体   繁体   English

Excel下拉+搜索功能

[英]Excel Drop Down + search function

I have a drop down with a lot of list in it. 我下拉列表中有很多清单。 Its taking a long time just to search / scrolling down through the list. 仅花费大量时间在列表中进行搜索/向下滚动。

is there any way to make it easier? 有什么办法可以使它更容易? For example: I can extend the scroll range longer (which is currently 8 items only), or maybe some sort of AutoComplete by typing the item name. 例如:我可以延长滚动范围(目前仅8个项目),或者通过键入项目名称来扩展某种自动完成功能。

Its just basically to search the item easier in the drop down list. 基本上,从下拉列表中更轻松地搜索项目。 Thanks! 谢谢!

You can use: 您可以使用:

  1. Cascading dropdown (such as xls cascading lookup based on pivot table style datasource? and http://www.contextures.com/xlDataVal02.html ) 级联下拉菜单(例如, 基于数据透视表样式数据源的xls级联查找?http://www.contextures.com/xlDataVal02.html
  2. Use a formula in the Named Range for your List Validation that will simulate an autocomplete 在“命名范围”中为列表验证使用一个公式,该公式将模拟自动完成
    1. Create a named range Test with this kind of formula : =OFFSET($A$2,MATCH($C$1&"*",$A:$A,0)-2,0,COUNT($A:$A)) 使用这种公式创建一个命名范围Test=OFFSET($A$2,MATCH($C$1&"*",$A:$A,0)-2,0,COUNT($A:$A))
    2. Where: 哪里:
      • your list of data is in column A (values should be sorted alphabetically) 您的数据列表在A列中(值应按字母顺序排序)
      • the current cell where you are applying the validation on is C1 应用验证所在的当前单元格为C1
    3. Then you can: 那么你也能:
      • start typing the text you want in cell A1, for instance Wash 开始在单元格A1中键入所需的文本,例如Wash
      • then click on the drop-down list 然后单击下拉列表
      • the dropdown list will begin at Whashington and so on 下拉列表将从“ Whashington开始,依此类推

I've just translated it from one of my old workbook so tell me if anything doesn't work. 我刚刚从一本旧工作簿中翻译了它,所以请告诉我是否有任何问题。

[EDIT] Just a quick test seem to make it work (you should also restrain the end of the list for the beauty of the formula) [编辑]似乎需要进行一次快速测试(您还应该限制列表的结尾以获取公式的美观性)

截图

华盛顿的例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM