我有两张不同表格的表格。第一个列有两列(名称和缩写名称),第二个列有许多列,其中一列根据第一个表中的第一列(名称)为其单元格提供数据验证列表。我想要做的是:当我从下拉列表中选择一个值时,我希望将它替换为(缩写名称)列中的相应值,我该如何实现?
答案 0 :(得分:0)
This will not do exactly what you ask, but should help you with the purpose, unless that is different from what I can guess.
Create a second column to the right of you column with drop down lists, and make and index/match lookup on you Name and Abbreviated Name table like this: Assuming you have the dropdown lists in col A from row 2 and down it will be entered in B2 and downwards.
=INDEX(Abbreviated Name;MATCH(A2;Name;0))
Change my ; to , if you language uses , as formula separator. This will result in that you many-columned sheet has an additional row, one for showing abbrebiated name and one for selecting the real name. You could probably do exactly what you want using VBA, if you have at least 1 empty cell in your Name list that you use to create the data validation (allowing you to select values not in the list, but this will make it more complex than it needs to be.