准备数据
1. 首先在Location sheet 中准备数据如下:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162727438-621747479.png)
2.给Country 定义名字,如下步骤:![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162745811-541933705.png)
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162745811-541933705.png)
命名成功则如下所示:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162819628-1549051282.png)
3.给每个Country对应的Place命名字,如下步骤:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162836939-318921695.png)
弹出如下框:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162910038-331463237.png)
点击OK后会出现如下所示的效果:![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162929301-1140200014.png)
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162929301-1140200014.png)
开始给Place命名字,如下步骤:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162943847-187267717.png)
4.新建 relationship sheet,并如下所示,左边为country,右边为Place对应的名字,给Country 与 Place的关系命个名字,如下:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621162957549-1083109958.png)
5.通过如下步骤验证是否命名成功(以下显示成功,数据准备完毕):![]()
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621163007058-1977756020.png)
实现dropDown
1.新建Data sheet 如下:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621163018552-1102044051.png)
2.将Country变成dropDown,如下:![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621163048660-843230448.png)
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621163048660-843230448.png)
3.将Place变成dropDown,如下:
上图Source处填写如下:
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621163108833-37109116.png)
=INDIRECT(VLOOKUP(A2,CountryPlace,2,FALSE))
效果
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621163125672-393843391.png)
![](https://img2018.cnblogs.com/blog/818748/201906/818748-20190621163135557-812113844.png)
The future is already here, it's just not very evenly distributed.
----William Gibson, science fiction author