简体   繁体   English

如何创建具有唯一值的下拉列表?

[英]How to create drop down list with unique values?

I have a list of Username and I want to check the records against names. 我有一个用户名列表,我想对照名称检查记录。 I created a drop down list now that list is showing name but same names multiple times. 我创建了一个下拉列表,现在该列表显示名称,但多次显示相同名称。

Is there a way to create a drop down list with unique names? 有没有一种方法可以创建具有唯一名称的下拉列表?

Make a pivot table out of your list of non unique names, and drag the name field in the pivot as a row field. 从非唯一名称列表中制作一个数据透视表,然后将数据透视表中的名称字段作为行字段拖动。 That will give you a list of unique names that you can then use as your dv list 这将为您提供一个唯一名称列表,您可以将其用作DVD列表

  1. Highlight the column with the data you want in the drop-down 在下拉列表中突出显示包含所需数据的列
  2. Data--> Sort&Filter --> Advanced 数据->排序和过滤->高级
  3. Enable "Copy to another location" and "Unique records only" List 启用“复制到另一个位置”和“仅唯一记录”列表
  4. Range should be where all the bits are (already highlighted) 范围应为所有位所在的位置(已突出显示)
  5. Leave Criteria Range blank 将条件范围留空
  6. Copy to should be a blank cell, in the same worksheet, with nothing in the rows below it. 在同一工作表中,“复制到”应该是一个空白单元格,其下面的行中没有任何内容。
  7. Use this new data in your data validation 在数据验证中使用此新数据

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

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