excel导入数据校验
You've probably used an Excel data validation drop down list, where you can click the arrow, and select an item to fill the cell. With a bit of programming, you can customize a drop down list, to select multiple items.
您可能已经使用了Excel数据验证下拉列表 ,您可以在其中单击箭头,然后选择一个项目来填充单元格。 通过一些编程,您可以自定义下拉列表,以选择多个项目。
单选下拉 (Single Selection Drop Down)
By default, data validation drop downs only allow you to select one item.
默认情况下,数据验证下拉列表仅允许您选择一项。
In the worksheet shown below, you can select a month from the drop down, and it overwrites any previous selection in that cell.
在下面显示的工作表中,您可以从下拉菜单中选择一个月,它会覆盖该单元格中以前的所有选择。
从下拉列表中选择多个项目 (Select Multiple Items From the Drop Down List)
Instead of limiting users to a single selection, you can use a bit of programming, combined with the data validation list, and allow multiple selections.
您可以使用一些编程,再结合数据验证列表,而不是将用户限制为单个选择,并允许多个选择。
You can display all the selected items across a row, or down a column, or keep them in the same cell. Keep reading, to see some examples of this technique, and how it works.
您可以在一行或一列中显示所有选定的项目,或将它们保留在同一单元格中。 继续阅读,以查看该技术的一些示例以及其工作方式。
There is also a video that shows the multiple selection drop down list. To try it for yourself, follow the download link for the sample file, near the end of this article.
还有一个视频,显示多选下拉列表。 若要自己尝试,请遵循本文末尾的示例文件的下载链接。
有关选择多个项目的更多文章 (More Articles on Select Multiple Items)
[Update]: Since posting this article on selecting multiple items from an Excel drop down list, I've added more articles on this topic. Here