简体   繁体   English

Excel数据验证从表中选择

[英]excel data validation select from table

How can I create a datavalidation list that lets the user pick values from a table and based on that selection show another value from the same table. 如何创建数据验证列表,该列表允许用户从表中选择值,并基于该选择显示同一表中的另一个值。 For example I have this table.. 例如我有这张桌子。

PlaceName       MapCoordinate
New York        https://xxxxxxxx/axQX7SfmbB72
Washington      https://xxxxxxx/vc7bhJY3Gxr

I want the user to select from the PlaceName column in a list, but the value that should be displayed should be the MapCoordinate value. 我希望用户从列表的PlaceName列中进行选择,但应显示的值应为MapCoordinate值。 Is this possible? 这可能吗?

Currently I only have this formula in a list =INDIRECT("PlaceNameTable[PlaceName]") 目前,我只在列表= INDIRECT(“ PlaceNameTable [PlaceName]”)中使用此公式

Or should I use vLookup in some way instead? 还是应该以某种方式使用vLookup?

如果您在单元格B1中有datavalidation(名称列表),则可以在单元格C1中使用例如vlookup(B1,PlaceNameTable,2,0)在我的测试表上工作。

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

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